Skip to content

Test your Flutter Applications on cloud with Appium Java and TestMu AI. This is a sample repo to help you automate testing of Flutter apps with Appium and Java with TestMu AI automation testing cloud

Notifications You must be signed in to change notification settings

LambdaTest/flutter-appium-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Flutter Tests With Appium Java On TestMu AI

Image

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

Steps for test execution

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_KEY

For Linux:

export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY

For Windows:

set LT_USERNAME=LT_USERNAME
set LT_ACCESS_KEY=LT_ACCESS_KEY

Alternatively, 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:

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:

Image

You would also see the respective app in the App Live App Dashboard

Image

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:

Image

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 clean

Run the make build command on the terminal to build the automation project

make build
Image

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.

Image Image

Navigate to the TestMu AI Automation Dashboard to check the status of the test execution.

Image

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.

Image Image

Navigate to the TestMu AI Automation Dashboard to check the status of the test execution.

Image

Tutorials 📙

Check out our latest tutorials on Appium Flutter Java testing 👇

Documentation & Resources 📚

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.

TestMu AI Community 👥

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 🌎

What's New At TestMu AI ❓

To stay updated with the latest features and product add-ons, visit Changelog

About TestMu AI

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.

Features

  • 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.

We are here to help you 🎧

About

Test your Flutter Applications on cloud with Appium Java and TestMu AI. This is a sample repo to help you automate testing of Flutter apps with Appium and Java with TestMu AI automation testing cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •