From 9bd82ffe9bdf112cf829892207d976088620527e Mon Sep 17 00:00:00 2001 From: Muhammed Furkan Boran Date: Sat, 10 Aug 2024 09:42:44 +0300 Subject: [PATCH 1/2] document installApp --- api-reference/commands/installApp.md | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 api-reference/commands/installApp.md diff --git a/api-reference/commands/installApp.md b/api-reference/commands/installApp.md new file mode 100644 index 0000000..8757598 --- /dev/null +++ b/api-reference/commands/installApp.md @@ -0,0 +1,35 @@ +# installApp +The `installApp` command installs an application on a device, ensuring that the specific version of the app you want to test is correctly deployed. This command is crucial when you need to verify that a particular build or configuration of an app behaves as expected on the device. + +``` +- installApp: "path/to/app.apk" +``` +For Android, this command performs the equivalent of running the following command in the terminal: +bash +Kodu kopyala +``` +adb install "path/to/app.apk" +``` + +For iOS, it performs the equivalent of running the following command: + +``` +xcrun simctl install booted "path/to/app.ipa" +``` + +# Example of Using installApp +Below is an example of how to use the installApp command within a Maestro flow. In this scenario, the app is first installed, and then a series of actions are performed to verify the app's behavior: + +``` +appId: com.example +--- +- installApp: "path/to/app.apk" +- launchApp +- tapOn: + id: "com.example:id/start_button" +- assertVisible: + id: "com.example:id/home_screen" + text: "Welcome to Example App" + enabled: true +- stopApp +``` \ No newline at end of file From ddf8123b5c08d4d377ab6a39a076c65d1810affa Mon Sep 17 00:00:00 2001 From: Muhammed Furkan Boran Date: Sat, 10 Aug 2024 09:47:13 +0300 Subject: [PATCH 2/2] squash! document installApp --- api-reference/commands/installApp.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api-reference/commands/installApp.md b/api-reference/commands/installApp.md index 8757598..f39c7c7 100644 --- a/api-reference/commands/installApp.md +++ b/api-reference/commands/installApp.md @@ -5,8 +5,7 @@ The `installApp` command installs an application on a device, ensuring that the - installApp: "path/to/app.apk" ``` For Android, this command performs the equivalent of running the following command in the terminal: -bash -Kodu kopyala + ``` adb install "path/to/app.apk" ```