patrol icon indicating copy to clipboard operation
patrol copied to clipboard

All android tests using native interraction are failing on browserstack

Open AurelienKun opened this issue 10 months ago • 72 comments

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! -->

AurelienKun avatar Jan 28 '25 17:01 AurelienKun

@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 avatar Jan 31 '25 12:01 Kendru98

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 13:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 14:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 15:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 16:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 17:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 18:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 19:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 20:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 21:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 22:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 07 '25 23:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 00:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 01:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 02:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 03:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 04:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 05:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 06:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 07:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 08:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 09:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 10:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 11:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 12:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 13:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 14:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 15:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 16:02 github-actions[bot]

Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a [minimal, reproducible sample]. Make sure to diligently fill out the issue template. Thanks for your contribution. [minimal, reproducible sample]: https://stackoverflow.com/help/minimal-reproducible-example

github-actions[bot] avatar Feb 08 '25 17:02 github-actions[bot]