2014-06-16 3 views
4

Appium을 Selenium Grid에 연결하는 데 어려움이 있습니다. 내가 발사에 클릭 Appium 응용 프로그램을 사용Appium을 Selenium Grid에 연결하는 데 문제가 있습니다.

{ 
    "capabilities": 
     [ 
     { 
      "browserName":“iPhone5”, 
      "version”:”6.1, 
      "maxInstances": 1, 
      "platform”:”MAC” 
     } 
     ], 
    "configuration": 
    { 
    "cleanUpCycle":2000, 
    "timeout":30000, 
    "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", 
    "url":`"http://127.0.0.1:4725/wd/hub",` 
    "host": 127.0.0.1, 
    "port": 4723, 
    "maxSession": 1, 
    "register": true, 
    "hub": `“http://192.168.28.74:4444/grid/register”` 
    } 
} 

:

여기 내 nodeconfig 파일을 가지고거야. 오류는 발생하지 않지만 그리드 콘솔 페이지에는 표시되지 않습니다.

Mac에서 Appium을 그리드에 연결 한 경험이있는 사람이 있다면 나와 함께 걸을 수 있습니까?

답변

3

Mac OS X (Selenium Grid)에서 iOS 용 Appium을 실행 중입니다. 나는 Selenium Server을 허브로 실행하고 또한 Selenium Plugin을 통해 젠킨스에서 실행하는 것으로 양쪽 모두를 사용해 보았습니다. 또한 노드로 node.js 버전과 Appium.app 버전을 실행하고 아무런 문제가 없습니다.

얼마나 정확하게 실행하려고하는지 자세히 알려주면 좋을 것입니다.

또한, 나는했습니다 당신 nodeconfig 파일이 어떻게 든 이상한 찾고 것을 볼 : 당신은 그냥 유효한 JSON 파일을하지 않은 것처럼

"browserName":“iPhone5”, <- here you have different types of double quotes " and “ 
"version”:”6.1 <- here the same and also one is missing. 

그래서 찾고. 이 도움이

{ 
    "capabilities": 
     [ 
     { 
      "browserName": "iPhone5", 
      "version":"7.1", 
      "maxInstances": 1, 
      "platform":"MAC" 
     } 
     ], 
    "configuration": 
    { 
    "cleanUpCycle":2000, 
    "timeout":30000, 
    "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", 
    "url":"http://127.0.0.1:4723/wd/hub", 
    "host": "127.0.0.1", 
    "port": 4723, 
    "maxSession": 1, 
    "register": true, 
    "registerCycle": 5000, 
    "hubPort": 4444, 
    "hubHost": "192.168.33.101" 
    } 
} 

희망 : 여기

나를 위해 노력하고 있습니다 내 구성 파일의 예입니다.

+0

감사합니다. 괄호에 문제가있었습니다. Appium은 매우 까다 롭습니다. – Ben

+0

그리드에 연결할 수는 있지만 테스트를 실행할 수 없습니다. 당신은 당신의 드라이버 구성에 무엇을 사용합니까? 여기 내 것이 있습니다 : 'case'iPhone ": DesiredCapabilities iOS = DesiredCapabilities.iphone(); iOS.setPlatform (Platform.ANY); driver = new RemoteWebDriver (새 URL ("http://127.0.0.1:4723/wd/hub"), iOS); 휴식; ' – Ben

관련 문제