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

How to setup custom serenity.properties location?

I would like to load custom serenity.properties from specific directory etc. src/test/resources/properties/serenity.properties via gradle I tried to use -Dproperties parameter with absolute path to file (as it is recommended on their site) but it…
Hreso
  • 13
  • 1
  • 6
0
votes
1 answer

How to run maven serenity tests from command prompt for headless browser testing?

I am using the following command to run my Serenity test cases using Chrome browser, passing credentials. It is working perfectly. mvn clean verify -Dwebdriver.driver=chrome -DuserId='xxxx' -Dpasscode='xxxxxxx' Now I need to integrate with Jenkins…
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
1 answer

Error in my method for putting double time " "- XPATH with a specific Text

I am trying to put this xpath in eclipse, but it does not work. Any idea? I have to say that I put " " between HER'S SISTEM S.A because that name also has " ' " so I must use the " " to specify the specific text and my bot recognize this text , if I…
user11187837
0
votes
1 answer

How to navigate through a paginated list until find a text with Serenity-JS?

I need to assert that an element I created was added to a list, but it is added at the end of it and it is paginated. I'm thinking of navigating through each page by calling another task this way: export class CheckItem implements Task { static…
0
votes
1 answer

Is there any way to number the scenarios and it's steps?

As we write feature file which contains several scenarios, which contains several closely worded, closely meaning step definitions, I am thinking of numbering them. Like if a step 3 of a scenario 2 would be named as s23. I tried doing it like...…
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
1 answer

Cucumber Serenity NoSuchMethodException cucumber.runtime.SerenityBackend(ResourceLoader, TypeRegistry)

I am trying to run a sample cucumber test with Serenity which works perfectly fine when run with Cucumber. However, i get the below error though I made sure all the dependencies are added to maven pom file. Below are the versions of Serenity and…
gaadi
  • 3
  • 3
0
votes
2 answers

select the next button- xpath-selenium

I am exactly in the line where there is the text ='Ver Informe'. I want to go to the button that is next to that line. Because only work when I make the click there. Could you help me go there? I tried: /button1 -- and doesn't work.
0
votes
1 answer

How to run my serenity feature, providing command line options(login credentials) to the program?

My serenity project feature is working perfectly, by running maven project by using mvn clean verify But our leadership is against keeping login credentials(userId, password) in the feature file or any external properties file. Only supplying them…
0
votes
1 answer

Is it possible to pass parameter value in Cucumber feature from JSON file?

We have current framework in Jbehave where we have large number of test data stored in JSON file and using Parameterconverter to pass value to JBehave stories based on specific environment. I am working on switching framework to Cucumber and…
0
votes
1 answer

A feature file having two individual scenarios having weird web locator problems

I have a feature file with having two scenarios: one for login to website, another one doing some actions on the logged in page. If I arrange the feature file with just one scenario, it is working fine, especially line highlighted in the first…
0
votes
1 answer

Referring to John's Serenity BDD book, can a @Test annotation encompass a complete scenario, as part of running SerenityRunner.class?

I am referring to John's Serenity bdd book @ https://serenity-bdd.github.io/theserenitybook/latest/step-libraries.html. Very in the beginning, John seem to be enclosing a set of @given @when @then step definitions inside a method, which is annotated…
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
0 answers

StepDefinitions.java file is not picked up by TestRunner of my Serenity maven running

I kept my (prefix_name)Runner.java file under _ __src/test/java/(company_domain_package)\runner** _ folder and kept my _(prefix_name)StepDefinitions.java_ file under src/test/java/(company_domain_package)\stepdefinitions folder. In my Eclipse when…
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
1 answer

Browserstack Serenity local testing - Can't get a consistent configuration, browser stack runs on different version of chrome and OS constantly

I have got browserstack working with a automation framework that I did not setup, while my local tests (the website I'm testing is in development still and so not on a DNS) do run on browserstack the environment/configuration used by browserstack is…
0
votes
1 answer

How to return a value from an Interaction

I have a screenplay interaction class that makes a select from a postgres DB. I would like to know how to return the result set using this screenplay pattern. What I have tried by now is changing the returned type on the method "public void…
Jarvcol
  • 33
  • 1
  • 1
  • 6
0
votes
1 answer

Serenity: How to differentiate the reports based on the platform used?

We are using serenity reports for both platforms to run automation scripts but not sure how to differentiate the features or scenarios in the reports to say which platform is belonged to. I have used tags still no use as those tags are shown for…
vamc
  • 125
  • 1
  • 2
  • 13