Questions tagged [serenity-bdd]

Serenity BDD helps you write cleaner and more maintainable automated acceptance and regression tests faster. Serenity also uses the test results to produce illustrated, narrative reports that document and describe what your application does and how it works. Serenity tells you not only what tests have been executed, but more importantly, what requirements have been tested.

Serenity BDD helps you write cleaner and more maintainable automated acceptance and regression tests faster.

Serenity uses the test results to produce illustrated, narrative reports that document and describe what your application does and how it works. Serenity tells you not only what tests have been executed, but more importantly, what requirements have been tested.

Serenity BDD is one of the Behavior Driven Development (BDD) libraries.

There are integrations with other BDD libraries like JBehave and Cucumber (actually Cucumber-JVM)

Remark: Serenity-BDD was first called Thucydides, but was renamed in November 2014.

637 questions
3
votes
3 answers

RestAssured: get key value from json object with specified value

In a test case I perform a call with the following response: [ { "ourID": "770050010000000010", "date": "2019-03-07", "otherValue": null }, { "ourID": "770050010000000020", "date": "2019-03-07", …
3
votes
0 answers

Clean up data after test

In the process of testing, we all do create test (dummy) data on different env levels like (dev, QA, cluster & sometimes staging). When you have a small number of tests everything is fine, but when you have a large number of tests and when they are…
One Dot
  • 71
  • 1
  • 4
3
votes
1 answer

Getting null value when trying to read environment specific data from serenity.conf

I am trying to configure different environment specific data in serenity.conf and trying to read them using EnvironmentVariables in my serenity bdd tests.I have below configuration in serenity.conf environments { dev { restapi.baseurl =…
3
votes
1 answer

hasItems Assertion error with iterable containing

I am trying to assert that a list return the value that I need, but the assertion is failing and I don't know why if the difference is…
3
votes
5 answers

How to get all the cucumber scenario steps in before hook?

I want to access all the cucumber scenario steps in @before hook. Is there a way to do this? I have tried passing the cucumber scenario object in the before hook method but it only provides the basic info like scenario.getName(), scenario.getId().…
3
votes
1 answer

How to make Serenity enclose a parameter value within a
 tag?

Is there a way to make Serenity enclose a parameter value within a
 tag?
I need the posted data =(When step) to be correctly displayed in the report (spaces and new lines)
Given that API is up
When the following data is posted:
xxxx            …
Nix
  • 176
  • 1
  • 10
3
votes
2 answers

How can I change serenity-bdd log settings in maven

Were using serenity-bdd, and log analysis is important. But there is a lot of spam in the logging: Serenety uses a lot of asci art in there logging witch is in my case waste of space and giving a lot of noice: end2endtests | _____ _____ ____…
Thadir
  • 201
  • 2
  • 16
3
votes
1 answer

How do I get the value of a key if it contains a space in Rest Assured / Serenity?

I am trying to use Rest Assured in the Serenity framework to validate an endpoint response. I send an xml body to the endpoint and expect a JSON response back like so: {"Entry ID" : "654123"} I want to send the XML and verify in the JSON response…
Amax125
  • 31
  • 1
  • 4
3
votes
1 answer

Serenity BDD report does not show stories with Examples (Embedded tables)

I have a problem with all my stories showing up in the Serenity report. When I run them with maven (mvn clean verify) I can see them in the output and they run through all the examples but when I open the report that is generated in the…
Traveller
  • 399
  • 2
  • 20
3
votes
0 answers

Share Spring context between IntegrationTest server and tests

I'm trying to set up environment such that I can configure an object via method calls, then run tests against it using HTTP requests, thus (semi-pseudocode): myStore.addCustomer("Jim") HttpResponse response =…
slim
  • 40,215
  • 13
  • 94
  • 127
2
votes
0 answers

When using --headless=new in my tests they use way more CPU, compared to old headless mode

When using --headless=new in my tests they use way more CPU, compared to old headless mode. Watching the task manager I noticed that even for one test it opens multiple Chrome instances. My tests need headless new to function but I can't run the…
2
votes
0 answers

How to disable particular logs while running serenity scan

We are running serenity scan on our spring boot application with logging enabled. Below are few debug logs before adding logback.xml file to our project. DEBUG org.apache.http.headers - http-outgoing-0 >> POST /url HTTP/1.1 DEBUG…
Vinutha
  • 41
  • 9
2
votes
1 answer

Selenium unable to click on element using headless browser, but same code works fine with a UI browser

I have a page which contains a dropdown menu (created using 'span' and 'li' elements). The dropdown menu has some options which have a submenu also, hat is visible when you click on the parent menu (code given below). When using the UI browser…
gagneet
  • 35,729
  • 29
  • 78
  • 113
2
votes
1 answer

How to replace nth occurrence in the xml template in Java?

Here I am doing automation with Java, serenity with rest-assured. So I want to replace the 2nd

&

tags with a blank string. Here I attached the template

name1 ${value1}

kithmi
  • 85
  • 2
  • 9
2
votes
0 answers

Failed to convert Jbehave named parameters without delemeters

We are using Serenity with Jbehave for out automation stories, and we have recently upgraded our version to Serenity(2.2.1) and jbejave(1.46.0). Jbehave-core updated from 4.1.3 to 4.4. After the update i am facing an issue with examples table. it is…
pradeep
  • 21
  • 2
1
2
3
42 43