flutter_driver package provides tools to create instrumented apps and drive those apps from a test suite
Questions tagged [flutterdriver]
78 questions
17
votes
5 answers
New integration_test package just shows "Test starting..." [Android]
I tried to migrate my old flutter driver tests to the new integration_test package.
I copied nearly everything from the example project and executed the integration tests of the example project locally. That worked as expected, I was able to see the…

Andreas B.
- 171
- 1
- 3
17
votes
1 answer
Flutter Driver - can we pass command line arguments to flutter driver tests
I want to pass the test environment as a command line argument to my flutter driver integration test.
Is it possible ?
I did read in the below post that we can use environment variables in flutter driver tests.But I was more interested in command…

Manmeet Chadha
- 211
- 1
- 6
13
votes
3 answers
using the system back button from flutter driver
How can I use the system back button in an integration test?
So I'm using flutter and am writing integration tests, in most circumstances I can use the AppBar navigation, finding it by tool tip looks like this…

martinseal1987
- 1,862
- 8
- 44
- 77
7
votes
1 answer
Flutter driver handle minimalized application
I am making some testing scenarios for my flutter application. One of the functionalities is "About us" section. When tapping on "About Us" user is redirected to the web page and application is minimalized. This is an issue because test scenario…

Apuna12
- 375
- 2
- 6
- 23
7
votes
1 answer
Flutter Driver test timeout
I am new to Flutter Driver testing, and I have an issue that the tests always time out (in 30 seconds) while waiting for widgets to appear. My main class is only checking whether the Firebase user is not null. If a user is logged in, it is showing a…

Dmitri Borohhov
- 1,513
- 2
- 17
- 33
6
votes
1 answer
Flutter integration test - Failed to stop the app - only on iOS
I am doing an integration test for my app on both simulators android and iOS
the android one finish like expected All tests passed and application stopped
but the iOS one finish testing and all Tests passed but finish with error "Failed to stop…

Ahmed Morra
- 129
- 10
5
votes
1 answer
Hot reload for Flutter integration test?
I have setted up Flutter Integration Testing on my project as defined here: https://flutter.dev/docs/testing/integration-tests
I used the following devDepencendies:
integration_test: ^1.0.0
flutter_test:
sdk: flutter
flutter_driver:
sdk:…

Christopher
- 9,682
- 7
- 47
- 76
4
votes
1 answer
FlutterDriver.Connect Requires VM_SERVICE_URL or String?
My app is the basic counter, with a FlutterDriver for UI Automation. My conundrum is when I attempt to run my test, it tells me that I need to specify a connection or set the VM_SERVICE_URL
ERROR:
DriverError: Could not determine URL to connect to…

Xenoranger
- 421
- 5
- 22
4
votes
0 answers
Migrating from Flutter_driver to integration_test package
I am working on migrating from flutter_driver to integration_test package as this page indicates: https://flutter.dev/docs/testing/integration-tests
But I find the process of writing tests with integration_test package (…

Tomás Wonderfurt
- 127
- 5
4
votes
1 answer
how should i find a global key in flutter driver test?
Normally I put Key: ValueKey in a flutter element that I want to find in my test cases for testing, however this particular element already has a globalKey. So, what should I use to find the globalkey used in the element?
value key
key:…

natasha
- 41
- 3
4
votes
1 answer
How to get the device Id while doing integration testing in flutter?
I am trying to get the device Id inside app_test.dart file. But i am getting the following error. while executing the following command: flutter drive --target=test_driver/app.dart.
Please find the error details below:
I/flutter (20622): Observatory…

Tharani
- 51
- 4
4
votes
0 answers
Flutter Driver- How to Re-run a test case automatically on failure?
Is there a way to re-run the failed test cases on Flutter driver (Integration tests) like Testng or Junit?

Raghuram Jayaraman
- 41
- 1
4
votes
1 answer
Flutter Driver - Does not locate Flutter AlertDialog and its elements
I have a Flutter AlertDiaog that comes up on my flutter app.
Using Flutter Driver, I am unable to tap on either the Flutter AlertDialog or on any element on the AlertDialog.
Is there a way to tap on any AlertDialog that comes up on my app?
I have…

Manmeet Chadha
- 211
- 1
- 6
3
votes
1 answer
Flutter integration test running twice on web
GitHub issue
Setup:
Clone repository
Run chromedriver --port=4444 in another terminal
Run flutter drive --driver=test_driver/integration_test.dart --target=integration_test/example_test.dart -d chrome
It seems like the test is running twice as…

Garrett Barlocker
- 493
- 4
- 16
3
votes
1 answer
Sample integration test with Flutter new integration_test?
Sample integration test with Flutter new integration_test ?

Paras Arora
- 605
- 6
- 12