Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

93
Views
How can I iterate over the test data using webdriverio with cucumber pageObject model?

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!