mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.37k stars 248 forks source link

[Maestro version, e.g. v1.28.0] Unable to launch app : UNKNOWN ; Mac M1 Pro OS 13.2 , Android 31 Emulator #1106

Open ramamohanp opened 1 year ago

ramamohanp commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

I wanted to start with basic step

appId: com.sonyliv
---
- launchApp

It says Unable to launch app com.sonyliv: UNKNOWN

Added all details here in this git image image

Note: I am able to run the basic android-flow.yml provided on samples Wikipedia app is launching as expected and other tests running successfully.

To Reproduce Steps to reproduce the behavior, e.g.:

  1. Start the simulator
  2. Run maestro test ...
  3. The Flow fails at ...

    Unable to launch app : UNKNOWN

Expected behavior A clear and concise description of what you expected to happen. App should launch

Screenshots If applicable, add screenshots to help explain your problem.

image

Environment information (please complete the following information):

Workspace (if applicable) Please share your workspace with Flow files and application binary if you are able to do so as that greatly helps in reproduction efforts.

It is big file > 25MB

Bugreport output (if applicable) The zip files created when maestro bugreport can be uploaded here as well if applicable.

2023-05-25_195312.zip

Additional context Add any other context about the problem here.

I am able to run the basic android-flow.yml provided on samples Wikipedia app is launching as expected and other tests running successfully.

felipevolpone commented 1 year ago

@ramamohanp thank you for reporting in a such detailed way. Some questions: Have you installed the app in the simulator before running maestro test? If so, can you double-check that app is there with this adb command? adb shell pm list packages | grep sony

TaimoorWaseemKhan93 commented 1 year ago

Hi @ramamohanp, Hope you are doing well. I think the issue is with the sonyLiv apk you are using because the apk 6.12.31 version is not working even if you try to install them manually and open it. Try to install the sonyLiv apk of 6.15.42 version and it will work. Attaching screenshot. Screenshot from 2023-06-09 15-07-53

Working apk link: https://sony-liv.en.uptodown.com/android/download

Not working apk link: https://m.apkpure.com/sony-liv-sports-entertainment/com.sonyliv/download

tusharninenow commented 4 days ago

Hello Does Mastero support android TV apps / Apple TV apps yet ?