Selenium IDEとSelenium RCを使う
id:szk-takanoriさんがSelenium Coreを使ったテスト手順について書いているので、Selenium RCを使ったテスト手順を書きます。
テストケースの作成
テストの実行
- TestHello.html, TestAdd.htmlを以下のディレクトリに配置する
- C:\work\selenium-remote-control-0.8.1\server
- TestSuite.htmlを作成し、TestHello.html, TestAdd.htmlをテストケースとして追加する
- C:\work\selenium-remote-control-0.8.1\serverに同じく配置する
- テスト実行用のバッチファイルを作成し、実行する
- C:\work\selenium-remote-control-0.8.1\serverに同じく配置する
java -jar selenium-server.jar -htmlSuite "*iexplore" "http://localhost:8080" "C:\work\selenium-remote-control-0.8.1\server\TestSuite.html" "C:\work\selenium-remote-control-0.8.1\server\results.html" -timeout 30