테스트를 실행하기 위해 테스트를 Selenium 2로 변환 할 필요가 없습니다. Selenium 2에는 Selenium 1과 Selenium이 webdriver와 병합 된 모든 코드가 들어 있습니다. 기존 스크립트는 최신 버전의 셀렌으로 잘 실행되어야합니다. 질문에서
난 당신이 셀레늄 IDE에서 스크립트를 기록 그래서 다음에서 살펴 경우, 셀레늄 서버를 사용하여 실행할 것을 가정하고 위 : 위에서 가져
Run Selenese Directly Within the Server Using -htmlSuite
You can run Selenese html files directly within the Selenium Server by passing the html file to the server’s command line. For instance:
java -jar selenium-server.jar -htmlSuite "*firefox" "http://www.google.com" "c:\absolute\path\to\my\HTMLSuite.html" "c:\absolute\path\to\my\results.html"
This will automatically launch your HTML suite, run all the tests and save a nice HTML report with the results.
Note
When using this option, the server will start the tests and wait for a specified number of seconds for the test to complete; if the test doesn’t complete within that amount of time, the command will exit with a non-zero exit code and no results file will be generated.
This command line is very long so be careful when you type it. Note this requires you to pass in an HTML Selenese suite, not a single test. Also be aware the -htmlSuite option is incompatible with -interactive You cannot run both at the same time.
을 http://seleniumhq.org/docs/05_selenium_rc.html
다른 사람들은 Jenkins CI (공식적으로 허드슨)와 같은 CI 서버를 조사 할 것을 제안했지만, 일정 시간에 스크립트 실행을 자동화하기 위해 cron 작업 또는 예약 된 작업을 설정할 수도 있다고 말한 사람들도 있습니다. 코드 커밋을 기반으로 테스트를 실행하기 위해 설정된 시간 또는 트리거됩니다.
셀렌 1 스크립트 (I.E Selenium 1)를로드하고 실행 하시겠습니까? 아니면 셀렌 1 코드를 셀렌 2 코드로 변환 할 수있는 무언가입니까? 후자의 경우 언어는 무엇입니까? – Ardesco
글쎄, 당분간 셀렌 2로 이주하지 않고 내 일을 할 수 있다면 스크립트를 수정하지 않을 것이다. – silas