Code to Run Multiple Selenium Webdriver JUnit Class In a Batch File -


i have multiple selenium test classes. independent of each other.

can please tell me code put in batch file run multiple test class clicking on batch file?

consider java test classes located in local folder: "c:\webdriver effort\inspection\src\test\java\com".

writing batch file not big deal. first try execute testcases command prompt.

if test cases have main class can execute this.

cd c:\webdriver_effort\inspection\src\test\java\com\ javac test1.java  //compile testcase java test1         //running testcase 

make sure selenium.jar in classpath otherwise mention while compiling.

javac -cp "selenium-standaloneserver.jar" test1.java  //compile testcase java -cp "selenium-standaloneserver.jar" test1         //running testcase 

if you've written test cases in junit format follow steps mentioned in link


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -