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
0
votes
0 answers

Test Report in Azure Devops is not showing the details of failed tests

I've created widget and integration tests for my flutter application then deployed it on azure devops and created a pipeline that can generate a test report. The problem is in the report I'm not getting a detailed information of the failed test (…
0
votes
0 answers

How can I add Integration Testing for my Flutter app to my Bitbucket Pipeline?

I want my Integration Test to run whenever the Bitbucket Pipeline is triggered. This is my bitbucket-pipelines.yaml file: definitions: services: docker: memory: 4096 steps: - step: &generate_code name: 'generate_code' …
0
votes
0 answers

How to run gcloud commands in flutter integration test?

I want to run the gcloud commands in flutter integration test. My use case is i need to get the access_token of firebase via gcloud auth application-default print-access-token which is working locally on my terminal. Now i want to run the same…
Jagadeesh
  • 358
  • 5
  • 17
0
votes
0 answers

Unable able read the command line argument in flutter integration test code

I'm running flutter integration test on firebase test lab(Ref: https://github.com/flutter/flutter/tree/main/packages/integration_test#android-device-testing) by building the app & test APK via shell script like below, where i'm also passing an…
Jagadeesh
  • 358
  • 5
  • 17
0
votes
0 answers

Integration test in Flutter is failing due to expect is being reached before async task in background completes

I'm new to flutter, and while trying to write my first integration tests, I'm facing an issue when trying to verify that the state of a Stateful widget is being actually updated. I'll try to create a basic sample to demonstrate the error as I cannot…
0
votes
0 answers

Flutter integration test not working when build for testlab (iOS with schema)

How are you? I’m trying to configure Testlab for ios, but I’m having problems with the configuration. https://github.com/flutter/flutter/tree/main/packages/integration_test#ios-device-testing When following the documentation recommended by Firebase…
0
votes
0 answers

How to verify if radio button is clicked or not in flutter integration test

In flutter integration test i want to verify if certain radio button is selected. Here is my app code of the radio button looks like: , This is the mobile view of radio button And here is how i'm accessing that widget and printing its groupValue…
Jagadeesh
  • 358
  • 5
  • 17
0
votes
1 answer

Flutter integration_test, screenshot function is unable to capture the entire screen. How do i make it screenshot the entire view

The screenshot image that i received, does not include the status bar portion of the app. As you can see below(the first image), the very upper part of the app is being cut off. The 2nd image is the kind of image i am expecting but failed to…
0
votes
1 answer

How to getText of value entered in `TextField` widget in flutter integration test

In flutter integration test, i want to get the text entered in TextField widget. Here is the development code looks like: , Here is the integration test code I written to get the text of it , Its printing the hole widget tree data, but i want to…
Jagadeesh
  • 358
  • 5
  • 17
0
votes
1 answer

I'm trying to automate drag and drop a draggable element in dart for flutter_integration testing

Trying to automate Drag and drop for testing. Element is of type Draggable. Tried drag() with longPress(). Tried drag with Offset and also tried moveTo() from TestGesture. But still unable to drag the element to the box. //await…
0
votes
0 answers

Flutter integration test doesn't let me enter OTP into a textfield while running the automated test

I have written an integration test for my flutter project where I have three screens, 1 where user input his email (i.e login screen) , second OTP verification screen, third is home screen, I wrote a test for login screen , found Textfield -> sent…
Shafqat Nadeem
  • 184
  • 1
  • 1
  • 9
0
votes
1 answer

How to clear the entered text in flutter integration test?

In flutter integration test, we generally enter the text by await tester.enterText(find.byKey(ValueKey(key)), value); But can anybody help me in clearing the entered text?
Jagadeesh
  • 358
  • 5
  • 17
0
votes
0 answers

Flutter driver switch to popup window

I want to automate login functionality for Auth0 on a Flutter web application for integration testing. When I click the login button for Auth0 it opens a pop-up window to enter the cred. Elements in the pop-up are not available to the tester object…
Mesut GUNES
  • 7,089
  • 2
  • 32
  • 49
0
votes
0 answers

Flutter integration_test loads forever

I am trying to run a very simple integration_test but it is loading forever. Any ideas about what is going wrong here? import 'package:advicer/2_application/pages/advice/widgets/advice_field.dart'; import…
0
votes
1 answer

How to grant system permissions while writing flutter integration tests?

I am writing flutter integration tests https://docs.flutter.dev/cookbook/testing/integration/introduction I can find and tap on my widgets perfectly fine but the problem arises when I have to click the system widgets to grant permissions in order to…
Kristi Jorgji
  • 1,154
  • 1
  • 14
  • 39