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
1
vote
1 answer

Step Definitions not implemented - Cucumber with Angular9 & Serenity/JS

When I run my Cucumber step definitions using protractor e2e/protractor.conf.js the test reporter returns: Logging in to application: User navigates to site from outside company network Given User is not on company network …
1
vote
2 answers

mvn serenity:aggregate runs 0 tests and index.html has 0 results however mvn clean verify works and gets results

We have Serenity Cucumber integrated with Maven for REST API automation project running with Junit. Whenever trying to execute the command mvn serenity:aggregate results on console shows "Build success' but with 0 requirements loaded and index.html…
la1
  • 519
  • 1
  • 8
  • 30
1
vote
1 answer

Maven - Failsafe plugin is not running cucumber tests in parallel

I am trying to setup serenity cucumber tests to run in parallel I have added all the necessary configuration that have been mentioned but for some reason tests are executed in a single thread. I tried various combinations with forkCount,…
1
vote
1 answer

Global hooks in Serenity BDD

I was trying to implement global hooks in serenity-bdd project. As I browse through found below links and none of them worked for me. Some of them not specific to Serenity-BDD though. package mypackage; import org.junit.runner.RunWith; import…
Shabar
  • 2,617
  • 11
  • 57
  • 98
1
vote
1 answer

build.gradle doesn't run tests "Couldn't compile build file"

I have recently moved from Java to Kotlin. Converted entire project to Kotlin and pom.xml to build.gradle. I am building iOS Automation framework using Kotlin, Gradle, Cucumber Sernity, Appium. Now when I am running using this command it gives error…
paul
  • 4,333
  • 16
  • 71
  • 144
1
vote
1 answer

Am using chrome driver but i keep getting error: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver

I have searched all recently asked question but found no answer. My question is I dont understand why i keep getting the error below when am using chromederiver and not firefox. My code launches the browser and throws this error when attempting to…
1
vote
0 answers

How to generate two seperate serenity reports for two seperate cucumber tests using the same runner class?

I have two cucumber feature files. 1) Feature 1 2) Feature 2 I have one CucumberWithSerenity runner class. When I run both feature files together, using the same runner class the report generation is failing with the below error. FAILURE: Build…
1
vote
2 answers

@RunWith(CucumberWithSerenity.class) throws NoClassDefFound cucumber/runtime/junit/Assertions

Trying to run Cucumber with Serenity using JUnit 5. When the Test Runner has a @RunWith(Cucumber.class) annotation, the tests run, although Serenity does not record the outcome. When the Test Runner has @RunWith(CucumberWithSerenity.class), a…
Bill Bensing
  • 193
  • 2
  • 17
1
vote
0 answers

Error message when integrating serenity with cucumber4

Im trying to integrate Cucumber feature files with Serenity. When I run my tests using @RunWith(Cucumber.class) they run fine, but when I change it to @RunWith(CucumberWithSerenity.class) raise an error. Ive been following John Ferguson Smart's…
JimBozz
  • 11
  • 1
1
vote
1 answer

loop a feature file on the given data

Background: There are more than 500 users. Their user name and password are stored in a CSV file. Each user must pass this .feature file which consists of 18 scenarios. Problem: I know we can use data tables, scenario outline, but data mentioned…
paul
  • 4,333
  • 16
  • 71
  • 144
1
vote
2 answers

same cucumber gherkin step but different methods

I have a step Given I have a pass |hotel| and Given I have a pass One runs with data and one runs without data. To handle above requirement I wrote two functions: @Given("^I have a pass$") public void givenIhaveAPass() { } and @Given("^I…
paul
  • 4,333
  • 16
  • 71
  • 144
1
vote
1 answer

If one scenario fails continue with next Scenario in a cucumber feature file

How can I continue running a feature on failure of 1 scenario to next? Currently if first Scenario fails out of 10 (lets say) next 9 will not execute and it quits current session on driver/browser (WebDriver). I am using Cucumber with Java, Junit,…
paul
  • 4,333
  • 16
  • 71
  • 144
1
vote
0 answers

When ran the TestRunner.java file, asked "to implement missing steps", even when that same step was copied to stepDefinitions file

When I am starting off with a feature file, I have a simple 3 or 4 step feature file. When I ran the Runner file and the step definition stub methods are generated by JUnit in the console, I copied and pasted in to the step definitions file. My…
PraNuta
  • 629
  • 3
  • 12
  • 33
1
vote
3 answers

How to initialize a driver object so it can be used by all classes

How to initialize the driver so it can be used by all classes Hi All, I am writing a test automation framework in JAVA using Appium, Selenium and Cucumber. I start off by declaring an Appium Driver in one of my test step files and then this gets…
1
vote
0 answers

How to run scenario outline multiple time for list of data

I want to run my scenario outline examples more than once with different set of data and data is dynamic for examples. For eg: I am having java List say L which contains values of country like USA, INDIA UK and so on.(which will generated…