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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南