How to Share Test Context between Cucumber Steps, in this post we will explain it and share our implementation Scenario Context class holds the test data information explicitly. It helps you store values in a key-value pair between the steps. Moreover, it helps in organizing step definitions better rather than using private variables in step definition classes….
Tag: Test Automation
How To Improve Your Assertions Using AssertJ
Overview: As you might already know,Fluent APIs make your code readable and easily maintainable. We already have seen few articles on designing Page Objects and Business Workflows in fluent style. In this article, Lets see how we could include fluent assert statements for your automated tests using AssertJ library. Take a look at the examples…
REST-assured: how to check the user sorting
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…
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…
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…
Integrate Cucumber framework with QMetry
Integrate Cucumber framework with QMetry Introduction Cucumber is one of the tools for running automated tests. It combines business specification and test documentation into one – which results into executable specification. Due to this collaboration, it encourages teams to keep their organization’s business goals in center. Automated testing through Cucumber helps teams avoid heavy regressions…
Generate pretty test execution report
In this post we will show how to generate a pretty report after cucumber test execution. Using technology: Maven Java 8 Cucumber 1.2.5 First of all you need to add following library in your pom.xml file: <dependency> <groupId>net.masterthought</groupId> <artifactId>cucumber-reporting</artifactId> <version>3.19.0</version> </dependency> <dependency> <groupId>com.github.mkolisnyk</groupId> <artifactId>cucumber-report-generator</artifactId> <version>1.3.4</version> </dependency> After that you will need to do some changes in…