Code Monkey home page Code Monkey logo

Comments (7)

Colorofbest avatar Colorofbest commented on July 28, 2024 1

Hello,
I'm on Windows and I can use maestro.

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
  • 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

[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.

dmitry-zaitsev avatar dmitry-zaitsev commented on July 28, 2024 1

Thank you @Colorofbest! I have included a part of your guide into our docs 👍

from maestro.

johnmc-tc avatar johnmc-tc commented on July 28, 2024 1

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.

dmitry-zaitsev avatar dmitry-zaitsev commented on July 28, 2024

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.

lsaudon avatar lsaudon commented on July 28, 2024

@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.

Colorofbest avatar Colorofbest commented on July 28, 2024

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.

vynguyenbao28 avatar vynguyenbao28 commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.