Auto
Auto
-A simpler Flutter UI automation test solution.
- No need to write any code
- Recording test scripts is very simple
- Multi-platform support
- Pixel-level playback
- Remote recording and playback
- …
Getting Started
1.Add Dependency
dependencies: auto: latest-version
2.Initialize UIAutomator
import 'package:auto/auto.dart'; void main() { UIAutomator.ensureInitialized(); //Make sure this line is at the top of the code runApp(UIAutomatorArea(child: MyApp())); }
For more detailed configuration, please see the example project
IDE Installation
See: Auto Ide
Usage
Auto_Video_720.mp4
Related Project
Download Flutter automated testing framework source code on GitHub
https://github.com/auto-flutter/auto
FAQs:
Why is the scroll position inaccurate during playback when scrolling continuously and quickly?
This is because Flutter will create a ballistic simulator to simulate the subsequent drag behavior after the drag event ends. To avoid this problem, you need to ensure that the next scroll is only performed after the current scroll is completely stopped.
Authorized actions cannot be captured?
This is because authorized pop-up windows are system-level and cannot be captured. To avoid this problem, please grant the required permissions to the application in advance (if it is Android, you can use adb for authorization).
Provides the list of the opensource Flutter apps collection with GitHub repository.