You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are getting test data as a list (list of account numbers) from an external source and would like to execute the same test with all the account numbers in the list in my cucumber test.I have method to get test data as list in @before in Hooks and I am able to execute the test with first account number only. I want to execute the same test against all the account numbers in the list.
What did you expect to happen?
Single test should execute againist all the account numbers in the list
Example:
Dynamic test data: [123,154,187]
Test Case
Given account number is available
When I perform some action on account number
Then I verify account number
Serenity BDD version
3.7.1
JDK version
17
Execution environment
Windows 10
How to reproduce the bug.
Create cucumber Hooks class and add the method to generate the data as list
Add another @after tag to increment the counter to read the next set of data after each execution
Write any test to use data from the list
Actual Result: test gets executed for the first item in the list
Expected: Test should execute against each data
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up
The text was updated successfully, but these errors were encountered:
Cucumber isn't designed to work this way. If you would like some advise on how to achieve this sort of thing using standard practices, we could do that as part of a commercial support contract.
What happened?
we are getting test data as a list (list of account numbers) from an external source and would like to execute the same test with all the account numbers in the list in my cucumber test.I have method to get test data as list in @before in Hooks and I am able to execute the test with first account number only. I want to execute the same test against all the account numbers in the list.
What did you expect to happen?
Single test should execute againist all the account numbers in the list
Example:
Dynamic test data: [123,154,187]
Test Case
Given account number is available
When I perform some action on account number
Then I verify account number
Serenity BDD version
3.7.1
JDK version
17
Execution environment
Windows 10
How to reproduce the bug.
Actual Result: test gets executed for the first item in the list
Expected: Test should execute against each data
How can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up
The text was updated successfully, but these errors were encountered: