Support for directly running Maestro Tests on the device at Lambdatest using Hyperexecute and RealDevice
-
Install hyperexecute cli from
Helpoption on hyperexecute dashboard by going to Help -> Hyperexecute CLI -
Move hyperexecute cli binary in the root directory of the repository.
-
To make cli executable run this:
chmod u+x ./hyperexecute -
From LT hyperexecute dashborad get your
USERNAMEandACCESS_KEY -
You can either upload the app through the dashboard mentioned below in Android and iOS or use this curl to upload app and for getting the app_id for passing it in the script - curl -u ":" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "appFile=@"<local_app_path>"" -F "name="sampleApp""
-
To start the test
./hyperexecute --user <USERNAME> --key <ACCESS_KEY> --config yaml/maestro.yaml -
For iOS real devices, install the following JAR file and include it in your payload. https://prod-mobile-artefacts.lambdatest.com/assets/maestro-cli/1.41.0-beta-1/maestro.jar
-
You can use the
android-realdevice.yamlto run test on android real device present in the yaml/android folder. -
setup-script.shandrunTest.shpresent in the maestro-test folder are required to run test cases on android real device. -
You can also replace the
<app_id>with your app id which you can get by upload the app to real device dashboard. You can use thesample.apkfor testing present in the maestro-test folder.
-
You can use the
android-emulator.yamlto run test on android real device present in the yaml/android folder. -
setup-script.shandrunTest_android_emulator.shpresent in the maestro-test folder are required to run test cases on android emulators. -
You can also replace the
<app_id>with your app id which you can get by upload the app to real time dashboard. You can use thesample.apkfor testing present in the maestro-test folder.
-
You can use the
ios-realdevice.yamlto run test on android real device present in the yaml/ios folder. -
runTest_ios_realdevice.shpresent in the maestro-test folder is only required to run test cases in iOS real device -
You can also replace the
<app_id>with your app id which you can get by upload the app to real device dashboard. You can use theProverbial_ios.ipafor testing present in the maestro-test folder.
-
You can use the
ios-simulator.yamlto run test on android real device present in the yaml/ios folder. -
setup-script-iOS.shandrunTest_ios.shpresent in the maestro-test folder are required to run test cases of -
You can also replace the
<app_id>with your app id which you can get by upload the app to real time dashboard. You can use theProverbial_ios.zipfor testing present in the maestro-test folder.
- Incase of iOS simulators we need .zip of the app and in case of real device we upload the .ipa.