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

how to configuring or save index.html in specified folder with Serenity BDD and Maven

I want to store main report file index.html with timestamp in specified folder with Serenity BDD and Maven. and I want to hide the other files which are getting generated along with index.html file. can't we just generate a single emailable…
1
vote
2 answers

java.lang.NoClassDefFoundError: io/cucumber/core/runtime/TypeRegistryConfigurerSupplier

I am getting the 'java.lang.ClassNotFoundException' exception while running maven test in my project. The same program works fine if @RunWith is tagged to (Cucumber.class) but apparently not with @Runwith(CucumberWithSerenity.class). I am not sure…
1
vote
2 answers

Serenity Java predicate failed

I am developing some automated tests with Java 11.0.11 over Serenity+Cucumber+Gherkin in ScreenPlay pattern have already done over a dozen stepsDefinition currently working without error but this one: //SomeStepDefinitions.java: String bar = "my…
LCCEOR
  • 11
  • 5
1
vote
0 answers

Intellij gives incompatible kotlin version but no kotlin is used

I'm trying to upgrade my cucumber/serenity project but sadly this breaks more then fixes one of the issues is when I want to run a seperate feature file I get the message from intellij Error:Kotlin: Module was compiled with an incompatible version…
stevedc
  • 483
  • 3
  • 8
  • 26
1
vote
1 answer

Needed to add capabilities as acceptInsecureCerts=true in the Serenity.conf file

I was trying to add chrome.capabilities.acceptInsecureCerts=true; into serenity.conf file. It did override that value. However, now executing is failing with below errors. Caused by: org.openqa.selenium.InvalidArgumentException: invalid argument:…
ASM
  • 709
  • 2
  • 8
  • 27
1
vote
0 answers

Duplicate headers in restAssured requests in parallel run

I support implemented tests framework and can't change version of tools, so need to resolve it with current version. The test framework use RestAssered, Cucumber, Serenity. When tests run in parallel sometimes they are failed due to several…
Igor I
  • 11
  • 2
1
vote
0 answers

PageFactory.initElements gives error java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

i am running a serenity bdd framework (cucumber) using selenium java for web automation The driver object is successfully loaded along with the page object for PageFactory.initElements but still i am getting InvocationTargetException The selenium…
1
vote
2 answers

How to solve this error java.lang.NoSuchMethodError: io.cucumber.core.options.RuntimeOptions.isStrict()

I am using the following dependencies in my gradle.build file ext{ serenity_core_version = "2.5.8" serenity_cucumber_version = "6.11.0" serenity_cucumber5_version = "2.2.6" } dependencies { compile localGroovy() compile…
1
vote
0 answers

Getting noBaseStepListener error while using Serenity RestAssured

I am trying to implement Rest Assured framework with cucumber I am facing a weird scenario that I have defined all my step definitions of my feature file then also I am getting error as below when I run my feature file:- Step undefined You can…
1
vote
1 answer

java.lang.NoClassDefFoundError: io/cucumber/core/options/CucumberOptionsAnnotationParser$OptionsProvider throwing in maven serenity-cucumber project

I'm trying to get the base for a serenity-cucumber5 project going by tweaking a starter project I found on GitHub. I've updated the pom.xml file with the latest version numbers so it won't error out anymore, but when I run it through a maven (mvn…
chall18
  • 25
  • 6
1
vote
2 answers

Serenity BDD screenplay verify multiple text elements on the webpage

How do I verify multiple text elements and links in the bdd using Serenity BDD ? I am using below code but using this approach i have to write same copy of code for every element on the webpage which is timeconsuming, is there any alternate way to…
testerBDD
  • 255
  • 3
  • 18
1
vote
0 answers

SerenityRest: How to handle response with no content

I have a serenity Step method that sends a REST API request. It's a POST request to create a resource. I get a 201 in the response and don't expect any content. return SerenityRest.rest().given() …
1
vote
0 answers

Can I pass a variable that captures string values (which is basically a url with token) in the @DefaultUrl in Serenity-JAVA Test Automation Framework

I am using Serenity Java based test automation framework with the below listed dependencies. 1.8 ${java.version}
1
vote
1 answer

Selenium Test execution Video Record screen in avi format using Monte

I am using MonteScreenRecorder jar for record screen. I was successfully record my test execution for cucumber selenium. As well i can see the avi files have been generated after execution. but while i am playing them, i can see only the black…
1
vote
1 answer

How can I continue to run other steps when there is a failure using Serenity?

I apologize for my bad English. I use google translate to post this question. I also searched many of my problems on the internet that did not resolve mine. My problem is as follows: I have an excel file that allows the manual to import data. Each…
Minato
  • 463
  • 6
  • 12
1 2
3
18 19