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

Selenium Find an element in a table by another element?

I am trying to find a row in a table by an element, then find a element in that row and return an attribute (Or do something else). The java selenium code here finds a table body. The getText() accurately prints out the text in the row for each row,…
JumpyToad
  • 21
  • 3
2
votes
0 answers

Enable Soft Asserts in Serenity - Cucumber JVM

In Serenity-Cucumber execution, I am trying to insert Soft asserts in the Serenity Steps using the following command StepEventBus.getEventBus().enableSoftAsserts(); This isn't showing any effective soft Assertion . Where as when I do the same…
ANavuluri
  • 21
  • 3
2
votes
1 answer

Setting device name in serenity.properties file for chrome driver

How do I set the mobile emulation for Nexus 5 view in Serenity managed chrome driver? I tried going through this link: https://johnfergusonsmart.com/configuring-chromedriver-easily-with-serenity-bdd/ Which explain setting preferences for…
Ashray
  • 171
  • 1
  • 7
2
votes
1 answer

How can be the report opened automatically when test finishes

I am running Serenity-js with cucumber and Angular CLI. I am using scripts in 'package.json' to execute the sequence of cleaning, testing and generating the report "e2e2": "failsafe clean pretest protractor report". //package.json ............. …
Spiral Out
  • 1,045
  • 12
  • 18
2
votes
2 answers

serenity-bdd with cucumber feature hooks

I am using Serenity-BDD with cucumber and I would like to run certain things only once per feature file. It looks like cucumber doesn't support this at the moment. I was wondering if serenity has some workaround for this. I've also tried to use the…
2
votes
2 answers

Skip next tests when one fail serenity cucumber

I am using Serenity with Cucumber to write automated web tests, I could not find in docummentation a way to ignore next tests when one fails. Currently, if a step fails to run, next steps in the same SCENARIO are ignored, but next scenarios in the…
2
votes
2 answers

Generate Serenity aggregate report when tests are executed through Junit

I am running Cucumber+Serenity Tests using Junit: Code snippet: JUnitCore engine = new JUnitCore(); engine.addListener(new TextListener(System.out)); engine.run(featureClass); For the each test execution individual html report is…
varunanilgupta
  • 21
  • 1
  • 2
  • 4
2
votes
0 answers

Spring Boot Test, Cucumber, Senenity, Jersey - Correct set up?

What is the correct set up for Spring Boot Testing using CucumberSerenity? The rest end point is not accessible and returning null. @ContextConfiguration(classes = AppConfig.class, loader = SpringApplicationContextLoader.class) public class…
richersoon
  • 4,682
  • 13
  • 44
  • 74
2
votes
2 answers

Serenity BDD fun features by groups

I use Serenity BDD + Cucumber to perform my test, in fact that I have too many tests I need to run hem separately sometimes. Is it possible to execute Serenity BDD features by groups? Like in jUnit @Group(MyTestGroup.class)? I can not find any…
java_user
  • 929
  • 4
  • 16
  • 39
2
votes
1 answer

Keep PhantomJS browser open between test scenarios

We´re using the stack Java + cucumber + selenium + phantomjs, everything works fine, but we notice that phantomjs is restarting the ghostDriver for every single scenario which take time. I just wondering is it possible to just keep PhantomJS browser…
paul
  • 12,873
  • 23
  • 91
  • 153
2
votes
1 answer

Set PhantomJS webDriver on Serenity

I'm using Selenium-serenity for my integration test. By default selenium integrate FirefoxDriver for the WebDriver, but now what I'm trying to do is use PhantomJS. I could not find so far how to set the driver properly after being initialized. So…
paul
  • 12,873
  • 23
  • 91
  • 153
1
vote
2 answers

Serenity is not using Custom Firefox profile while Launching the Browser

I am using Serenity BDD and I needed to Launch Firefox Browser with a custom profile bacause i wanted to store certs into that profile. So, i wont have any issue with Auth. However, I have added below codes to use custom Firefox Profile. …
1
vote
1 answer

Need help replacing this method since CoreConnectionPNames is deprecated (org.apache.http.params)

I am using this method to set CONNECTION_TIMEOUT and SO_TIMEOUT public void setConfig(ContentType contentType, Integer timeout) { setConfig(SerenityRest.config() .sslConfig(new…
khadjolees
  • 11
  • 1
1
vote
2 answers

Is there a way to run only selective examples from a cucumber scenario outline?

I have a Cucumber .feature file with scenario outline like below. Scenario Outline: eating Given there are cucumbers When I eat cucumbers Then I should have cucumbers Examples: | start | eat | left | | 12 | …
vivek_ganesan
  • 658
  • 4
  • 19
1
vote
1 answer

Integrating Karate with Serenity BDD to generate serenity reports

Trying to find if Karate can be integrated with Serenity BDD framework so we can generate Serenity reports from Karate test runs. Karate does emit cucumber json but can serenity just act as report generator?
Rohitdev
  • 866
  • 6
  • 15
1
2
3
18 19