Skip to content

Add installApp command#1854

Open
boranfrkn wants to merge 24 commits intomobile-dev-inc:mainfrom
boranfrkn:InstallAndroidApp
Open

Add installApp command#1854
boranfrkn wants to merge 24 commits intomobile-dev-inc:mainfrom
boranfrkn:InstallAndroidApp

Conversation

@boranfrkn
Copy link
Copy Markdown
Contributor

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

Comment thread maestro-client/src/main/java/maestro/drivers/IOSDriver.kt Outdated
@bartekpacia
Copy link
Copy Markdown
Contributor

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

@boranfrkn
Copy link
Copy Markdown
Contributor Author

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
Copy link
Copy Markdown
Contributor Author

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

@bartekpacia
Copy link
Copy Markdown
Contributor

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.

@boranfrkn
Copy link
Copy Markdown
Contributor Author

boranfrkn commented Aug 8, 2024

I see, shall we merge it as it is?

@bartekpacia
Copy link
Copy Markdown
Contributor

bartekpacia commented Aug 8, 2024

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

@bartekpacia
Copy link
Copy Markdown
Contributor

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.

@boranfrkn
Copy link
Copy Markdown
Contributor Author

All done 🥳 @bartekpacia
mobile-dev-inc/maestro-docs#68

Copy link
Copy Markdown
Contributor

@bartekpacia bartekpacia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this LGTM, but I'm holding off because there are some concerns internally.

Comment thread maestro-cli/src/main/java/maestro/cli/cloud/CloudInteractor.kt
Comment thread maestro-orchestra-models/src/main/java/maestro/orchestra/Commands.kt Outdated
Comment thread maestro-test/src/test/resources/116_install_app.yaml Outdated
@bartekpacia bartekpacia changed the title Add installApp command (#1665) Add installApp command Aug 20, 2024
@bartekpacia
Copy link
Copy Markdown
Contributor

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!

boranfrkn and others added 4 commits September 2, 2024 11:42
…ndroidApp

# Conflicts:
#	maestro-orchestra/src/main/java/maestro/orchestra/yaml/YamlFluentCommand.kt
#	maestro-test/src/test/kotlin/maestro/test/IntegrationTest.kt
@bartekpacia
Copy link
Copy Markdown
Contributor

bartekpacia commented Sep 2, 2024

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 #2005

@boranfrkn
Copy link
Copy Markdown
Contributor Author

I see, thanks a lot Bartek. its passed 👍

@tokou
Copy link
Copy Markdown
Contributor

tokou commented Sep 7, 2024

FYI @bartekpacia boranfrkn#1

@boranfrkn
Copy link
Copy Markdown
Contributor Author

boranfrkn commented Feb 12, 2025

Hey @Fishbowler any update here?

@Fishbowler
Copy link
Copy Markdown
Contributor

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

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

Successfully merging this pull request may close these issues.

Command to install APK or APP files from a URL

5 participants