Questions tagged [flutter-integration-test]

Use this tag for questions about the Flutter integration_test package, used to write and run integration tests (end-to-end/GUI tests).

137 questions
1
vote
1 answer

Can/should Firebase TestLab be used to run our integration test suite that relies on the Firebase Emulators and and a script that populates them?

We have been working on an integration test suite for our Flutter project. We are able to run it locally on the Android and iOS simulators, and on chrome for our web version of the app. Now, we would like to run our integration test suite as part of…
1
vote
0 answers

How to display the `test case name` in mobile device screen while flutter integration test is being executed

Currently when we run the flutter integration test by flutter test integration_test/app_test.dart, we are seeing Test Starting.. text in the mobile device/simulator screen(Screenshot Attached) when we have multiple test cases in app_test.dart (Say…
1
vote
1 answer

How to use find.ancestor & descendant in flutter integration test to find elements?

I have flutter widget created with below code, where Tabs are being created as shown below code snippet without having keys in it. How to find Settings tab & click on it? Can this be done using ancestor or descendant? Here is the image of the…
Jagadeesh
  • 358
  • 5
  • 17
1
vote
2 answers

Flutter integration tests: how to run multiple test-classes in the same apk on Firebase Test Lab (e.g. "class1_test.dart", "class2_test.dart"...)?

I have multiple test-classes under folder "integration-test" (e.g. "class1_test.dart", "class2_test.dart"...); I found scripts to generate app-apk and test-apk and run on Firebase TestLab, but these scripts generate test-app for particular…
1
vote
1 answer

How can I run Golden tests in the Flutter Web integration test environment

I'm trying to run Golden test in the Flutter Web integration test environment. But using flutter drive directly returns true without doing anything. $ flutter drive --driver=test_driver/integration_test.dart …
Riccardo
  • 11
  • 1
1
vote
0 answers

Is it normal that Flutter integration tests takes long time to start (Gradle task takes between 45s-120s)

When I start my integration_test in flutter it takes Gradle something between 45s to 120s to complete (I don't really know why it varies so much). Even if I run simplest UI test that takes few seconds to complete, this waiting for Gradle to complete…
1
vote
0 answers

Run Flutter Integration Tests in Parallel

I plan to run the flutter integration tests across different iOS/Android Simulators/Emulators in parallel. As per documentation, we can run the flutter integration tests across the device using: flutter test integration_test/foo_test.dart -d…
Abhishek Bedi
  • 5,205
  • 2
  • 36
  • 62
1
vote
1 answer

Flutter integration_test: How to automate multiple selection of widgets by long pressing shift key and mouse drag

I am trying to automate, in flutter web integration_test, wherein I want to select multiple widgets by long pressing shift key and mouse drag. May I know if this is possible, if yes, then how? or if not possible, then is there any alternate way to…
1
vote
1 answer

Flutter Integration Test not working with Dialog

I am writing tests for our company's app. I am testing the login screen which has 2 simple TextFields, and a Button. We fail the test by entering wrong credentials. Then a ErrorDialog shows up (Custom widget). The ErrorDialog shows a simple error…
1
vote
1 answer

how to split tests when writing integration test in flutter

I'm trying to write an integration test with flutter. In some cases I need to repeat the same process. such as adding a new line I want to make these new line insertion codes as a separate method and call them wherever I want in the test. but I…
1
vote
0 answers

Flutter how testing registration code input by Integration test

I use pinput for check registration code by send email code in register. I have problem in integration test in enter registration code, because testing doesn't know correct code. code // register email request success test await…
1
vote
0 answers

flutter integration test multiple files and tests

Im using the integration_test package. Based on this thread I've tried to run multiple tests on different files. Test two depends on Test one!! but can also run independently. Since "group" is not allowed to have "await", I've added some "Wait…
Orly
  • 101
  • 6
1
vote
1 answer

Flutter integrtaion_test: How to integration_test hyperlink?

I am developing some intregration tests for my flutter-web application. wherein i wanted to automate the hyperlink. So is there a way to test the hyperlink or some tab switching mechanism possible in integration_test?
1
vote
0 answers

What is the difference in running integration tests with flutter drive/test/run?

I'm having an issue with the integration tests in my app, for which if I run them in profile mode with flutter drive some tests get stuck in a given section of the app instead of starting from the first screen. This is not happening if I run the…
Leonardo
  • 130
  • 6
1
vote
2 answers

Flutter integration test not working, uri not found

Edit: tl;dr If you're getting "Target of URI doesn't exist" errors when adding a new package, try closing the Android Studio project and re-opening it. I'm just getting started with integration testing on my Flutter app and for some reason it can't…
odiggity
  • 1,496
  • 16
  • 29