Integrate Flutster to your app | |
Add Flutster plugin | dependencies: flutster: flutter pub get import 'package:flutster/flutster.dart'; |
Initialize API parameters | //Create a user at https://flutster.com FlutsterTestRecord.defaultRecord.apiUrl= "https://flutster.com"; //Get your API key on the profile page at https://flutster.com FlutsterTestRecord.defaultRecord.apiUser= "Your Flutster User"; //The API key is made of 60 characters 0-f FlutsterTestRecord.defaultRecord.apiKey= "Your Flutster API Key"; |
Prevent use in production | //Avoid using Flutster in production FlutsterTestRecord.defaultRecord.active= !prod; |
Place Flutster Widgets | return FlutsterScaffold( name: "myUniqueWidgetName", appBar: AppBar( title: Text(widget.title), ), body: ... ); // or FlutsterTestRecorder( |
Make your text field cursor invisible | MaterialApp( ... |
Record your test | |
Open Flutster test recorder menu | |
Start recording | |
Close Flutster test recorder menu | |
Interact with your app | – Use physical keyboard. On physical device, use scrcpy . – Typed texts replace whole text field content. – Mouse interaction consists of start – end and duration. |
Take a screenshot | Double-click |
Open Flutster test recorder menu | |
Name your test record | |
Combine keyboard interactions | |
Save your test record | |
Upload test record to API | |
Note API test record id | |
Run your test record | |
Create test file | Example file content |
Add and select run configuration | |
Run your test record |