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

Windows without WLS config.yaml issue #2279

Open
1 task done
Vidal-A opened this issue Jan 30, 2025 · 6 comments
Open
1 task done

Windows without WLS config.yaml issue #2279

Vidal-A opened this issue Jan 30, 2025 · 6 comments

Comments

@Vidal-A
Copy link

Vidal-A commented Jan 30, 2025

Is there an existing issue for this?

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

Steps to reproduce

Hello,

Thank you for your help.

  1. Put the config.yaml in the root project.
  2. run "maestro test scenario" from windows (KO)
  3. run "adb -a -P 5037 nodaemon server"
  4. run "maestro test scenario" from the WLS (OK)

Config.yaml

flows:
  - "./scenario/wifi/*"

Actual results

Only when i use the windows version, from powershell.

Error message :

> maestro test scenario
Top-level directories do not contain any Flows: C:\Users\xxx\Documents\Maestro\scenario
To configure Maestro to run Flows in subdirectories, check out the following resources:
  * https://maestro.mobile.dev/cli/test-suites-and-reports#inclusion-patterns
  * https://blog.mobile.dev/maestro-best-practices-structuring-your-test-suite-54ec390c5c82

Expected results

It's work fine when i use the WLS version.
"Waiting for flows to complete..." with the windows version .

About app

No specific app.

About environment

WLS Maestro version : 1.39.9
Windows Maestro versions : 1.39.9
Windows 11.
Ubuntu 24.04.1 LTS

Logs

No response

Maestro version

1.39.9

How did you install Maestro?

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

Anything else?

No response

Copy link

linear bot commented Jan 30, 2025

@Vidal-A Vidal-A closed this as completed Jan 30, 2025
@Vidal-A
Copy link
Author

Vidal-A commented Jan 30, 2025

Error in my ticket, it doesn't work on either Linux or Windows, the issue is probably with my config.yaml. I consistently get "Flow inclusion pattern(s) did not match any Flow files:"

@jerone
Copy link

jerone commented Feb 2, 2025

Error in my ticket, it doesn't work on either Linux or Windows, the issue is probably with my config.yaml. I consistently get "Flow inclusion pattern(s) did not match any Flow files:"

I'm getting the same on Windows.
@Vidal-A Did you find a solution?

@Vidal-A
Copy link
Author

Vidal-A commented Feb 3, 2025

Error in my ticket, it doesn't work on either Linux or Windows, the issue is probably with my config.yaml. I consistently get "Flow inclusion pattern(s) did not match any Flow files:"

I'm getting the same on Windows. @Vidal-A Did you find a solution?

Yes, the issue ultimately comes from the Windows version. I necessarily have to go through WLS, which poses a problem for some teams. I shouldn't have closed the ticket ^^"
It is very important to specify the host on WLS, otherwise no commands will work.
maestro --host <local_ip> test scenario

Windows KO :
Image

Linux OK :
Image

If my config can help, Config.yaml in the scenario folder :

flows:
  - "sms_mms/*"
  - "wifi/*"
  - "browsing/*"

executionOrder:
  continueOnFailure: true
  flowsOrder:
    - init_browsing
    - 10.2.4
    - 10.1.2
    - 10.2.1
    - 10.2.2
    - 6.1.2
    - init_sms_mms
    - 5.1.1
    - 5.1.3
    - 5.1.4
    - 5.1.5
    - 5.1.6




@Vidal-A Vidal-A reopened this Feb 3, 2025
@jerone
Copy link

jerone commented Feb 3, 2025

I'm using Maestro without WSL, because funny enough, they removed the WSL requirement for installing and using Maestro on Windows recently: mobile-dev-inc/maestro-docs@b1ce863

@Vidal-A
Copy link
Author

Vidal-A commented Feb 3, 2025

Yes, me too, i use the 1.39.9, this windows version work fine, excepted for read and execute config.yaml.
With version 1.39.9, we should be able to do without WLS, but in practice, there are still some issues.

Probably a path parsing issue. If I have time, I will try to debug it.

@herval herval added the Maestro label Feb 3, 2025 — with Linear
@herval herval removed the Maestro label Feb 10, 2025
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

3 participants