In this post we will show the easiest way to test the request with returns a bunch of users. The main goal of the request is to sort the users by a specific field, so let’s dive in this problem. What do we have? We have a request with will return a JSON with a…
Java Adapter Pattern explanation
Let us return to the consideration of structural design patterns. This time we will look at a design pattern called Adapter (also called the Wrapper along with the Facade pattern). This article will talk about the following: Object adapter Class Adapter The difference between the adapter and the facade An example of using an adapter…
Rest-Assured best practice
Testing RESTful Web Services can be cumbersome because you have to deal with low-level concerns which can make your tests verbose, hard to read and to maintain. Fortunately, there are libraries and best practices helping you to keep your integration tests concise, clean, decoupled and maintainable. This post covers those best practices. Use Reusable RequestSpecifications…
REST-assured: useful tips
In this article, I gathered useful tips on using REST-assured, one of the most common Java libraries to automate REST-API testing. All examples are vital, they are collected from my practice of conducting code-review in more than 10 projects with automation tests. Take end-points to a separate place. It would seem that this is obvious….
Introduction in Cucumber with examples
1. Introduction Cucumber is a BDD (Behavioral Driven Development) testing framework. Using the framework to write repetitive scenarios with different permutations of inputs/outputs can be quite time-consuming, difficult to maintain and of course frustrating. Cucumber came with a solution for reducing this effort by using the concept of Scenario Outline coupled with Examples. In the…
Type of constructors in java
In this post we will explain type of constructors in java and what is the difference between constructors and methods. What is a constructor Constructor is a block of code that initializes the newly created object. A constructor resembles an instance method in java but it’s not a method as it doesn’t have a return…
Reflection for hybrid testing framework with cucumber
After a couple of time I manage to create a Selenium hybrid testing framework base on java reflection functional. In this post I will explain the base principles of this framework and all pluses and minuses. Let’s begin in our journey. Based on my experience a good testing framework base on UI functional testing an…
Understanding Aggregate & Summary Reports Results from JMeter
Overview: JMeter it is a powerful tool for performance tenting witch is used in a lot of project and in the end of result we can happens that generated report are not clear for us of for our team, for this case we have wrote this post to help you. Sample Aggregate Report: Label:…
Integrate cucumber with spring
1. Overview This is a quick guide to integrate the Cucumber testing framework with Spring. Cucumber is a very powerful testing framework written in the Ruby programming language, which follows the BDD (behavior-driven development) methodology. Its intent is to enable developers to write high-level use cases in plain text that can be verified by non-technical stakeholders, and turn…
API Functional Tests with Cucumber and Rest-assured
API Functional Tests with Cucumber and Rest-assured On projects where multiple systems undergo development at the same time, it’s crucial to maintain a clear picture of how they should interact. We commonly have a back-end system providing a REST API to multiple front-ends (browsers, mobile apps, chatbots, IoT, etc.). Because it will likely change over…