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