mobile-dev-inc / maestro

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

Error "Want to use 0 devices..." when run command test on Windows #2150

Open phuongnam195 opened 2 days ago

phuongnam195 commented 2 days ago

Is there an existing issue for this?

Steps to reproduce

  1. Install Maestro on Windows following docs
  2. Run emulator Nexus 6 (API 30) -> open other Windows Powershell to run adb -a -P 5037 nodaemon server
  3. On WSL2 terminal run export ADB_SERVER_SOCKET=tcp:<MY_WINDOWS_IPV4_ADDR>:5037 and adb devices and it returns: emulator-5554 device
  4. Run test: maestro --host <MY_WINDOWS_IPV4_ADDR> test login.yaml

Actual results

Nothing happen on the emulator, and WSL2 terminal shows:

Want to use 0 devices, which is not enough to run 1 shards. Missing 1 device(s).
Not enough devices connected (1) to run the requested number of shards (1).

Additional, I don't know if this is related, when I run adb -a -P 5037 nodaemon server, the last line is

11-20 09:34:20.309 14040 20976 I adb.exe : adb.cpp:176 emulator-5554: already offline

Expected results

Test flow is run successfully

About app

About environment

Logs

Logs ``` ```

Maestro version

1.39.1

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

linear[bot] commented 2 days ago

MA-2595 Error "Want to use 0 devices..." when run command test on Windows