Skip to content

artofcode.info

The beauty of coding!

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

Tag: Test Automation

cucumber report with logs

How to add log messages to the cucumber Jenkins report

Posted on November 16, 2021December 7, 2022 by guru

Adding log messages to the automated report it’s an important feature, that helps in analyzing and identifying the failing issues. In this post, we are going to help you to add log messages to the cucumber Jenkins report. As you may know by default pretty cucumber reports don’t save log messages in the cucumber.json file…

Read more
WebDriverFactory

Factory Method Pattern in the creation of Selenium WebDriver

Posted on November 15, 2021November 15, 2021 by guru

As software engineer, We all face some errors/exceptions while writing code! So what do we do when we face such a problem? If we are not sure, We google for solutions immediately. Don’t we? We google because we know that we would not be alone and someone would have already found the solution, for the problem we…

Read more
Spring profiles

How to send different values in cucumber features based on profile

Posted on August 2, 2021December 6, 2022 by guru

First of all, I want to mention that this post continues the previous one where we have added AOP to execute some additional logic on cucumber steps. My recommendation will be to read mentioned post. Let’s start… About Spring Profile From official documentation a profile has the following role:Spring Profiles provide a way to segregate…

Read more
Cucumber with AOP

How to log execution time for cucumber steps

Posted on March 25, 2021March 25, 2021 by guru

Hi folks , this post is more a continuation of Cucumber 6 Spring Integration, in case you didn’t read Cucumber integration post, please do for better understanding. In this post we will extend the existing project by adding a useful functional of logging execution time for every cucumber step, without adding making any changes in…

Read more
strategy-pattern

Strategy Pattern in Test Automation with Selenium WebDriver

Posted on December 8, 2020January 31, 2021 by guru

As a software engineer, We all face some errors/exceptions while writing code! So what do we do when we face such a problem? If we are not sure, We google for solutions immediately. Don’t we? We google because we know that we would not be alone and someone would have already found the solution, for the problem…

Read more
CUCMBER-FOR-BDD

Cucumber 6 Spring Integration

Posted on October 26, 2020December 7, 2022 by guru

Cucumber is a very powerful testing framework, which follows the BDD (behavior-driven development) methodology. It enables developers to write high-level use cases in plain text that can be verified by non-technical stakeholders, and turn them into executable tests, written in a language called Gherkin. Cucumber 6 Spring Integration is intended to make test automation easier. Once…

Read more
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
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

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

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
  • 1
  • 2
  • Next

Recent Posts

  • 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
  • Spring Security with JWT token

Categories

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