July 2019
Intermediate to advanced
536 pages
12h 57m
English
Users can also set or override suite or global default settings using JVM args. This again is done in Java using the -D switch. So, in other words, if you are running a test suite that has parameters set up in the XML file for browser, mobile device, platform, environment, and many more and you want to change them on the fly to run against another platform, you can set a JVM argument using -Dbrowser=browser, -Dplatform=platform, and so on.
These can be set in an IntelliJ IDE—run configuration or in a Jenkins project setting. To summarize, a suite XML may have the following settings:
<parameter name="browser" value="chrome" /><parameter name="platform" value="Windows 10" /><parameter name="environment" value="local" /> ...
Read now
Unlock full access