Questions tagged [flutterdriver]
flutter_driver package provides tools to create instrumented apps and drive those apps from a test suite
77
questions
0
votes
0
answers
15
views
How to run flutter integration_test_driver_extended and integration_test_driver in same test?
Is there a way to run the integration_test_driver[1] and integration_test_driver_extended [2] from integration_test package in one driver test, because I need both, the responseDataCallback as well ...
0
votes
0
answers
23
views
How to differentiate the tests as sanity, regression with annotations in flutter integration test
I'm using google flutter integration driver to automate the mobile flutter apps.
The way we do differentiate the test suites as sanity, regression by tagging annotations in espresso, testNG, etc.
Is ...
0
votes
0
answers
16
views
is their a way to key a error message that is thrown from a text box input in flutter for my integration tests
im having some issues with my integration tests in flutter on how i can check if an error pops up when wrong value is input idk how to check for it any help would be much appeciated.
`
child: ...
2
votes
3
answers
143
views
Flutter Driver: How to check device orientation?
How can I check the device orientation inside a flutter integration test within a flutter driver test?
SystemChrome.setPreferredOrientations
IS NOT AVAILABLE IN FLUTTER TEST!!!
See: https://...
0
votes
0
answers
76
views
I'm building an Appium flutter driver project using Java and cucumber. Is it possible to run Appium flutter using maven?
I tried maven clean install and it gave me an error. It runs using Appium but not with maven command line. If it cannot be run using maven How can I integrate my project to browser stack?
0
votes
0
answers
157
views
Cannot read properties of undefined (reading 'match') appium flutter driver
When trying to run app on robotframework-flutter-driver, getting TypeError:Cannot read properties of undefined (reading 'match')
[debug] [FlutterDriver] Deleting Flutter Driver session
[debug] [...
-1
votes
1
answer
317
views
Unable to get element in the flutter appliaction form the appium flutter driver after log in
The errror we get:-
An unknown server-side error occurred while processing the command. Original error: Cannot execute command waitFor, server reponse {
"isError": true,
"response":...
0
votes
0
answers
102
views
Flutter driver not able to enter 2 different sub texts in the same text field which is rich text formatted like hh:mm
I am using flutter driver to automate the mobile app,
And I am blocked with this case,
I am trying to entering into a rich text field that is formatted. like hh : mm as and when I type hours the app ...
3
votes
1
answer
411
views
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 ...
0
votes
1
answer
204
views
flutter driver chromedriver couldn't detect chrome
chromedriver couldn't open the chrome
dart-debug-extension was installed but not detected
versions are the same 99
how should i fix this?
for more information
i would insert flutter doctor -v output ...
0
votes
1
answer
572
views
Flutter driver doesn't find or tap TextInputField w/ semantics label
I'm developing flutter integration tests with flutter driver and want to use the semantic labels to find widgets (i.e. find.bySemanticsLabel('my-label')), specifically TextFormFields. However, finding ...
1
vote
0
answers
109
views
How to identify and click on a html element using flutter driver?
My flutter app has a html link
return Padding(
padding: const EdgeInsets.all(16.0),
child: Center(
child: Html(
data: message,
style: {"body&...
2
votes
1
answer
372
views
Running Flutter Web integration tests inside gitlab (probably github too) Ubuntu VM fails because of Chromedriver
I am trying to run integration tests for Web inside gitlab VM.
The VM is running Ubuntu 20.04.3 LTS.
Chromedriver is launched with this command line:
chromedriver -port=4444 --enable-chrome-logs
The ...
2
votes
0
answers
157
views
Flutter firebase-auth integration testing signInWithCredential error: The caller does not have permission to execute the specified
I'm trying to run integration tests on my flutter app.
One of the flows I want to test is the Login flow. There is a firebase phone number authentication in the app.
When I'm trying to call ...
3
votes
1
answer
673
views
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:
...
4
votes
0
answers
707
views
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 ...
1
vote
1
answer
1k
views
How to configure debug Flutter integration test on Android Studio
I can run this command in the terminal to execute integration test on real device
flutter drive --target=test_driver/app.dart
But I don't know how to create Run/Debug configuration on Android Studio ...
0
votes
1
answer
757
views
Integration testing using Flutter Driver for OTPTextField widget in flutter
I am trying to do integration testing using flutter driver. I am using await driver.enterText(find.byType('OTPTextField')) to enter the otp using flutter driver. But it's stuck at that screen and does ...
0
votes
1
answer
435
views
How to run Flutter driver tests remotely
We have Flutter driver tests running locally with a command like:
flutter drive --target=test_driver/app.dart --driver=test_driver/test/login_test.dart --flavor dev --no-start-paused
And having an ...
5
votes
1
answer
548
views
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 ...
0
votes
1
answer
769
views
How to do integration test with flutter driver on autocomplete textfield in flutter
How to do integration test with flutter driver on AutoTextCompleteFiled with GlobalKey value. How we can identify the AutoTextCompleteFiled widget with the Global key and how we can enter text in ...
1
vote
0
answers
451
views
Flutter integration test does not work with Firefox
Hi I have a problem running flutter drive with geckodriver (my sys macos with M1)
The command that I'm using:
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/...
0
votes
0
answers
283
views
Run Flutter Driver Tests On Azure DevOps Pipeline By Flutter Test Job
i want run flutter driver test on devops by flutter test job.
can i run tests on emulator that installed on devops server?
i tried adding flutter command job with this
flutter drive --target=...
4
votes
1
answer
1k
views
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 ...
0
votes
1
answer
95
views
How do I catch exceptions when using `flutter drive`?
When using flutter drive my tests still pass even when there was a runtime exception in the stack.
For example, adding this code to build(), goes undetected:
int? i;
i!.round();
Does anyone know how ...
0
votes
2
answers
49
views
How to check application state with FlutterDriver?
We're building some integration tests with FlutterDriver, and would like to verify the state of the application.
It seems flutter drive runs in a totally different instance than the app, so they can ...
0
votes
1
answer
1k
views
How to automate a Flutter Application
I am working on a project in which I am using webview to open a website.
I want the application to automatically fill data in the required fields and log in by reading the OTP and perform various ...
2
votes
0
answers
477
views
Exception: DriverError: Error in Flutter application: Uncaught extension error while executing tap: Guarded function conflict
I am trying to run an automated test on a flutter application, but the error below is generated when the application is waiting for a home page to load
VMServiceFlutterDriver: waitFor message is ...
0
votes
0
answers
36
views
Use openapi service in Flutter Drive integration test, but run into dart:ui problem
The app I am trying to test makes use of feature toggles to enable/disable certain parts of the app. However, the tests I've written are for all the features. When a user logs in, this will fetch the ...
5
votes
1
answer
1k
views
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
...
1
vote
0
answers
42
views
Can I create and use the flutter driver autonomous test as apk
I use flutter driver to test the UIs in my application autonomously.
Instead of creating this process with commands from the terminal constantly
Is it possible to start the test once I create an apk ...
0
votes
1
answer
1k
views
Grant iOS permissions to Flutter Driver for integration test
Using the Flutter integration_test package, I'm having trouble with a test that keeps failing due to an iOS permissions request that is inaccessible from the testing environment.
I tried applesimutils ...
0
votes
1
answer
697
views
Scrolling not working with SingleChildScrollView
I want to do scrolling using flutter driver on a page that uses SingleChildScrollView.. the layout looks like this
return Scaffold(
backgroundColor: PinColorsV2.neutralMin,
body: ...
2
votes
1
answer
534
views
Azure DevOps pipeline with Flutter Drive test framwork and AppCenter device sets
We have an Azure DevOps build pipeline that setup to create and deploy a Flutter mobile cross-platform app to Microsoft AppCenter. We use the Flutter Driver test framework for UI Automation. We wanted ...
1
vote
2
answers
651
views
How to generate keyboard Event ENTER on a TextField in flutter_driver Tests
I am writing an integration test using flutter_driver for searching using text field I have to enter(Keyboard Event) after entering text, I cannot find any solution to generate keyboard event in ...
13
votes
5
answers
2k
views
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 ...
0
votes
1
answer
499
views
In flutter_driver test, How can we automate the part where we upload images or videos?
I am writing integration test using flutter_driver, there is a test flow where I have to upload profile picture, is there any way we can automate this part. as I cannot find anything relevant to this ...
1
vote
2
answers
1k
views
How to see line number of failure line on flutter integration test?
EDIT: Found issue at flutter issue list: https://github.com/flutter/flutter/issues/65952
When there is a failure on flutter drive - integration tests, where do I look for - for the line number at ...
0
votes
1
answer
1k
views
Flutter driver: cant find element (text) on the screen
The element I need to find is situated (in the child element):
static Widget _buildProjectCategoryWidget(BuildContext context, String name) {
final themeData = Theme.of(context);
final ...
3
votes
1
answer
1k
views
Sample integration test with Flutter new integration_test?
Sample integration test with Flutter new integration_test ?
2
votes
2
answers
576
views
How can I write a test to wait for close app using Flutter Driver
I have to test my agreement when the app is first launched: if the user do not agree, than the app must close.
Most of the test are already working but I couldn't figure out how to test if the app has ...
3
votes
0
answers
435
views
Flutter Driver fails on dev server (Unable to connect to Chrome debug port: 37475)
I developed an app, wrote some tests, tests are successful locally. When I try running tests on my dev server they fail. I think the problem is with an absence of monitor on the server. How would I ...
4
votes
1
answer
879
views
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 ...
0
votes
1
answer
1k
views
Flutter Driver hangs at splash screen
I am trying to setup Flutter Driver tests for my application and the app runs async so I found https://github.com/flutter/flutter/issues/41029 which says all you need to do is add await driver....
0
votes
1
answer
242
views
Cannot Locate text Widget with 3rd party Library
Im writing Integration Test using Flutter Driver for the app that utilizes CoachMark library (https://pub.dev/packages/tutorial_coach_mark)
i want to click the text to close the CoachMark, but when i ...
3
votes
0
answers
277
views
Reporting tool for flutter_driver
I was searching for a reporting tool for flutter integration tests (flutter_driver) that will generate an HTML document.
But I couldn't find any.
I have tried Ozzie. But on Windows Ozzie don't work - ...
0
votes
1
answer
75
views
possible way to run actual application
I am making a testing scenarios using Ogurets framework which is cucumber + gherking combination.
The tests are for Flutter application written in Dart language.
I recently figured out that test ...
7
votes
1
answer
541
views
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 ...
0
votes
2
answers
887
views
Finds Element without key
i'm still new in using flutter driver in testing, but as far as i know there are few identifiers that we can use to locate / identify elements, like By Text, By Type, etc
But the problem is, the app ...
2
votes
1
answer
547
views
How to get text from Progress Dialog using Flutter Test Driver
I have a Flutter Application. Currently I am trying to make an automated integration tests using Test Driver.
This is what I am trying to do.
Scenario:
- Click on Button
- Check if the Progress Dialog ...