Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All android tests using native interraction are failing on browserstack #2511

Open
AurelienKun opened this issue Jan 28, 2025 · 1 comment
Open
Assignees
Labels
device farms integration Related to issues with running patrol on device farms waiting for response Waiting for user's response

Comments

@AurelienKun
Copy link

Steps to reproduce

We are using bs_android to upload our tests into Browserstack. We have just included a language parameter to change the device language (FR) and using a Pixel 8 with Android 13 for now.
All the tests are running fine in local, on both emulator and physical devices.
There are 2 of 7 tests dealing with native components :

  1. a didomi popup (a simple tap on a button)
  2. a push notification (a permission grant when in use)

They both fail with the following errors :

  1. PATROL_LOG {"timestamp":"2025-01-28T16:03:33.492239","type":"step","action":"\u001b[38;5;87mtap\u001b[0m \u001b[30m(native)\u001b[0m","status":"failure","exception":"NativeAutomatorClientException: tap() failed with Invalid response: 503 ...
  2. PATROL_LOG {"timestamp":"2025-01-28T16:04:00.586927","type":"error","message":"grantPermissionWhenInUse() failed with Invalid response: 503"}...

Please see the log file to see the whole context.

fail.log

Actual results

We got the two test with native interraction to be failing. All the other run fine.

Logs

Logs
<!-- Replace this line with your logs. Do not remove the backticks! -->

Patrol version

patrol_cli 3.4.1
patrol 3.13.1.

Patrol Doctor output

Patrol Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->

Flutter Doctor output

Flutter Doctor output
<!-- Replace this line with your logs. Do not remove the backticks! -->
@Kendru98
Copy link
Contributor

@AurelienKun Hi, can you copy and paste these 2 methods that fails here, try on EN locale please. If it wont help please please provide a minimal reproducible example so we could investigate this issue. Cheers, Kendru

Methods like this (code sample below) can fail in FR locale because, they use English text selectors.

if (await $.native2
      .isPermissionDialogVisible()) {
    await $.native2.grantPermissionWhenInUse();
  }

@Kendru98 Kendru98 added the waiting for response Waiting for user's response label Jan 31, 2025
@Kendru98 Kendru98 self-assigned this Jan 31, 2025
@Kendru98 Kendru98 added the device farms integration Related to issues with running patrol on device farms label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device farms integration Related to issues with running patrol on device farms waiting for response Waiting for user's response
Projects
None yet
Development

No branches or pull requests

2 participants