leancodepl / patrol

Flutter-first UI testing framework. Ready for action!
https://patrol.leancode.co
Apache License 2.0
904 stars 139 forks source link

Android-BrowserStack test execution failures due to "PatrolAppServiceClientException: Invalid response 503" #2317

Open BanuToros opened 3 months ago

BanuToros commented 3 months ago

Steps to reproduce

1- Execute Patrol tests on emulators locally (Successfull) 2- Execute bs_android scripts to run Patrol tests on BrowserStack App Automate 3- Expect to see that Patrol "Test starting" screen is displayed, the app is launched and all the 21 tests are ran successfully

Actual results

1- Patrol "Test starting" is not displayed 2- The app is not launching (only an orange screen is displayed which belongs to the app) 3- Initialisation error is returned.

https://github.com/user-attachments/assets/6d955201-d113-4b22-b943-c8a3abf7d9ec

Logs

Logs ``` Page not found

⚠️ Unable to display the page

We're facing issues in displaying the webpage requested. In order to resolve this issue, please ensure the following:


  1. Verify the URL entered is accurate.
  2. Ensure the URL entered is accessible outside BrowserStack.
  3. Download the Local Desktop App* from "Local Testing".
  4. For advanced configuration*, start the Local Desktop App and navigate to localhost:45454.
* If you use BrowserStack binary, refer to this guide.
at pl.leancode.patrol.PatrolJUnitRunner.listDartTests(PatrolJUnitRunner.java:126) at com.easyjet.travel.android.MainActivityTest.testCases(MainActivityTest.java:19) ... 21 trimmed Caused by: pl.leancode.patrol.contracts.PatrolAppServiceClientException: Invalid response 503, Page not found

⚠️ Unable to display the page

We're facing issues in displaying the webpage requested. In order to resolve this issue, please ensure the following:


  1. Verify the URL entered is accurate.
  2. Ensure the URL entered is accessible outside BrowserStack.
  3. Download the Local Desktop App* from "Local Testing".
  4. For advanced configuration*, start the Local Desktop App and navigate to localhost:45454.
* If you use BrowserStack binary, refer to this guide.
at pl.leancode.patrol.contracts.PatrolAppServiceClient.performRequest(PatrolAppServiceClient.kt:47) at pl.leancode.patrol.contracts.PatrolAppServiceClient.performRequest$default(PatrolAppServiceClient.kt:27) at pl.leancode.patrol.contracts.PatrolAppServiceClient.listDartTests(PatrolAppServiceClient.kt:18) at pl.leancode.patrol.PatrolAppServiceClient.listDartTests(PatrolAppServiceClient.kt:46) at pl.leancode.patrol.PatrolJUnitRunner.listDartTests(PatrolJUnitRunner.java:114) ... 23 more INSTRUMENTATION_STATUS: stream= Error in initializationError(com.easyjet.travel.android.MainActivityTest): java.lang.RuntimeException: pl.leancode.patrol.contracts.PatrolAppServiceClientException: Invalid response 503, Page not found

⚠️ Unable to display the page

We're facing issues in displaying the webpage requested. In order to resolve this issue, please ensure the following:


  1. Verify the URL entered is accurate.
  2. Ensure the URL entered is accessible outside BrowserStack.
  3. Download the Local Desktop App* from "Local Testing".
  4. For advanced configuration*, start the Local Desktop App and navigate to localhost:45454.
* If you use BrowserStack binary, refer to this guide.
at pl.leancode.patrol.PatrolJUnitRunner.listDartTests(PatrolJUnitRunner.java:126) at com.easyjet.travel.android.MainActivityTest.testCases(MainActivityTest.java:19) ... 21 trimmed Caused by: pl.leancode.patrol.contracts.PatrolAppServiceClientException: Invalid response 503, Page not found

⚠️ Unable to display the page

We're facing issues in displaying the webpage requested. In order to resolve this issue, please ensure the following:


  1. Verify the URL entered is accurate.
  2. Ensure the URL entered is accessible outside BrowserStack.
  3. Download the Local Desktop App* from "Local Testing".
  4. For advanced configuration*, start the Local Desktop App and navigate to localhost:45454.
* If you use BrowserStack binary, refer to this guide.
at pl.leancode.patrol.contracts.PatrolAppServiceClient.performRequest(PatrolAppServiceClient.kt:47) at pl.leancode.patrol.contracts.PatrolAppServiceClient.performRequest$default(PatrolAppServiceClient.kt:27) at pl.leancode.patrol.contracts.PatrolAppServiceClient.listDartTests(PatrolAppServiceClient.kt:18) at pl.leancode.patrol.PatrolAppServiceClient.listDartTests(PatrolAppServiceClient.kt:46) at pl.leancode.patrol.PatrolJUnitRunner.listDartTests(PatrolJUnitRunner.java:114) ... 23 more INSTRUMENTATION_STATUS: test=initializationError INSTRUMENTATION_STATUS_CODE: -2 INSTRUMENTATION_RESULT: stream= Time: 0.063 There was 1 failure: 1) initializationError(com.easyjet.travel.android.MainActivityTest) java.lang.RuntimeException: pl.leancode.patrol.contracts.PatrolAppServiceClientException: Invalid response 503, Page not found

⚠️ Unable to display the page

We're facing issues in displaying the webpage requested. In order to resolve this issue, please ensure the following:


  1. Verify the URL entered is accurate.
  2. Ensure the URL entered is accessible outside BrowserStack.
  3. Download the Local Desktop App* from "Local Testing".
  4. For advanced configuration*, start the Local Desktop App and navigate to localhost:45454.
* If you use BrowserStack binary, refer to this guide.
at pl.leancode.patrol.PatrolJUnitRunner.listDartTests(PatrolJUnitRunner.java:126) at com.easyjet.travel.android.MainActivityTest.testCases(MainActivityTest.java:19) ... 21 trimmed Caused by: pl.leancode.patrol.contracts.PatrolAppServiceClientException: Invalid response 503, Page not found

⚠️ Unable to display the page

We're facing issues in displaying the webpage requested. In order to resolve this issue, please ensure the following:


  1. Verify the URL entered is accurate.
  2. Ensure the URL entered is accessible outside BrowserStack.
  3. Download the Local Desktop App* from "Local Testing".
  4. For advanced configuration*, start the Local Desktop App and navigate to localhost:45454.
* If you use BrowserStack binary, refer to this guide.
at pl.leancode.patrol.contracts.PatrolAppServiceClient.performRequest(PatrolAppServiceClient.kt:47) at pl.leancode.patrol.contracts.PatrolAppServiceClient.performRequest$default(PatrolAppServiceClient.kt:27) at pl.leancode.patrol.contracts.PatrolAppServiceClient.listDartTests(PatrolAppServiceClient.kt:18) at pl.leancode.patrol.PatrolAppServiceClient.listDartTests(PatrolAppServiceClient.kt:46) at pl.leancode.patrol.PatrolJUnitRunner.listDartTests(PatrolJUnitRunner.java:114) ... 23 more FAILURES!!! Tests run: 1, Failures: 1 INSTRUMENTATION_CODE: -1

AndroidLogs.txt

Patrol version

Patrol: ^3.10.0 Patrol CLI: ^3.1.0

Patrol Doctor output

Patrol Doctor output ``` Patrol doctor: Patrol CLI version: 3.1.0 Flutter command: flutter Flutter 3.22.0 • channel stable Android: • Program adb found in /Users/banu.toros/Library/Android/sdk/platform-tools/adb • Env var $ANDROID_HOME set to /Users/banu.toros/Library/Android/sdk iOS / macOS: • Program xcodebuild found in /usr/bin/xcodebuild • Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output ```