When switching from local to remote testing on the fly, users need an easy way to change the test to the required platforms. As we mentioned when building the setDriver method, it takes parameters for browser (or mobile device), platform, and environment.
In order to change these parameters, users can either set them in a TestNG suite XML file or a JVM argument using the -D switch. We covered that previously, but let's go over the rules of precedence again.