Tech blog of j-labs' engineers. Experiences, knowledge, solutions.

Custom formatters in Cucumber

I’ve been working with cucumber-java test framework for some time now and I must admit, I really like what is possible to achieve by using it. Of course, it is quite common in test automation, that more often it is required to do something that is nearly impossible than otherwise.

Bartek Drzewiński

|

18 Sep 2019


Read more
3

Custom formatters in Cucumber

18 Sep 2019 | Bartek Drzewiński

I’ve been working with cucumber-java test framework for some time now and I must admit, I really like what is possible to achieve by using it. Of course, it is quite common in test automation, that more often it is required to do something that is nearly impossible than otherwise.

Read more
4

Test Automation with Python

31 Jul 2019 | Marcin Halastra

Python code just like in any other language requires testing. Unittest is a python framework dedicated for it. It has origins in Junit in terms of code structure and behavior. In this article I will try to illuminate a little bit the topic of testing in Python and provide some good practices.

Read more
5

Building executable jar with Cucumber tests

10 Jul 2019 | Bartek Drzewiński

Depending on how continuous integration and regression testing is constructed in a project, there might be a need to run the same tests couple of times - without any changes to the test framework or tests suites itself. 

Read more
6

Test your REST API with Spock - Introduction to Spock Framework

29 May 2019 | Dominik Stolarski

In this article I'd like to show you how to test your API with Spock Framework. Spock is a testing framework for Java and Groovy applications. It extends JUnit runner and let us write shorter and more readable code. Spock supports unit testing, BDD and Mocking. It is also great for Data Driven Testing.

Read more
7

Tips & tricks learned during years of using Jenkins

01 May 2019 | Karol Wybraniec

I would like to share with you some useful ways of working with Jenkins, as well as methods of coping with various issues that I (and probably a lot of you) faced during my career in QA scope. It is also worth to mention some reliable plugins. I’ve found them helpful and time-saving, so it pays to get them together in this short blogpost.

Read more
8

Mocking objects with Python

06 mar 2019 | Marcin Halastra

Mocking is just pretending to be and simulating specific behavior, we can replace our code’s parts with fake objects and verify how system behaves. At some point our system’s code starts to be complicated and have so many dependencies what makes it impossible to test without mocks. To cover all corner cases or to freely control our test scenario flow we have to simulate part of functionality – we have to force it to behave in exact way we want. For this purpose python uses unitest.mock library which is a standard library starting from Python 3.3 (for older versions installation is required).

Read more
9

Introduction to performance tests using JMeter

27 Feb 2019 | Dominik Stolarski

JMeter is an open-source JAVA-based load testing tool for measuring and analyzing performance of services and applications. It simulates user behavior by sending requests to server. It can be used for testing variety of protocols and services like HTTP, HTTPS, SOAP / REST Webservices, FTP, JDBC, LDAP, SMTP, POP3, IMAP and many others.

Read more
10

Pytest - why it's more popular than unittest?

06 Feb 2019 | Karol Wybraniec

In my professional career I used to write tests with both frameworks: unittest and pytest. Both are great tools with certain pros and cons, but pytest is significantly more popular these days. In this short blogpost I am going to share with you a couple of pytest’s features, that in my opinion, provide the answer for the heading question.

Read more
11

Parametrized tests - solutions overview (TestNG, JUnit4, JUnit5)

07 Nov 2018 | Paweł Proc

Parametrized tests are a lot easier to maintain. Usually when single requirement changes it’s enough to change one variable in the code. You don’t have to read the whole implementation of the test (If you know what your variable means).

Read more
12

How to make Nigthwatch.js library work with async/await?

25 Oct 2018 | Paweł Proc

Although it's quite powerful tool, you need to customize it to get the full benefit of it. One of these improvements is usage of async/await commands (from Node 7.6 version). In this article I am going to show you how to adjust your code to make this commands work.

Read more
13

The benefits of Code Reviews

10 Oct 2018 | Maciej Krzysica

Are you tired of scrolling through dozens of red and green files in code reviews, only to click “Reviewed” after a few minutes of staring at the screen? You should be. Because this is not the point of reviewing the code.

Read more
14

Node.js module testing with Chai and Sinon framework

03 Oct 2018 | Grzegorz Wziątek

In this article I will show you how to write unit tests for Node.js modules and its dependencies from scratch.

Read more
15

Building Selenium framework in java (part IV) - answer job interview questions like a pro

19 Sep 2018 | Bartek Drzewiński

In my opinion, Software Developer in Test job interviews are one of the most demanding interviews in IT market. How come?

Read more
16

JUnit 5: Preview of new possibilities

05 Sep 2018 | Przemysław Sobierajski

JUnit 5 comes with a bunch of new features. In this article I will briefly describe most of them.

Read more
17

Building Selenium framework in java (part III) - how do you fit Cucumber in there

22 Aug 2018 | Bartek Drzewiński

In this article let me explain how I think Cucumber fits Selenium based test framework written in java

Read more
18

Building Selenium framework in java (part II) - do it right for the first time

11 Jul 2018 | Bartek Drzewiński

In this article I would like to share with you how I build new end to end testing solutions for web projects. I’ll try to explain how well thought test framework architecture can improve test code quality.

Read more
19

JUnit 5: Quick start guide

04 Jul 2018 | Przemysław Sobierajski

JUnit 5 enables many different styles of testing and focuses on Java 8 and above. In this article I will show you how to start with new version of JUnit.

Read more
20

Building Selenium framework in java (part I) - what should you know before you start

27 Jun 2018 | Bartek Drzewiński

Nowadays test automation is an integral part of software development process. I decided to create series of blog entries, which will describe how to create customized Selenium test framework in java from scratch to make it fully functional, easy to use and maintain.

Read more
21

Performance of modern JavaScript frameworks

20 Jun 2018 | Grzegorz Wziątek

Lots of developers when start building yet another JavaScript application do not think about important thing which is the web application performance. Let’s cover this significant aspect of software development.

Read more
22

Selenium Webdriver - browser preferences for downloading files

22 Jun 2017 | Paweł Motyka

In this article you will find and introduction to browser’s profiles/preferences and quick solution for managing downloading files from script level.

Read more
23

Spock vs Junit with Mockito

18 Apr 2017 | Wojciech Maziarz

Spock and JUnit are frameworks for unit testing of Java applications. Mockito is a well – known and stable library of mocking extensions for JUnit to write tests in Java language.

Read more
24

Testing in React

07 Apr 2017 | Paweł Kasperowicz

A few approaches for React Testing. It won't be focused on the detailed configuration of each tool but it rather show how to embrace tool for better quality of the code.

Read more
25

TDD in practice

06 Apr 2017 | Wojciech Maziarz

Test Driven Development is one of fundamental practices in the Agile methodology.

Read more
26

Deep Equality in C# for Unit Testing

05 Apr 2017 | Adrian Jarzyna

This article presents a short overview of methods of deep comparison between objects in Unit Tests.

Read more
27

Given-When-Then pattern in unit tests

03 Apr 2017 | Mateusz Starzyk

We can say that it is a style/template how we can describe some functionality (system behavior) in more readable and natural for human way.

Read more