Usage with Maestro
For instance, if you're using Maestro, you can measure the startup performance of the Twitter app:
- Create a
twitter.yaml
file:
appId: com.twitter.android
---
- launchApp
- assertVisible: Search and Explore
- Measure performance 🚀
flashlight test --bundleId com.twitter.android \
--testCommand "maestro test twitter.yaml" \
--duration 10000 \
--resultsFilePath results.json
- Open the report
flashlight report results.json