Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Selenium RC Run Single Test Case As Test Suite With Command

Sometimes, users want to run a single test case directly within the server using -htmlSuite parameter.  This can be achieved by saving a single test case as a Test Suite.  For example, we have a login test case called "SeleniumMasterLoginTest.html".

Step 1: we save the above test case as a test suite. We name the test suite as "SeleniumMasterLoginTestSuite.html".

 

Step 2: verify that SeleniumMasterLoginTestSuite.html file contain the test case "SeleniumMasterLoginTest" as highlighted below.


Step 3: run the command below and check the result file "LoginTestSuiteTestResult. The result indicated that test passed.

C:\selenium-java-2.39.0>java -jar selenium-server-standalone-2.39.0.jar -htmlSuite "*firefox" "http://www.seleniummaster.com" "c:\SeleniumTestCase\SeleniumMasterLoginTestSuite.html" "C:\SeleniumTestCase\LoginTestSuiteTestResult.html"

LoginTestSuiteTestResult.html content