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
6 answers

Serenity manage webdriver to run in maximize window

Is it possible to run each Scenario in webdriver maximize mode? I was trying to add to Runner class method with using TestNG annotation @BeforeClass and it works just once, but when scenario passed or failed than the browser get closed and then…
diazolin88
  • 125
  • 2
  • 10
1
vote
3 answers

Timeout setup for Serenity BDD or Cucumber BDD framework?

I am writing some BDD automation test using Cucumber in combination with Serenity framework. And I need some timeout mechanism in my BDD test so that if a Cucumber scenario or a Step in Serenity is taking too long, it will time out and test will…
user1559625
  • 2,583
  • 5
  • 37
  • 75
1
vote
1 answer

Why is my Spring JUnit Test Rule not running?

I've been struggling to find an obvious solution to why the linked code will not run JUnit TestRules. I've created a success case where TestRules execute, and a failure case that shows a situation where TestRules fail. Is anybody able to see why…
John Deverall
  • 5,954
  • 3
  • 27
  • 37
1
vote
1 answer

Cucumber-serenity not inject Steps

I´m using cucumber-selenium to run some integration tests. I manage to create the feature file and the Test class. But once that I´m in my Give method I see that the ScenarioSteps(ProjectMemberSteps) class that I define to talk with the object page…
paul
  • 12,873
  • 23
  • 91
  • 153
0
votes
0 answers

Could not resolve com.google.guava:guava:31.1.-jre

I am trying to download the dependency serenity core 4xx version(testImplementation "net.serenity-bdd:serenity-core:4.0.0-beta-1") but its throwing the below error: could not resolve com.google.guava:guava:31.1-jre could not resolve…
0
votes
1 answer

Serenity Report aren't generated in case test is executed locally

I updated the serenity version. We used the 3.3.2 version and I updated to use the most recent one 3.9.8. The new version broke the serenity report generation. The report is not generated anymore in case we are running the test locally with a JUnit…
0
votes
0 answers

Serenity report doesn't show scenario details with Scenario Outline

I have created a cucumber scenario: Scenario Outline: The one where we fetch classifications for a list of part numbers in batch from CCS Given the parts with classifications from CCS for plant XX When we lookup classifications for…
Pia
  • 13
  • 2
0
votes
0 answers

Cucumber with Serenity does not execute all scenarios with the same tags name

I'm using cucumber with serenity and want to execute 2 test scenarios with the same tag name. However, it just only run the first one. Could you please have a look? Cucumber class @RunWith(CucumberWithSerenity.class) @CucumberOptions(glue =…
0
votes
2 answers

how to get total duration, total passed and failed test case in serenity cucumber java

i have an automation API and web written in java, serenity and cucumber. how can i get the value of total duration, passed and failed test case ? thank you
0
votes
0 answers

Unable to view the successful report/index.html by executing java jar file from cmd in serenity

I am unable to see index.html after the successful executing java jar file from cmd prompt. Issue background : When I am trying to convert the serenity project to java jar file I am executing the same java jar file using command prompt it. And it…
Kavi
  • 1
0
votes
1 answer

SerenityBDD - How to configure multiple browsers and multiple drivers with individual capabilities in serenity.conf file?

I have created a serenity-bdd project version 3.7.1 in java. Below is serenity.conf file inside src/test/resources location. webdriver { driver = "chrome" } environments { dev { pages { admin.url =…
0
votes
0 answers

CucumberWithSerenity throw Error java.lang.NoClassDefFoundError: io/cucumber/java/PendingException

Currently I use cucumber for testing in my project. It works as belows: import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions(features =…
0
votes
1 answer

JAVA Could not instantiate class org.openqa.selenium.edge.EdgeDriver

Hello I am using Java/selenium for test automation and starting from today I am having this error while using Edge. Everything was working just fine. It started with Chrome 4 weeks ago then I used -Dchrome.switches="--remote-allow-origins=*" to…
0
votes
1 answer

Can I parameterize background for a specific scenario in Cucumber

I have two scenarios which uses common credentials but second scenario needs to be run for 2 more credentials. Is there any way through which I can pass parameterise background to achieve this? For instance, Background: When A "" logs…
0
votes
0 answers

Iterate through dynamic table rows using serenity screenplay

What is the best way to deal with dynamic web table using serenity screenplay? in selenium I use to do like, List rows = wd.findElements(By.xpath(".//*[@id='leftcontainer']/table/tbody/tr/td[1]"));
sama940
  • 35
  • 1
  • 5