Skip to content

artofcode.info

The beauty of coding!

Menu
  • Home
  • Front-End
    • Angular
    • Javascript
    • ReactJS
  • Back-End
    • Java
    • Php
  • Test Automation
  • News
Menu

Author: guru

SHARE-DATA-BETWEEN-STEPS-IN-CUCUMBER-USING-SCENARIO-CONTEXT

Generic Scenario Context for Cucumber

Posted on October 19, 2020October 19, 2020 by guru

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….

Read more

How to create jenkins generic runner based on cucumber tags

Posted on August 19, 2019August 19, 2019 by guru

Today we are going to jump a little bit in CI/CD with a generic jenkins runner based on cucumber tags. In this post will be detailed explained how to configure the runner and how to create the generic profile on real project, let’s start… Creating maven profile based on failsafe plugin to run CucumberRunner. The…

Read more
AssertJ

How To Improve Your Assertions Using AssertJ

Posted on February 28, 2019December 14, 2020 by guru

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…

Read more
unirest-logo

How To Test REST API Using UNIREST

Posted on February 18, 2019February 18, 2019 by guru

Overview: I have come across this question many times from people that how to test rest api using selenium webdriver. You could see many related questions in StackOverflow.com. People who are new to test automation sometimes do not understand that Selenium is only for automating the web based applications.  However if you would like to do…

Read more

REST-assured: how to check the user sorting

Posted on January 3, 2019December 14, 2020 by guru

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…

Read more

Java Adapter Pattern explanation

Posted on December 28, 2018December 28, 2018 by guru

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…

Read more

Rest-Assured best practice

Posted on December 27, 2018December 27, 2018 by guru

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…

Read more

REST-assured: useful tips

Posted on December 17, 2018 by guru

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….

Read more
CUCMBER-FOR-BDD

Introduction in Cucumber with examples

Posted on December 15, 2018December 14, 2020 by guru

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…

Read more

Type of constructors in java

Posted on December 12, 2018December 12, 2018 by guru

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…

Read more
  • Previous
  • 1
  • 2
  • 3
  • Next

Recent Posts

  • An overview of Accelerate: Building and Scaling High-Performance Technology Organizations
  • Cucumber JUnit XML report with logs
  • How to add log messages to the cucumber Jenkins report
  • Factory Method Pattern in the creation of Selenium WebDriver
  • How to attach log message to cucumber report via MDC
  • How to send different values in cucumber features based on profile
  • How to log execution time for cucumber steps
  • Strategy Pattern in Test Automation with Selenium WebDriver

Categories

  • Back-End
  • Java
  • News
  • Test Automation
  • Uncategorized
© 2023 artofcode.info | Powered by Minimalist Blog WordPress Theme