How to use HTML TestSuite as well as test cases on Selenium RC using IE

I am using Selenium RC in Internet Explorer. I wrote some test cases in HTML. How can I write Test Suite in HTML, including my test cases in HTML? I want to run an HTML test suite using Selenium RC in IE and Windows XP / Windows 7. How can I do this?

+4
source share
2 answers

In Selenium IDE version 1.8, right-click in the "Test Case" section and add all the HTML test cases by selecting the "Add Test Case" option. Then simply save this test suite in HTML format by choosing File> Save Test Suite. After that, just create one .bat file with the following contents to run this HTML test package.

java -jar selenium-server.jar -port 4444 -htmlSuite "* chrome" " http://www.google.com/ " "C: \ Selenium \ TestSuite.html" C: \ Selenium \ TestSuiteResult.html "pause

Selenium IDE> Add Test Case

+3
source

To create a test HTML package:

  • Open selenium IDE

  • Record and create 2 TC (in my case i) google1.html and ii) google2.html)

  • File → Save As Test Suite → Save File As “GoogleTestSuite.html”)

To run a test package:

  • Open a command prompt / terminal → Go to the place where the selenium server (.jar) is located → Run the following command:

    java -jar selenium-server-standalone-2.0rc2.jar -port 4444 -htmlSuite "* iexplore" " http://www.google.com/ " "C: \ Selenium \ GoogleTestSuite.html" C: \ Selenium \ TestSuiteResult.html "

Note. TestSuiteResult.html will be created after launch, which contains the test result

+1
source

All Articles