This repo provides a fully working setup to capture mobile app screenshots using Maestro and run visual regression testing via SmartUI on LambdaTest HyperExecute.
- LambdaTest account with SmartUI and HyperExecute access
- LambdaTest username, access key, and SmartUI project token
- Your mobile app file (.apk or .ipa)
git clone https://github.com/lambdatest/smartui-maestro-sample.git
cd smartui-maestro-sample
curl -O https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute
chmod +x hyperexecute
npm install -g @lambdatest/smartui-cli
export LT_USERNAME="your_username"
export LT_ACCESS_KEY="your_access_key"
curl -u "$LT_USERNAME:$LT_ACCESS_KEY"
-X POST "https://manual-api.lambdatest.com/app/upload/realDevice"
-F "appFile=@./sample.apk"
-F "name=SampleApp"
https://applive.lambdatest.com/app
https://app.lambdatest.com/console/realtime/app
Copy the returned appId for use in Real Device YAML config.
Update the following in the relevant YAML files (yaml/maestro_*.yaml):
env:
MAESTRO: true
PROJECT_TOKEN: <your-project-token>
framework:
args:
appId: lt://<appId>
For Virtual Device implementation:
./hyperexecute --config yaml/maestro_Emulator_HyperEx.yaml
For Real Device execution:
./hyperexecute --config yaml/maestro_Real_Devices.yaml
SmartUI Build Dashboard: https://smartui.lambdatest.com/
HyperExecute Job Dashboard: https://hyperexecute.lambdatest.com/