RE: Execute my Selenium Webdriver scripts in command line
Hello, I don’t know if this post was already asked but I need to execute my selenium script from command line, I’m very new using java. Actually, I have been following your tutorials to create my scripts.
Selenium Webdriver Java
I need to do this because I’m using XStudio Test Management Tool and the first step to create the launcher to execute the selenium script from the tool is to have the commands to execute the script from command line.
Thank you for your time, this website rocks.
As you are using testing , then you must have testsuite XML to run and if you have then simple solution is to run testsuite via testng command line support. Put your testng jar in class path and then run” java org.testng.TestNG testng1.xml “.
For adding testng to class path you can Google how to put jar in classpath