selenium grid를 사용하여 appium으로 두 개 단말기 컨트롤 해본다.

사용환경:

  1. 리얼 단말기, 제니모션 에뮬레이터
  2. MAC OS X 10.10.4
  3. Eclipse, java, appium, testNG

SetUp

Selenium Grid를 사용하기 위해 우선 hub, node를 설정해줘야 한다.

  1. 먼저 hub 설정: 터미털에서 java -jar "selenium server 경로" -role hub을 입력하고 Enter 하면 hub가 설정된다. 브라우저 창에서 localhost:4444를 화면이 나오면 성공
  2. node 설정:
  3. script 작성

http://3.bp.blogspot.com/-ZDCZlGR9lDg/VapiqyCVfXI/AAAAAAAANT8/np3RU2osUX4/s1600/hub%25E1%2584%2590%25E1%2585%25A5%25E1%2584%2586%25E1%2585%25B5%25E1%2584%2582%25E1%2585%25A5%25E1%2586%25AF.png

http://2.bp.blogspot.com/-qtWO2J27Z2Q/VaplgPcGMsI/AAAAAAAANUE/3CLvgew0XTo/s640/hub%25E1%2584%2587%25E1%2585%25B3%25E1%2584%2585%25E1%2585%25A1%25E1%2584%258B%25E1%2585%25AE%25E1%2584%258C%25E1%2585%25A5.png

http://3.bp.blogspot.com/-FNgbxVHzNlY/Vapn1nOZFKI/AAAAAAAANUQ/FdkUP-ezE9A/s1600/configuration.png

http://3.bp.blogspot.com/-nndDSZcGx5w/VaxQhFsf2AI/AAAAAAAANVw/v1t7lmOlJYE/s1600/nodeServer.png

http://3.bp.blogspot.com/-xNtpSP0OfV0/VaprF8IOsXI/AAAAAAAANUk/Ix53Yz05lnE/s640/nodeServer%25E1%2584%2587%25E1%2585%25B3%25E1%2584%2585%25E1%2585%25A1%25E1%2584%258B%25E1%2585%25AE%25E1%2584%258C%25E1%2585%25A5.png

http://4.bp.blogspot.com/-8h-5L3_2Vbs/VaxQnOTK-AI/AAAAAAAANV4/53Uy0hEMq8A/s1600/testNG.png

http://2.bp.blogspot.com/-LQ5PX4MW1BQ/VapukWHmW1I/AAAAAAAANU8/e_HHGjYyipU/s640/javaCapa.png