ALM/Test Automation

Selenium Test Suite 수행

Terry Cho 2013. 12. 29. 01:50

Selenium IDE로 만든 Test Case는 Test Suite로 저장해서, command line 상에서 테스트를 수행할 수 있다.


먼저 작성했던, Test cae를 IDE에서 Test Suite로 저장한다.

다음 Command line에서 selenium server를 수행하여, Suite를 실행한다.

java -jar selenium-server-standalone-2.39.0.jar -multiwindow -htmlSuite "{브라우져종류}" "{테스트하고자하는URL}" "{테스트SUITE HTML 파일 경로-절대경로}" "{테스트 결과가 저장될 HTML 파일명"} 으로 수행하면 된다

이때 브라우져 종류는 *chrome으로하면 firefox가, *explorer로 하면, IE를 수행해서 테스트를 수행한다.


예) C:\dev\tools\selenium>java -jar selenium-server-standalone-2.39.0.jar -multiwindow -htmlSuite "*chrome" "http://www.naver.com" "c:\dev\tools\selenium\naver_selenium_sample_suite" "C:\dev\tools\selenium\result.html"


아래는 테스트 결과 생성된 리포트 이다.




그리드형

'ALM > Test Automation' 카테고리의 다른 글

TestLink를 이용한 Test Case 관리 자동화  (3) 2013.12.31
Selenium WebDriver와 RC 차이  (0) 2013.12.24
Selenium 테스트 메모  (0) 2013.12.24
테스트 팀의 조직 구조  (1) 2012.08.21
JUnit Max  (1) 2009.05.06