I have test data in JSON , how can I iterate over this test data for the test to run for each set? testData.json
[
{
"Username ": "abc",
"Password": “xyz",
"role": "customer"
},
{
"Username ": "def",
"Password”: "abc123”,
"role": "manager"
}
]
feature file: test.feature
Feature: verifying marks
Scenario Outline: Validate marks for each student
Given user open student page------first page
when user login with <username > and <password >----second page
Then verify <username> and <role> ----third page
How can I iterate using json data for username and password.I am using cucumber page objects model.
Appreciate any insights. Thanks