简体   繁体   中英

Can we run automated tests using flutter_driver on Firebase Test Lab?

I am able to run automation tests on sample flutter application using flutter_driver on Android Emulator. I am looking for options of executing on Device Clouds. There are few threads which talk about executions on AWS Device Farm. However, I am interested in Firebase Test Lab. Similar to how we can execute automated scripts in SauceLabs, is there an option to run automated tests in Firebase Test Lab using flutter_driver?

It's currently not possible. Test Lab only supports testing Android apps with Espresso or UI Automator, and iOS apps with XCTest. There is currently no other framework support. As stated in the documentation :

Test Lab runs Espresso and UI Automator 2.0 tests on Android apps, and XCTest tests on iOS apps. Write tests using one of those frameworks, then run them through the Firebase console or the gcloud command line interface.

Feel free to file a feature request with Firebase support .

Instead of flutter_driver, use integration_test package

Tests written with the integration_test package can:

1- Run directly on the target device, allowing you to test on multiple Android or iOS devices using Firebase Test Lab.

2- Run using flutter_driver.

3- Use flutter_test APIs, making integration tests more like writing widget tests.

You can learn more about Migrating from flutter_driver here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM