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

159
Views
How to read one property out of many pass from command line in webdriverIO

In my automation (webdriverIO) framework we read app name from wdio.conf file through the object property as below.

var testSettings = global.testSettings = {
    APP_URL: argv.app1url || 'http://localhost:8660' || argv.app2url,
};

I am passing argv.app2url value as http://localhost:8860 from the command line and my question is in the test script how can I read argv.app2url value passed from the command line.

I am doing it this way testSettings.APP_URL in the test script but it reads APP_URL as http://localhost:8660 instead of value for argv.app2url which is http://localhost:8860

Can someone please help me how to read argv.app2url value in the test script out of three given property values for APP_URL

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!