By using AWS re:Post, you agree to the Terms of Use

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

asked 2 years ago23 views
2 Answers
0
Accepted Answer

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

answered a year ago
0

Hi Jon,

Thank you so much!

Ying

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions