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

No BaseStepListener has been registered - debugging serenity-rest-assured

Can anybody help me with setting up serenity-rest-assured so that I can debug it from my IDE (IntelliJ)? I just can not believe it is so widespread and it can't be run other than using "gradlew test" command, and thus no debugging of test cases is…
MichalH.
  • 29
  • 1
  • 5
1
vote
0 answers

When running tests through CucumberWithSerenity, Steps from the module other than where TestRunner is located are ignored

Project structure: parent_module |_api | |_src | |_test | |_java | | |_behavior | | …
iivankov
  • 11
  • 1
1
vote
0 answers

Cucumber Step Defintions/Serenity Steps

I'm looking for some guidance on how to structure my quite large framework using Serenity/Cucumber so I am efficiently using layers of abstraction. Is there any general rules/advice/tips other than what is in the manual? The framework is setup as…
Lewis
  • 59
  • 1
  • 1
  • 7
1
vote
0 answers

serenity properties does not work for safari

In my setup, I am running my tests for CucumberWithSerenity.class The issue is after execution of my tests with safari browser, safari does not clear the cookies and other related data. e.g. After login steps are completed, i have to search for a…
Rahul
  • 51
  • 1
  • 1
  • 5
1
vote
0 answers

Serenity BDD JVM How do i do action if the showl scenario fails or pass?

I build this framework with serenityBDD and JVM. I need to write results in test rail with an api that if my scenario fails, then to trigger this api. I cant add it in the scenario steps becuase if it fails before it might not get to that api. Is…
1
vote
3 answers

NullPointerException when using multiple stepdefinitions in Cucumber-jvm

I am currently building a framework to test a Rest-API endpoint. As I am planning to write a lot of test cases, I decided to organize the project to allow me to reuse common Step Definition methods. The structure is as follows; FunctionalTest …
philip
  • 484
  • 9
  • 26
1
vote
1 answer

How to run all the scenarios of one feature file in single browser instance with selenium,serenity & cucumber

I am not able to execute selenium,cucumber & serenity scenarios of one feature file in single browser instance and currently each scenario is running in new browser instance Below are my configurations: Serenity and Cucumber…
1
vote
1 answer

SerenityBDD: Wrong scenario outline report text and test filename length issue

I'm creating a PoC with SerenityBDD + Cucumber and I've found that with a simple example using Scenario Outlines, the report generated doesn't show the correct Scenario Outline text and the gradle task fails due the generated test file name…
1
vote
1 answer

Cucumber parse table to list of objects

In cucumber I can parse a table to a list of a objects, for example: public class Model { public String a; public String b; public String c; } My feature file: Scenario: Example Given examples |a |b |c | |lsj |fjsldkf|fljs…
Rogger Fernandes
  • 805
  • 4
  • 14
  • 28
1
vote
2 answers

How to run one feature file as initialization (i.e. before all other feature files) in cucumber-jvm?

I have a cucumber feature file 'A' that serves as setting up environment (data clean up and initialization). I want to have it executed before all other feature files can run. It's it kind of like @before hook as in…
1
vote
2 answers

intellij running serenity cucumber tests

I downloaded this test project to learn screenplay with serenity and cucumber https://github.com/serenity-bdd/screenplay-pattern-todomvc I can do clean verify with different profiles on command line as the readme suggests If I load the same project…
Kalpesh Soni
  • 6,879
  • 2
  • 56
  • 59
1
vote
1 answer

Serenity Reports Logo Change

I am using Serenity with Jbehave. I would like to know how to replace the current report's default logo of serenity with a custom company logo. what is code changes need to be done for changing the default logo?
1
vote
0 answers

Publishing Serenity reports in e-mail

When I send serenity report index.html from my machine to another person, the report does not open properly and clickable links in the report don't work. But when I zip entire serenity folder and send it across in the e-mail the report opens…
Tester_Cary
  • 39
  • 2
  • 8
1
vote
1 answer

Is it possible to use Serenity with Cucumber-JVM for parallel test run?

I am using Serenity with Cucumber-JVM. Can I configure my tests to run in parallel to reduce execution time?
Manisha Awasthi
  • 449
  • 1
  • 5
  • 16
1
vote
1 answer

How do I show a REST call response in Test Results with Serenity?

I am using a framework with Serenity BDD (Thucydides), Cucumber and RestAssured. I want to be able to show the Response that I get after performing a request in my Test results HTML page. Is there any way for doing that? Thanks!
Daniel Stoica
  • 65
  • 2
  • 2
  • 9