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
0
votes
1 answer

Execute Scenario Outline in a feature file only if previous one passes

I am using a Cucumber feature file with two scenarios using Scenario Outline. Is there a way to execute the second Scenario Outline, only if the first one passes? Scenario Outline: Test 1 fails, then Scenario Outline: Test 2 is never executed. I…
kokodee
  • 285
  • 1
  • 3
  • 15
0
votes
1 answer

How to update selenium-server-standalone to specific version for protractor and node-js?

How to update selenium-server-standalone to specific version ? As in my project I want version 3.0.1 but when I ran webdriver-manager update It downloads "3.141.59" version which is not compatible for my project.
0
votes
1 answer

In cucumber how we pass data in example keyword through database

I want to pass data in example keyword through the database, for example, I have one scenario: Scenario Outline: login with valid credential Given Enter "username" And Enter "password" When click on submit Then navigate on home…
Piyush Garg
  • 37
  • 2
  • 10
0
votes
2 answers

Relative path in serenity properties file

I want to provide a relative path in serenity.properties file. So that my project is OS independent. When I am trying: chrome_preferences.download.default_directory = /target it is failing, means chrome's default directory doesn't change but when I…
paul
  • 4,333
  • 16
  • 71
  • 144
0
votes
1 answer

How can I import serenity test results to XRay test execution?

Test results of serenity/cucumber can't be uploaded to Jira/Xray Test Execution task. Tests executed with mvn clean verify. Upload of Json file results in "No tests found in execution result". Upload of XML file results in "description ->…
Michi
  • 1
  • 1
0
votes
1 answer

How to make synchronized work when using maven-surefire plugin?

I'm using the maven-surefire plugin to execute the Cucumber Runner in parallel. In each of the Runners, I'm invoking a synchronized static method of a Utilities class. But all the Runners running in parallel are able to invoke the method in a…
0
votes
1 answer

Don't run cucumber feature but add it to serenity reports

I use Serenity framework in my project for selenium integration testing. I use Screenplay pattern. I have two features in one folder and each feature contains two scenarios. I would like to ignore whole feature, but when I add @Ignore annotation on…
0
votes
1 answer

How to move cucumber example data in external source

My requirement is to load parameters from an external resource in cucumber For an example: Scenario Outline: eating Given there are cucumbers When I eat cucumbers Then I should have cucumbers Examples: …
0
votes
1 answer

Serenity BDD Report showing example in place of steps

2.0.54 2.0.16 1.9.20 In the report I can see all the task ran but it is not…
Chandresh Mishra
  • 1,081
  • 3
  • 24
  • 45
0
votes
1 answer

Cucable Plugin not running Scenarios in parallel

I'm trying to run Scenario's in parallel using Trivago's Cucable Plugin. To test it before implementing it my project I download this project. https://github.com/trivago/cucable-plugin/tree/master/example-project I tried, mvn clean verify and it…
paul
  • 4,333
  • 16
  • 71
  • 144
0
votes
2 answers

How to show HTTP response status of rest API in serenity report through feature file

I want to show the http status code and response in serenity report. I am using the cucumber plus java and serenity framework. Please find below my code. Feature file Feature: Get Google address Scenario: Predit google Address Given API is set up…
ankititp
  • 23
  • 4
0
votes
1 answer

@FindBy annotations cannot find the element, when element state is not visible

@FindBy annotation cannot find the element, when element state is not visible. We are writing some SEO tests those elements are not visible on webpage. For example following is not working; @CacheLookup @FindBy(xpath =…
Berkay Kirmizioglu
  • 1,134
  • 1
  • 11
  • 23
0
votes
2 answers

Unable to generate Serenity aggregate report when tests are executed through Junit

I see that for each test execution individual html report is getting generated ,but aggregated(combined) report is not getting generated. Is there a configuration that I need for it? If I run the below command, it generates the aggregate report for…
a p
  • 1,121
  • 6
  • 26
  • 51
0
votes
0 answers

Can't run Java with specific dependecy

I use Intellij 2018.1 and when i add to my project a serenity-cucumber dependency with latest versions, the run and debug button doesn't work anymore. (It's strange that maven it's able to run the tests with no problem). I tried and built the…
thmmy95
  • 361
  • 2
  • 18
0
votes
1 answer

How do I export the Serenity Report Result to HP ALM

I have my Jenkins Job running for API Automation coded in JAVA. It generates the Cucumber - Serenity Report in the form of index.html. I need to export/push the test execution result in HP ALM to track my execution results in HP ALM Gone through the…