I tried passing the command line argument:
galen test tests/login.test.js -DpageUrl="http://yahoo.com"
and when I try to access it in my test suite, I am calling:
var url = ${pageUrl};
I am getting an error: Exception in thread "main" java.lang.RuntimeException: org.mozilla.javascript.EvaluatorException: missing ; before statement
The -D option can only be used with .test file? My file is login.test.js.
How do we collect the command line argument in a variable in js file?
var domain = System.getProperty("domain");console.log(domain);