Questions tagged [flutterdriver]

flutter_driver package provides tools to create instrumented apps and drive those apps from a test suite

78 questions
0
votes
0 answers

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 feature toggles from a REST service (using a…
sime
  • 1
0
votes
1 answer

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 from github.com/wix/AppleSimulatorUtils but when…
0
votes
1 answer

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: NotificationListener( …
thekucays
  • 568
  • 3
  • 9
  • 32
0
votes
1 answer

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 on internet. The specific part where I am stuck…
Asif Nawaz
  • 80
  • 5
0
votes
1 answer

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 primaryTextTheme = themeData.primaryTextTheme; return…
0
votes
1 answer

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.waitUntilFirstFrameRasterized(); and it should work,…
RemeJuan
  • 823
  • 9
  • 25
0
votes
1 answer

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 tried to inspect it using VSCode's widget…
thekucays
  • 568
  • 3
  • 9
  • 32
0
votes
1 answer

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 driver does not execute actual app. For example in my…
Apuna12
  • 375
  • 2
  • 6
  • 23
0
votes
2 answers

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 that i want to test doesn't have the identifier…
thekucays
  • 568
  • 3
  • 9
  • 32
0
votes
1 answer

How to disable push notifications prompt when running Flutter Driver tests

I run my e2e tests with Flutter Driver. The typical command I use is: flutter drive --flavor=development --target=e2e/instrumented_app.dart --driver=e2e/scenarios/smoke_scenario.dart -d "iPhone 11" However, after adding Push notifications support…
Dominik Roszkowski
  • 2,715
  • 1
  • 19
  • 46
0
votes
1 answer

VmService timestamp does not correspond to the flutter driver timeline event timestamp

I have dart test where I do setUp() async { vm_service.VmService vms = await vmServiceConnectUri(vmUrl); vmsStartTime = (await vms.getVMTimelineMicros()).timestamp; await flutterDriver.startTracing() } tearDown() async { vmsEndTime = (await…
0
votes
1 answer

Advanced features with Flutter Driver (or Silenium/Ghost Inspector)

Looking for a UI integration test strategy for Flutter. We'd love to use Silenium/Ghost Inspector but seems that is not practical due to lack of html id's or CSS classes in Flutter (Add id or name property or other means of identification for…
Mark
  • 168
  • 1
  • 13
0
votes
1 answer

Do you know any dart dev tool to properly view exported timeline information from dart VM?

I am trying to create automated performance profiling test for our application. At the moment dart allows collecting cpu samples and timeline info as well as dumping that into json file. Example: driver = await…
0
votes
1 answer

Get element absolute coordinates on the screen in flutter driver

Is there a way to get absolute coordinates of element on the screen in flutter? I'm finding element by key, but I also need it's coordinates (or at leas center). I found that flutter driver has some methods for this, like:…
A. Makarevich
  • 365
  • 1
  • 3
  • 18
0
votes
1 answer

How to find Close Button with flutter drive

I am testing a flutter Cupertino styled app using flutter drive. I have trouble closing a full-screen page because I cannot find the close button. What would be the correct find.by??? instruction to be able to tap the close button in a Cupertino…
Nathan
  • 7,099
  • 14
  • 61
  • 125