Questions tagged [cucumber-serenity]

Questions regarding use of Serenity with Cucumber BDD test automation tool

Serenity Behavior-Driven-Development is an open source library

The aim of Serenity is to make it easy to quickly write well-structured, maintainable automated acceptance criteria, using your favorite BDD

You can work with Behavior-Driven-Development tools like Cucumber

Cucumber is a popular BDD test automation tool

Docs: http://thucydides.info/docs/serenity-staging/#_serenity_with_cucumber

279 questions
7
votes
1 answer

What is the difference between Serenity BDD Framework and Cucumber tool

Today I've got some theoretical question. I have a little experience in BDD with Cucumber. Now I started working in API testing and I faced with Serenity BDD framework on my new project. It is used with Cucumber. So I would like to clarify what is…
balantain
  • 105
  • 2
  • 8
6
votes
0 answers

How to pass a csv file in 'Examples' in Feature file and read values from CSV file in Java cucumber

In Cucumber 'Feature file '-> 'Examples' , how to set path for CSV file. Sample.feature Feature:Launch an app Scenario Outline:Validation of the application Given User navigates to application When User logs in using…
4
votes
1 answer

Cucumber not identifying scenario without examples

I have a gherkin scenario similar to following: Scenario Outline: Test some behaviour Given a set of preconditions When an event occurs Then my application has to behave in a particular manner And respond as expected When I execute…
4
votes
2 answers

How to customize the reports for serenity BDD

I wish to change the CSS and logos in Serenity reports. Also I want to add some custom text or links to some tests in the Serenity reports.Like there is an excel report gets generated and I wish to provide a link of it in the test step in the…
Charan Sethi
  • 63
  • 1
  • 3
  • 8
4
votes
2 answers

Run a single cucumber scenario from an executable JAR

I would like to package my acceptance tests into an executable JAR where all necessary libraries are included for running the tests and generating the reports. I would also like to either run all tests or a single test. So far, I'm able to run all…
3
votes
5 answers

How to get all the cucumber scenario steps in before hook?

I want to access all the cucumber scenario steps in @before hook. Is there a way to do this? I have tried passing the cucumber scenario object in the before hook method but it only provides the basic info like scenario.getName(), scenario.getId().…
3
votes
1 answer

Serenity BDD report does not show stories with Examples (Embedded tables)

I have a problem with all my stories showing up in the Serenity report. When I run them with maven (mvn clean verify) I can see them in the output and they run through all the examples but when I open the report that is generated in the…
Traveller
  • 399
  • 2
  • 20
2
votes
0 answers

SpringBoot :SerenityBDD :Cucumber : Not loading application.properties for test

I am setting up test framework using spring boot , serenity cucumber bdd application.properties file as below url.lcs="http://xxx.xx.xxx:8090/api/vcs" Here is my Config class import…
Abrar Ahamed
  • 199
  • 11
2
votes
1 answer

java.lang.NoClassDefFoundError: Could not initialize class io.restassured.RestAssured at net.serenitybdd.rest.SerenityRest.useRelaxedHTTPSValidation

I am using Serenity+rest assured for my selenium test cases. But while doing maven install, I am getting below error. java.lang.NoClassDefFoundError: Could not initialize class io.restassured.RestAssured at…
Anamika Chavan
  • 149
  • 1
  • 3
  • 14
2
votes
0 answers

How to use Get.resource("path") REST APIs using Serenity Screenplay with HTTPS Validation as an Actor

I'm new in Serenity BDD and I'm trying to use Get.resource() method as an Actor for API Test but I need to turn off the SSL validation, could you please help me on that? tom.attemptsTo( Get.resource("/today") ); Thanks a lot
Ahmed
  • 21
  • 3
2
votes
1 answer

How can we run only specific cukes with Cucumber

I do understand that cucumber itself not providing any such functionality where we can run specific few cukes from cucumber. Note: from cukes I meant multiple folder having different feature files For Example: Folder1: -> one.feature ->…
2
votes
0 answers

Serenity - Cucumber - Java - Aggregate Report is not being created (Maven)

I'm trying to generate the Serenity Reports in IntelliJ IDEA with Maven in Java with Cucumber and Serenity. This is my runner: import cucumber.api.CucumberOptions; import net.serenitybdd.cucumber.CucumberWithSerenity; import…
nosequeweaponer
  • 511
  • 10
  • 38
2
votes
0 answers

serenity with cucumber Retry feature

I would like to retry the failed test for my Serenity BDD with Cucumber Acceptance Tests. As per the Serenity Documenation, I see there is a section for retry but it seems to be junit specific. Here are two props it has listed for junit…
Ram
  • 117
  • 1
  • 2
  • 8
2
votes
0 answers

Selenium attempts to start a new driver after a few steps

I am having some issues running some automated tests on a web page. The test case is simple: Navigate to login page, type username and password, click login and then do an assert on an element from the home page. The problems start after i click the…
2
votes
1 answer

Rerunning the failed scenario using Maven/Cucumber/Serenity

Has anyone used maven surefire plug-in or any other mechanism for rerunning failed scenario. I am using Cucumber with Serenity and Maven. I tried below different ways in order to rerun failed scenario without any manual intervention For example: If…
1
2 3
18 19