Failed to initiate the Appium server

0

Hello,

I'm attempting to launch my application in Swedish, and it functions properly during local execution. To achieve this on my local setup, I use the "appium:locale" and "appium:language" capabilities. However, when I include these capabilities in my spec file on the device farm, I encounter an error message stating, "Appium did not start within 30 seconds. Exiting." I've attempted extending this timeout to 120 seconds without success. The application works fine on the device farm when I remove these additional capabilities. I need assistance in conducting localization tests on the device farm.

已提問 4 個月前檢視次數 171 次
1 個回答
0

Hello, Thank you for posting on AWS re:Post forum. I understand that the Device Farm runs are failing with error "Appium did not start within 30 seconds. Exiting.". Generally speaking, the locale setup for each Device Farm run should not take longer than 30 seconds. Additionally, if the same Appium test (with locale configuration) can run successfully in local environment, it should also work in Device Farm devices. Therefore, please kindly check and confirm if there are any differences between Device Farm test suite and the local test runs (if any). Searching on the error message, it appears the error clause comes from this code snippet [1]. To test and see if such test logic is the one exiting the test runs, could you please remove the IF statement block, starting from "if [[ $appium_initialization_time -gt 30 ]]" ? Alternatively, please try using Schedule Run API to configure locale, instead of configuring from Appium, and see if it would allow the test to pass. Lastly, please consider raising a technical support case from AWS Support Console [3], including the test run ARN and the complete Device Farm test run log output, so that our technical support engineers can further provide in-depth troubleshooting for your particular use case. I hope the above information is helpful. Have a nice day.

Links and References [1] https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html#custom-test-environment-example [2] https://docs.aws.amazon.com/devicefarm/latest/APIReference/API_ScheduleRun.html [3] https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

AWS
支援工程師
Tom_T
已回答 4 個月前
profile picture
專家
已審閱 1 個月前

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

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

回答問題指南