Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Auto is a Flutter automated testing framework

Auto

Auto-A simpler Flutter UI automation test solution.

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 https://user-images.githubusercontent.com/28224568/110477128-c12e3e00-811d-11eb-9749-e35f359531f3.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).

Exit mobile version