Skip to content

XPEHO/flutter-e2e-robotframework

Repository files navigation

flutter_tests

A Flutter project made to run End to End tests with RobotFramework.

app

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

RobotFramework

RobotFramework is required to run End to End tests on Flutter mobile app

Appium

Appium server is required to pilot mobile device and run End to End tests

Libraries

We use several libraries to create End to End tests

AppiumLibrary

OCRLibrary

Collections

Run E2E tests

Go in the test/robot directory

And run the following command

robot counter_app.robot

Run single test case

Go in the test/robot directory

And run the following command

robot -t "Complex test case" counter_app.robot

robot-test

Open HTML report

RobotFramework generates test execution HTML reports. By default the report is generated next to the *.robot file in the report.html file.

Open Report

Run Flutter tests

Flutter Tests location

Unit tests

- `test/unit/counter_controller_test.dart`

Widget tests

- `test/widget/widget_test.dart`

Golden tests

- `test/golden/home_page_golden_test.dart`

Integration tests

- `integration_test/app_test.dart`

Run all tests

flutter test

Update Golden files

flutter test --update-goldens

Run Integration tests

flutter test integration_test

About

End to End tests on Flutter app using RobotFramework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published