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

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

Open
1 task done
phuongnam195 opened this issue Nov 20, 2024 · 1 comment
Open
1 task done

Comments

@phuongnam195
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

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

  • Closed source, but I also tried the sample flow and got the same error.

About environment

  • Java version on Windows is 20.0.2, on WSL2 is 21.0.5
  • Windows 11 x86_64

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.1

How did you install Maestro?

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

Anything else?

No response

Copy link

linear bot commented Nov 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant