PHPUnitManual:17.2

From 흡혈양파의 번역工房
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
17.2 Selenium 설치

먼저, Selenium Server 를 설치합니다.

  1. Selenium Server 에서 배포하는 패키지를 다운로드합니다.
  2. selenium-server-standalone-2.9.0.jar (버젼을 확인하세요) 를 압축 해제하고 복사합니다 (예 : /usr/local/bin).
  3. java -jar /usr/local/bin/selenium-server-standalone-2.9.0.jar 등의 명령어를 사용하여 Selenium RC 서버를 기동합니다.


다음으로, PHPUnit_Selenium 패키지를 인스톨합니다. 이 패키지는 PHPUnit 에서 Selenium Server 에 네이티브하게 접속하기 위해 필요합니다.

localhost# pear install phpunit/PHPUnit_Selenium


위의 과정을 통해, 클라이언트 / 서버 프로토콜을 사용하여 Selenium server 에 명령을 보낼 수 있게 되었습니다.


Notes