Internet Explorer で Selenium RC を使用しています。HTML でいくつかのテスト ケースを作成しました。HTML でテスト ケースを含め、HTML でテスト スイートを作成するにはどうすればよいですか? IE および Windows XP / Windows 7 で Selenium RC を使用して HTML テスト スイートを実行したいのですが、どうすればよいですか?
2 に答える
Selenium IDE バージョン 1.8 では、[テスト ケース] セクションを右クリックし、[テスト ケースの追加] オプションを選択して、すべての HTML テスト ケースを追加します。次に、[ファイル] > [テスト スイートの保存] オプションを選択して、このテスト スイートを HTML 形式で保存します。この後、次の内容の .bat ファイルを 1 つ作成して、この HTML テスト スイートを実行します。
java -jar selenium-server.jar -port 4444 -htmlSuite "*chrome" " http://www.google.com/ " "C:\Selenium\TestSuite.html" "C:\Selenium\TestSuiteResult.html" 一時停止
To create HTML Test Suite:
Open Selenium IDE
Record and create 2 TCs (In my case i) google1.html and ii) google2.html)
File --> Save Test Suite As --> Save the file as "GoogleTestSuite.html")
To execute Test Suite:
Open command line/terminal --> Go to the location where 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 running which contains the test result