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

How to fetch Examples key and values from feature file into different Steps

In my cucumber feature file, Ihave some thing like this: Scenario Outline: Hi Hello Given I open When I fill details Then Click enter Then I verify Examples: |Name|Age|BOB |Place| |JOHN|20 |2000| OH | Above Examples…
Jagadeesh
  • 71
  • 1
  • 2
  • 6
0
votes
0 answers

How do i Upload a file using serenity screenplay pattern

I'm working on serenity screenplay pattern. I need to upload a file to a textbox on a webpage but I got the following error: "TargettedAction invalid element state: Element must be user-editable in order to clear it." This is where I am getting…
seyi ojo
  • 23
  • 6
0
votes
0 answers

Dependency Injection with serenity-cucumber spring

I am writing auto-test for web app using cucumber, serenity and spring in Java. I have 3 separated files with step definitions classes. One test includes steps from different step definition classes and I need to use only one exemplar for WebDriver…
0
votes
0 answers

Cucumber / Serenity isn't including select options in screenshots of the HTML report

I'm using the latest stable versions of cucumber and serenity, along with the standard chromedriver. I'm having minimal joy trying to show the contents of a select box in my HTML reports. Here is my HTML code: …
0
votes
1 answer
0
votes
3 answers

How to launch Serenity Cucumber BDD on chrome browser?

I'm new to Serenity BDD and not sure why my test is running always on Firefox with the code I have attached. Adding a web driver variable annotated with @Managed(driver="chrome") isn't making any difference. Is there a way I can direct the framework…
0
votes
1 answer

WebDriverError when running Protractor tests against Safari

First of all, thank you so much in advance for all the help. I have been trying to googling possible solutions, but couldn't find any lead. I am trying to run some UI tests with the SerenityJS framework, which is a layer on top of Protractor. I have…
0
votes
1 answer

serenity not opening browser

As we know in serenity bdd (cucumber) the webdriver is initiated by using PageObject class. public class OpenPage extends PageObject { OpenPage(WebDriver driver){ super(driver); } public void open_page() { …
0
votes
1 answer

AppiumFieldDecorator method is giving error with latest serenity version

I am new to Serenity Appium. I am trying to achieve Serenity-Cucumber-Appium with page object mechanism. To achieve page object I came across below method need to have in a base Page object class. public class MobilePageObject extends PageObject { …
Durgesh
  • 585
  • 4
  • 12
  • 33
0
votes
0 answers

Issue on opening a page with serenity/cucumber

I'm trying to open a page in the StepDefinition class by calling the open() method of the PageObject class. The problem is that after this method is called it doesn't go to the instructions after: homeSteps.openPage(); //the following instructions…
codeDev
  • 79
  • 1
  • 9
0
votes
1 answer

Java - Cucumber - Serenity Reports - Test Ignored

I have an issue trying to run my Serenity Runner in IntelliJ IDEA. I will put the data here: IntelliJ IDEA 2018.1.5 (Community Edition) Build #IC-181.5281.24, built on June 12, 2018 JRE: 1.8.0_152-release-1136-b39 amd64 JVM: OpenJDK 64-Bit Server VM…
nosequeweaponer
  • 511
  • 10
  • 38
0
votes
0 answers

AspectJ Pointcut not being triggered

I'm trying to hook into Cucumber-Serenity libraries that are running using AspectJ but my pointcuts don't seem to be getting triggered. SerenityAOP.java: import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import…
Fueled By Coffee
  • 2,467
  • 7
  • 29
  • 43
0
votes
1 answer

How to deal with corner/edge/error cases with serenity

I like the idea of focusing on business scenarios. However, as a developper I also want error cases to have automated non-regression tests. For example, in a e-commerce feature, there would be a scenario James uses his credit card to pay James…
lwouis
  • 21
  • 5
0
votes
1 answer

Timeout exception: Timed out after 40 seconds waiting for net.serenitybdd.core.pages.WebElementFacade for selenium webdriver

I am running selenium tests and getting below error abruptly. The test runs are not passing consistently every time. Sometimes it fails and sometimes it pass. And the step at which it fails is also not fixed, it fails at different step every time.…
0
votes
1 answer

Need to copy feature file to some location before execution of test cases in cucumber

There is some specified location where feature files are present. There is need to copy these files to src/test/resources/ before execution of test cases as a part of automation. I tried using @BeforeClass //java code to do copying of files from…
KRR16
  • 187
  • 2
  • 3
  • 10