Test duration is much longer when submit the test by AmazonDeviceFarmClient

0

The test durantion is about 1 minute when I create the test by AWS console, refer to
https://us-west-2.console.aws.amazon.com/devicefarm/home?#/projects/6c1de135-24c6-45d5-aaad-855d2395585b/runs/50367d4a-f297-436c-8b76-ded911849cb6/jobs/00000

But, the same test took more than 10 minutes when I create it by AmazonDeviceFarmClient, refer to
https://us-west-2.console.aws.amazon.com/devicefarm/home#/projects/6c1de135-24c6-45d5-aaad-855d2395585b/runs/78f14d4b-f7e9-454a-9b21-40be1661ce75/jobs/00000
From the log I can see the test passed at 47s but somehow took 10 minutes to finish. Is there anything I did wrong?

Thanks

Harness 00:31.931 2506 Info Finished Setup Test
Harness 00:31.943 2506 Info Finished Setup Suite
Harness 00:31.944 2506 Info Starting Tests Suite
Harness 00:31.945 2506 Info Starting Tests
Harness 00:47.615 2506 Passed Tests passed
Harness 05:51.741 2506 Info Finished Tests
Harness 05:51.742 2506 Info Finished Tests Suite
Harness 05:51.747 2506 Info Starting Teardown Suite
Harness 05:51.748 2506 Info Starting Teardown Test
Harness 11:17.347 2506 Passed Successful test lifecycle of Teardown Test
Harness 11:17.347 2506 Info Finished Teardown Test
Harness 11:17.348 2506 Info Finished Teardown Suite

질문됨 3년 전261회 조회
2개 답변
0
수락된 답변

Hi there,
Thanks for reaching out.

The reason is because your usage of the AmazonDeviceFarmClient is actually passing the following APi parameters:

"customer_artifact_paths": {  
  "android": \[  
    ""  
  ],  
  "ios": \[  
    "Documents"  
  ]  
}  

Resulting in the following failing internal call during your test:
adb -P 5037 pull /. /tmp/.../Android_Files...

Please remove the "android" output path from your input (being done using this API https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/devicefarm/model/CustomerArtifactPaths.html#setAndroidPaths-java.util.Collection- ) to prevent this behavior.

Thanks,
Jon

AWS
답변함 3년 전
0

Hi Jon,

Thank you so much!

Ying

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠