Comments (7)
Hello,
I'm on Windows and I can use maestro.
- Just download the latest release : https://github.com/mobile-dev-inc/maestro/releases
- Unzip it;
- with PowerShell :
- cd to this directory
maestro test you_flow.yaml
Bonus steps to add maestro command alias in PowerShell
The maestro command will be available to each PowerShell session.
Test-Path $Profile
- if False, create profile file :
New-Item -Path $Profile -ItemType file -Force
- if False, create profile file :
- Add in this file the alias so that it is persistent
New-Alias maestro C:/full-path/maestro-1.4.0/bin/maestro.bat
If you have a java version error
- download a recent java version (Java 18 for example) : https://www.oracle.com/java/technologies/javase/jdk18-archive-downloads.html (Windows x64 Compressed Archive - so it's system independent)
- unzip it where you want
- with PowerShell (or in your previous profile file to make it persistent)
[System.Environment]::SetEnvironmentVariable("JAVA_HOME", "D:\mypath\jdk-18.0.2.1")
[System.Environment]::SetEnvironmentVariable("Path", "$($env:JAVA_HOME)\bin;" + [System.Environment]::GetEnvironmentVariable('Path', [System.EnvironmentVariableTarget]::Machine))
Enjoy !
To the Maestro team :
Thank you for this promising tool !
from maestro.
Thank you @Colorofbest! I have included a part of your guide into our docs 👍
from maestro.
The docs on the website do not cover the alias part and as such, do not work.
Without setting the alias up on the machine, you need to do the following command:
.\maestro.bat test ...
I think the docs should be updated to reflect this.
from maestro.
Maestro does, in theory, support Windows as it purely a JVM application. However, we do not have means to test it at this very moment so any input would be much appreciated!
from maestro.
@Colorofbest Hey, I have this error on Windows The input line is too long. The syntax of the command is incorrect.
when I run .\maestro.bat --version
.
Don't you have this error now?
from maestro.
The input line is too long. The syntax of the command is incorrect.
Hello, yes I confirm I have the same error today (The input line is too long. The syntax of the command is incorrect. )
Windows cmd allow only 8191 characters :-/ (https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation)
To fix this, just open the bin/maestro.bat and replace all the CLASSPATH=[a lot of jar]
With
set CLASSPATH=%APP_HOME%\lib\*
To include all jar without specifying one by one.
Looks better.
from maestro.
I got the following error @Colorofbest
D:\CODE\download-video\maestro>maestro test take.yaml
Running on emulator-5554
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.base/java.io.FileInputStream.readBytes(Native Method)
at java.base/java.io.FileInputStream.read(FileInputStream.java:276)
at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270)
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188)
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:176)
at java.base/java.io.BufferedReader.fill(BufferedReader.java:162)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:329)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:396)
at kotlin.io.LinesSequence$iterator$1.hasNext(ReadWrite.kt:79)
at kotlin.io.TextStreamsKt.forEachLine(ReadWrite.kt:154)
at kotlin.io.FilesKt__FileReadWriteKt.forEachLine(FileReadWrite.kt:190)
at kotlin.io.FilesKt__FileReadWriteKt.readLines(FileReadWrite.kt:219)
at kotlin.io.FilesKt__FileReadWriteKt.readLines$default(FileReadWrite.kt:217)
at maestro.cli.db.KeyValueStore.getCurrentDB(KeyValueStore.kt:46)
at maestro.cli.db.KeyValueStore.keys(KeyValueStore.kt:28)
at maestro.cli.session.SessionStore.activeSessions(SessionStore.kt:55)
at maestro.cli.session.SessionStore.hasActiveSessions(SessionStore.kt:68)
at maestro.cli.session.MaestroSessionManager$newSession$session$1.invoke(MaestroSessionManager.kt:84)
at maestro.cli.session.MaestroSessionManager$newSession$session$1.invoke(MaestroSessionManager.kt:81)
at maestro.cli.db.KeyValueStore.withExclusiveLock(KeyValueStore.kt:37)
at maestro.cli.session.SessionStore.withExclusiveLock(SessionStore.kt:74)
at maestro.cli.session.MaestroSessionManager.newSession(MaestroSessionManager.kt:81)
at maestro.cli.session.MaestroSessionManager.newSession$default(MaestroSessionManager.kt:58)
at maestro.cli.command.TestCommand.call(TestCommand.kt:136)
at maestro.cli.command.TestCommand.call(TestCommand.kt:46)
at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
at picocli.CommandLine.access$1200(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22)
at picocli.CommandLine.execute(CommandLine.java:2058)
at maestro.cli.AppKt.main(App.kt:117)
from maestro.
Related Issues (20)
- [1.36][studio] Copy button not considering special space character `NBSP`
- [v1.36.0] [Flutter] Scroll options are not working
- Scroll não funciona quando é em um lugar específico HOT 1
- [1.36.0] Can we have better coloring and tags against the logs in place of all INFO no matter if it's an INFO, DEBUG or ERROR
- [Feature Request] Can we have print statement in flow yaml HOT 3
- [Feature Request] Add support for Compose Multiplatform on IOS
- [Feature Request] Bi-directional vertical scroll
- [Feature Request] Build and Publish Maestro CLI executable for Chocolatey on Windows x64 HOT 1
- Failed to parse file with .yaml during the maestro cloud HOT 3
- No running emulator found. Start an emulator manually and try again HOT 1
- [v1.36.0, v1.35.0] Unable to open maestro studio HOT 1
- [v.1.36.0] $ within inline-javascript cannot be used
- Label doesn't work with Swipe
- [v.1.36.0] () characters treated as regex even within string
- [Maestro version, e.g. v2.1.0] HOT 1
- Failing to parse env values for setLocation command
- [Feature Request] Configuration for retryTapIfNoChange as the default
- [Maestro version, v1.36.0]web driver
- assertVisible is returning true even if the element is not visible inside a scroll view. UiElement bounds are not correctly captured in ViewHierarchy for iOS HOT 2
- [Maestro version, e.g. v1.2.3]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maestro.