2017-05-18 7 views
0

다음과 같이 알 수없는 명령은 스크롤을 제외한 모든 이동 명령이 제거 된) 및 TestNg를 실행하고 로컬 시뮬레이터에서 제대로 실행되는지 관찰합니다. 그러나 AWS Device Farm에서는 동일한 코드가 작동하지 않습니다. AWS 장치 농장에서 실행되는AWS 장치 농장 오류 : 나는 샘플 테스트 스위트를했습니다

swipeTest failed: Unknown command, all the mobile commands except scroll 
have been removed. (WARNING: The server did not provide any stacktrace 
information) Command duration or timeout: 215 milliseconds Build info: 
version: '3.2.0', revision: '8c03df6b79', time: '2017-02-23 10:51:31 +0000' 
System info: host: 'ip-172-31-13-65', ip: '172.31.13.65', os.name: 'Linux', 
os.arch: 'amd64', os.version: '3.13.0-53-generic', java.version: '1.8.0_65' 
Driver info: io.appium.java_client.ios.IOSDriver Capabilities 
[{app=com.sears.relay, networkConnectionEnabled=false, 
databaseEnabled=false, deviceName=546f99bb46f19bd77d35316105eda6af056611ae, 
platform=MAC, platformVersion=10.0.2, webStorageEnabled=false, 
locationContextEnabled=false, browserName=, takesScreenshot=true, 
javascriptEnabled=true, platformName=iOS, 
udid=546f99bb46f19bd77d35316105eda6af056611ae}] Session ID: 5360d97b-4fa9- 
440e-af0a-5b9b55acf87d 

대신 IOSDriver, 나는이 RemoteWebDriver를 초기화 https://aws.amazon.com/blogs/mobile/test-ios-apps-on-aws-device-farm-using-appium-part-1-prerequisities-environment-set-up-and-test-creation/

어떤 도움에 설명 된 절차를 따랐다는 높게 평가된다.

답변

0

저는 AWS Device Farm 팀에서 일합니다. 가장 가능성이 문제를 일으키는 몇 가지 주목할만한 것이있다 : 로그에서

  1. 는 우리가 여전히 대신 RemoteWebDriver의 IOSDriver을 볼 수 있습니다 게시 니펫을.
  2. javascriptEnabled = true 기능도 로그에 표시됩니다.
  3. 실제로 코드에서 Javascript Appium을 실행하려고합니다.
  4. 그룹 수준의 주석이 테스트 단계에서 사용됩니다.

기기 팜 Javascript appium 및 groups annotation은 지원되지 않습니다. 희망이 도움이됩니다.