Blog ⋅ Docs ⋅ Learning Hub ⋅ Newsletter ⋅ Certifications ⋅ YouTube
In this 'Appium Flutter Java Automation' repo, we have covered the nuances of automating Flutter application testing using the following Appium drivers:
The testing is performed on Real Device Cloud infrastructure provided by TestMu AI
Step 1
Fetch the TestMu AI Credentials from the TestMu AI Profile Section section. Export the environment variables LT_USERNAME and LT_ACCESS_KEY by triggering the following commands on the terminal:
For macOS:
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEYFor Linux:
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEYFor Windows:
set LT_USERNAME=LT_USERNAME
set LT_ACCESS_KEY=LT_ACCESS_KEYAlternatively, update the TestMu AI Credentials - LT_USERNAME and LT_ACCESS_KEY in Makefile.
Step 2
For testing, we have used the open-source Provider Shopper Flutter sample app. The app is built for testing with the Flutter Driver and Flutter Integration Driver respectively.
You can download the Apps from the following locations:
- Provider Shopper Flutter sample app - Flutter Driver
- Provider Shopper Flutter sample app - Flutter Integration Driver
The app needs to be uploaded to the TestMu AI cloud storage. For this, run the following commands on tge terminal for uploading the app:
curl -u "LT_USERNAME:LT_ACCESS_KEY" \
-X POST "https://manual-api.lambdatest.com/app/upload/realDevice" \
-F "url=https://pub-b8556f54909d4c829fb7c6761d7284fe.r2.dev/shoppers-app-appium-flutter-driver.apk" \
-F "name=shoppers-app-appium-flutter-driver.apk" \
-F "custom_id=sampleName" \
-F "storage=url" \
-F "visibility=individual"curl -u "LT_USERNAME:LT_ACCESS_KEY" \
-X POST "https://manual-api.lambdatest.com/app/upload/realDevice" \
-F "url=https://pub-b8556f54909d4c829fb7c6761d7284fe.r2.dev/shoppers-app-appium-flutter-integration-driver.apk" \
-F "name=shoppers-app-appium-flutter-integration-driver.apk" \
-F "custom_id=sampleName" \
-F "storage=url" \
-F "visibility=individual"If the command execution is successful, you would see a APP ID in the command output:
You would also see the respective app in the App Live App Dashboard
Now that both the apps are uploaded to the TestMu AI cloud storage, retrieve the App ID by clicking on the Settings button next to uploaded app:
Next, update the App ID in the test files:
Step 3
Run the make clean command on the terminal to clean the temporary files
make cleanRun the make build command on the terminal to build the automation project
make build
Step 4 - Automation with Appium Flutter Integration Driver
Trigger the command make flutter-integration-driver-test to test Flutter app on the TestMu AI cloud grid using the Appium Flutter Integration Driver.
Navigate to the TestMu AI Automation Dashboard to check the status of the test execution.
Step 5 - Automation with Appium Flutter Driver
Trigger the command make flutter-driver-test to test Flutter app on the TestMu AI cloud grid using the Appium Flutter Driver.
Navigate to the TestMu AI Automation Dashboard to check the status of the test execution.
Check out our latest tutorials on Appium Flutter Java testing 👇
- Automating Flutter Apps Using Appium Flutter Driver With Java
- Appium Flutter Integration Driver Guide
- A Complete Guide To Flutter Testing
Visit the following links to learn more about TestMu AI's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing.
The TestMu AI Community allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎
To stay updated with the latest features and product add-ons, visit Changelog
TestMu AI (Formerly LambdaTest) is a Full Stack Agentic AI Quality Engineering platform that empowers teams to test intelligently and ship faster. Engineered for scale, it offers end-to-end AI agents to plan, author, execute, and analyze software quality. AI-native by design, the platform enables testing of web, mobile, and enterprise applications at any scale across real devices, real browsers, and custom real-world environments.
- Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments.
- Real-time cross browser testing on 3000+ environments.
- Test on Real device cloud
- Blazing fast test automation with HyperExecute
- Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale.
- Smart Visual Regression Testing on cloud
- 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more.
- Automated Screenshot testing across multiple browsers in a single click.
- Local testing of web and mobile apps.
- Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems.
- Geolocation testing of web and mobile apps across 53+ countries.
- Got a query? we are available 24x7 to help. Contact Us
- For more info, visit - TestMu AI
