Open aliakbr opened 2 years ago
This is odd. I will try and run the sample code again tomorrow.
Are you trying to run against an ios or Android emulator? If it is Android try and ensure use use an x86 image as I have had trouble with this on my CI server using x86_64 images.
If you are starting a new project I strongly suggest you use the new integration_tests way of doing things as I'll soon be moving flutter_gherkin over to this way of doing things. https://pub.dev/packages/flutter_gherkin/versions/3.0.0-rc.5
I use iOS Simulator (iOS version 14.5, iPhone 12 Pro Max) and also a real device for android (OPPO).
Thank you for the help and thank you for your information, will take a look on the version later.
Hi @jonsamwell
Me (I am the QA) and @aliakbr (Dev) working on the same company. I try using 3.0.0-rc-5 but it seem to have a dependencies issue. This does not happen using 3.0.0rc-2.
Because flutter_gherkin >=3.0.0-rc.3 depends on source_gen ^1.1.0 which depends on analyzer ^2.1.0, flutter_gherkin >=3.0.0-rc.3 requires analyzer ^2.1.0. And because intl_utils 2.1.0 depends on analyzer ^1.0.0, flutter_gherkin >=3.0.0-rc.3 is incompatible with intl_utils 2.1.0. So, because frontend depends on both intl_utils 2.1.0 and flutter_gherkin 3.0.0-rc.5, version solving failed.
Here are our dev dependencies :
dev_dependencies: intl_utils: 2.1.0 flutter_launcher_icons: ^0.9.0 mockito: build_runner: flutter_driver: sdk: flutter test: any flutter_test: sdk: flutter integration_test: sdk: flutter flutter_gherkin: 3.0.0-rc.5 gherkin: ^2.0.4
If I add analyzer: ^2.1.0 it will conflict with intl_utils: 2.1.0
Because frontend depends on intl_utils 2.1.0 which depends on analyzer ^1.0.0, analyzer ^1.0.0 is required. So, because frontend depends on analyzer ^2.1.0, version solving failed.
@gobearjr could you add a dependency override?
dependency_overrides:
analyzer: ^1.0.0
Or ask https://github.com/localizely/intl_utils/blob/master/pubspec.yaml to upgrade their dependency on anaylzer as it is out of date.
Ok, Thank you. I will follow up with them and try overriding the dependencies.
Same for Windows + Android tablet:
My configuration:
hi @jonsamwell , we have try update to version 3.0.0-rc.5. and then it ask to remove deprecated library and ask to update latest version other library. and we have do it. but at the end we got error like below
$ flutter drive --target=test_driver/app.dart
Downloading android-arm-profile/linux-x64 tools...
313ms
Downloading android-arm-release/linux-x64 tools... 130ms
Downloading android-arm64-profile/linux-x64 tools...
122ms
Downloading android-arm64-release/linux-x64 tools... 92ms
Downloading android-x64-profile/linux-x64 tools... 87ms
Downloading android-x64-release/linux-x64 tools... 76ms
Running "flutter pub get" in flutter_apps...
1,940ms
Running Gradle task 'assembleDebug'...
Checking the license for package Android SDK Build-Tools 29.0.2 in /opt/android-sdk-linux/licenses
License for package Android SDK Build-Tools 29.0.2 accepted.
Preparing "Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)".
"Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" ready.
Installing Android SDK Build-Tools 29.0.2 in /opt/android-sdk-linux/build-tools/29.0.2
"Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" complete.
"Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" finished.
Checking the license for package Android SDK Platform 31 in /opt/android-sdk-linux/licenses
License for package Android SDK Platform 31 accepted.
Preparing "Install Android SDK Platform 31 (revision: 1)".
"Install Android SDK Platform 31 (revision: 1)" ready.
Installing Android SDK Platform 31 in /opt/android-sdk-linux/platforms/android-31
"Install Android SDK Platform 31 (revision: 1)" complete.
"Install Android SDK Platform 31 (revision: 1)" finished.
Note: /root/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.7.0/android/src/main/java/io/flutter/plugins/firebase/core/FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /root/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-5.0.0+4/android/src/main/java/com/dexterous/flutterlocalnotifications/FlutterLocalNotificationsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /root/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.4+2/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /root/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/android/src/main/java/name/avioli/unilinks/UniLinksPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleDebug'... 203.6s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
1,789ms
W/Gralloc3( 5044): mapper 3.x is not supported
I/OpenGLRenderer( 5044): Davey! duration=3265ms; Flags=1, IntendedVsync=415135300393, Vsync=415201967057, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=415212221212, AnimationStart=415212257177, PerformTraversalsStart=415212260047, DrawStart=415938930329, SyncQueued=415939668487, SyncStart=415939835028, IssueDrawCommandsStart=415939953219, SwapBuffers=418310096422, FrameCompleted=418401312435, DequeueBufferDuration=548000, QueueBufferDuration=242000,
I/Choreographer( 5044): Skipped 194 frames! The application may be doing too much work on its main thread.
/root/.pub-cache/hosted/pub.dartlang.org/flutter_gherkin-3.0.0-rc.5/lib/src/flutter/adapters/widget_tester_app_driver_adapter.dart:2:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui show ImageByteFormat;
^
/sdks/flutter/packages/integration_test/lib/integration_test.dart:7:8: Error: Not found: 'dart:ui'
import 'dart:ui';
^
/sdks/flutter/packages/flutter/lib/src/material/animated_icons.dart:9:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui show Paint, Path, Canvas;
^
/sdks/flutter/packages/flutter/lib/src/material/animated_icons.dart:10:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
^
/sdks/flutter/packages/flutter/lib/src/material/app.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui;
^
/sdks/flutter/packages/flutter/lib/src/material/app_bar_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
^
/sdks/flutter/packages/flutter/lib/src/material/arc.dart:6:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
^
/sdks/flutter/packages/flutter/lib/src/material/bottom_app_bar_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
^
/sdks/flutter/packages/flutter/lib/src/material/bottom_navigation_bar_theme.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
^
/sdks/flutter/packages/flutter/lib/src/material/bottom_sheet.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show lerpDouble;
^
adb uninstall failed: ProcessException: Process exited abnormally:
Failure [DELETE_FAILED_INTERNAL_ERROR]
Command: /opt/android-sdk-linux/platform-tools/adb -s 172.21.65.153:5555 uninstall com.flutter.android
Failed to uninstall app
we try at macOS big sur and linux
hi any update for this issue? i'm use macOS monterey
and flutter 2.8.1
@jonsamwell
Looks like we're having the same problem with Flutter Driver in Patrol. I've been doing some investigation in https://github.com/leancodepl/patrol/issues/272, but no luck so far.
This is a Flutter problem. Unfortunately after googling the problem, the first result is a close issue in flutter/flutter
: https://github.com/flutter/flutter/issues/72484
I find this problem hard to debug because in my case it rarely occurs locally. It occurs much more often when integration tests run on GitHub Actions, though. The GHA runners are much slower than the M1 I'm developing on, so that may be a possible cause?
Sorry for this bit of off-topic, but I just wanted to let you know that you're not alone and add some more, possibly useful info.
I'm having the same issue. Using the sample code. Tried Android emulator and a physical Samsung device. Any solutions for this yet?
Hi all, I am experiencing a very weird issue. I've pulled the example code from this repo and successfully run the example code. Meanwhile, after copying the example code to my current repo project I am facing this issue :
It seems like the flutter driver can't connect to. any of my simulator/devices in this project. This is some detail of my environment and how to run the test :
flutter doctor :
Project structure (test_driver folder):
app.dart (test_driver)
app_test.dart (test_driver)
login.feature
This is my app code : main_test.dart
app_test.dart
pubspec.yaml