maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Add installApp command

Open boranfrkn opened this issue 1 year ago • 12 comments

Proposed changes

Added “installApp” command.

Testing

  • Put an apk file in the desired directory.
  • Add the command - installApp: “yourPath” to your test.

Issues fixed

Resolve #1665

boranfrkn avatar Jul 30 '24 17:07 boranfrkn

We want this feature to also work on Maestro Cloud - so we must enforce the app binary to be inside Maestro workspace folder.

bartekpacia avatar Aug 05 '24 13:08 bartekpacia

We want this feature to also work on Maestro Cloud - so we must enforce the app binary to be inside Maestro workspace folder.

If I understand correctly, we already make it enforced. @bartekpacia

if (appFile != null && !appFile.exists()) throw CliError("App file does not exist: ${appFile.absolutePathString()}")

boranfrkn avatar Aug 08 '24 04:08 boranfrkn

The pipeline got an error, there seems to be no authentication key, but idk why

boranfrkn avatar Aug 08 '24 04:08 boranfrkn

Don't worry about the pipeline, it's expected. It only fails for external contributors, and it's okay, because we don't want to expose our backend secret key to external people.

bartekpacia avatar Aug 08 '24 10:08 bartekpacia

I see, shall we merge it as it is?

boranfrkn avatar Aug 08 '24 10:08 boranfrkn

Let's also add docs for this new command in mobile-dev-inc/maestro-docs

bartekpacia avatar Aug 08 '24 11:08 bartekpacia

re: this

It's only checking if the app file exists, right? But it has to be inside Maestro workspace folder (together with all your flows, etc), so that when it's uploaded to Maestro Cloud (MC), it can work there as well.

If the app file is outside the Maestro workspace folder, it won't get uploaded and the flow will fail on MC.

bartekpacia avatar Aug 08 '24 11:08 bartekpacia

All done 🥳 @bartekpacia https://github.com/mobile-dev-inc/maestro-docs/pull/68

boranfrkn avatar Aug 10 '24 06:08 boranfrkn

Het @boranfrkn, we like this feature and will merge the PR soon, but first we need to make some changes to our backend platform.

Tentative plan is to release this in Maestro v1.39. Thanks for understanding and sorry about the delay!

bartekpacia avatar Aug 20 '24 16:08 bartekpacia

The test failure is a flake.

It already occured previously here.

Screenshot

screenshot-❌-1725268971709-(Fill out form)

Rerunning.

EDIT This flake is now tracked as https://github.com/mobile-dev-inc/maestro/issues/2005

bartekpacia avatar Sep 02 '24 10:09 bartekpacia

I see, thanks a lot Bartek. its passed 👍

boranfrkn avatar Sep 02 '24 10:09 boranfrkn

FYI @bartekpacia https://github.com/boranfrkn/maestro/pull/1

tokou avatar Sep 07 '24 12:09 tokou

Hey @Fishbowler any update here?

boranfrkn avatar Feb 12 '25 09:02 boranfrkn

You only merged the change a few minutes ago, give us a chance! 😂

Fishbowler avatar Feb 12 '25 09:02 Fishbowler