I am currently running my selenium test from the command line using TestNG
java -cp \lib\testng.jar;
\lib\selenium-server-standalone-2.42.2.jar;
\lib\log4j-1.2.17.jar;
\bin\.
org.testng.TestNG runTest.xml
However I would ideally like to use as a command line argument what webdriver to use. Currently in my setUp() it just loads the firefox driver, and changing drivers means commenting and uncommenting out code
So as an end goal I could use.
-chrome -firefox
To run tests on firefox and chrome.
What method do you suggest is best to achieve this?