I have a question that is closely related to the following topic: Behave: Writing a Scenario Outline with dynamic examples. The main difference is that I am not using Python for my Gherkin scenarios. Instead, I manage them with Cypress (utilizing the cypress-cucumber-preprocessor library : https://github.com/TheBrainFamily/cypress-cucumber-preprocessor).
Suppose I have this scenario outline defined in my Jira:
Given I provide <a list of numbers> and <another list of numbers>
Then I check whether they are equals
Examples:
| list of numbers | another list of numbers |
| 1 | 1 |
| 100 | 200 |
I need to assign the numbers dynamically as I will be receiving them from a REST call. Is there a way to achieve this?
In the case of Python with behave, it appears possible to accomplish this with a before_feature() step.
The scenario could look like this:
Given I provide <a list of numbers> and <another list of numbers>
Then I check whether they are equals
Examples:
| list of numbers | another list of numbers |
| . | . |
However, I am unsure how to iterate through the examples to set them dynamically. Is this feasible?