One of the steps in my feature file requires two parameters like login and password for multiple systems which individually works fine but Is there any way I can pass multiple examples for individual steps? The first step in the feature file is calling POST API and getting a response based on parameters. Scenario Outline: Verify search results Given I set the authorization token in Header with below feature file body payload
| Key | Value |
|InstituteID| <InstitutionID> |
|InstituteID|
|1234456 |
|1345679 |
|4564565 |
and second step is:
And User enters "<Username>", "<Password>"
and click on Login button
|Username|Password |
|test |abc |
|test2 |abc |
Could you please share if there is any way to achieve this? Can I pass multiple examples in one scenario outline like mentioned above? I need a few responses from step 1 to execute step 2 so I can not break into two scenarios. Thank you.