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

cucumber how to pass variables between testrunnner and step definition class

@RunWith(CucumberWithSerenity.class) @CucumberOptions() public Class TestRunner{} public Class StepDefinitions{} public Class SomeClass{} Is there a way to pass object of type SomeClass from TestRunner to StepDefintions? The…
0
votes
1 answer

Mocha with serenity-js

As per the conversation https://medium.com/p/b06559b35459/info, When I tried to import `{describe, it} from '@types/mocha' I see Error:- /node_modules/@types/mocha/index.d.ts' is not a module As per the example in serenity-js project :-…
divya
  • 1
  • 1
0
votes
2 answers

Selenium Chrome Driver » 3.2.0

I am an automation tester using Cucumber, Serenity and Gradle. I just updated my build.gradle properties file to use [Selenium Chrome Driver » 3.2.0] and ran my login test and found an error that has not occurred in [Selenium Chrome Driver »…
Jrf
  • 31
  • 1
0
votes
1 answer

serenity.use.unique.browser doesn't work on 1.2.2

I have recently updated my dependencies and this seems to have broken serenity.use.unique.browser as a new browser is used for each scenario now. I'm using serenity junit 1.2.2 and cucumber 1.1.23. It was working ok before I updated to these…
Lewis
  • 59
  • 1
  • 1
  • 7
0
votes
0 answers

Unable to click play button coming on mouseover of WebElement in a WebElement List- using serenity and webdriver

I got a list of webelement using xpath = ".//div[@id='list']/ul/li" now li tag has child tags
Geo
  • 1
  • 1
0
votes
2 answers

How to rename Serenity BDD Reports

I'm using Serenity-BDD. When the reports are generated they are named something like "46b29bc63db0f67fe88cfd2a397ea9b2.html". Is there a way to specify the report name? I have already tried setting serenity.compress.filenames but it did not…
Lewis
  • 59
  • 1
  • 1
  • 7
0
votes
0 answers

How to make variable WebDriver's path depending on OS with Serenity BDD?

I am working with Serenity BDD and Selenium to automate my project's tests. These tests should be able to be run in both Windows and Ubuntu. Now, I got the WebDriver's path set in my serenity.properties file: #WebDriver for Google…
0
votes
1 answer

Serenity/JS - Any Code changes made unable to run

I am newbie to JS and typescript. Was able to to run the sample project shared in Git Hub, but if any changes made, there are errors. For Example : Any import statement added or any browser related actions under step_definitions. Can you please…
0
votes
1 answer

Serenity BDD cucumber - is there a way in serenity to avoid over writing the report folder?

Currently when the report is generated it overwrites the reports folder of previous run. Is it possible to specify folder to have timestamp in name by passing something like this? serenity.outputDirectory=reports\&Now() in serenity properties…
azeem
  • 23
  • 8
0
votes
1 answer

Running all featurefiles together in maven goal failing

I am trying to run multiple feature files through maven goal(command line) but after 2 feature files that run successfully, the other feature files (3rd one onwards) fails in some test cases which when ran independently passes all the test cases.…
RV_Dev
  • 435
  • 1
  • 7
  • 21
0
votes
1 answer

Is there a specific function to handle alert in Serenity BDD

Is there any function/class to handle alert or any other types of popups in a browser. I am dealing with an alert popup I know I can handle it by using driver.switchto().alert(); and perform further actions. Since Serenity BDD is quite tailored to…
0
votes
2 answers

Serenity- add values from a form into 2 tables

I started to work with Serenity a couple of days ago and i got stacked by a small problem. I have a grid made by a view of 2 Tables and i would like to add the values from that grid in those tables. I know that i can not add from view directly and i…
0
votes
2 answers

Customized data in serenity report

I am trying to add version information which is displayed in the login page to the serenity report index.html. The version information is captured in LoginPage.java. I see that I can use @Step method to include customized statements in the…
Tester_Cary
  • 39
  • 2
  • 8
0
votes
2 answers

Serenity index.html

I am trying to add the application version number that is displayed in the login page in the serenity report. Currently I am just capturing it in the code and printing in the console. Is there anyway the console output can be included in the…
Tester_Cary
  • 39
  • 2
  • 8
0
votes
1 answer

serenity cucumber browser unique session per feature

I'm looking at serenity (the following versions) 1.1.26 1.1.26 1.1.5 I have feature files F1, F2, F3. I'm…
1 2 3
18
19