31 questions
0
votes
0
answers
45
views
How can I setup the file picker in the patrol automation test?
Can anyone have the idea on file picker in patrol automation testing for Andriod?
I have tried in some ways,
await $.native2.pickMultipleImagesFromGallery(
imageIndexes: [1,2],
imageSelector: ...
0
votes
0
answers
33
views
How to interact with IOS share sheet through Flutter Patrol
Did anyone else have this issue? the patrol test is not clicking "Save to Files" in the share sheet, it's stuck even before getting to that step
await $('Open Certificate').tap(...
0
votes
0
answers
161
views
Patrol Instrumentation Tests Setup in Flutter: Getting Errors on Import and Package Name Mismatch
I'm trying to set up Patrol E2E tests in a Flutter app. The setup is mostly correct, but I'm running into issues with the MainActivityTest imports and package name mismatch errors. I'm following the ...
3
votes
0
answers
192
views
Missing extension byte exception using patrol test in flutter app
I have a Widget (Main Widget of the app) which renders normal when I install it as flutter app, yet during patrol test it throws an error concerning UTF-8 extension bytes.
FormatException: Missing ...
0
votes
1
answer
76
views
How to prevent Firebase Test Lab from granting all apps permissions?
I'm running end-to-end tests on my Flutter app's Android version using the Patrol package. When I run these tests locally, the app requests permissions from the user (specifically for Bluetooth and ...
0
votes
1
answer
330
views
Flutter> Patrol > Mobile automatization test: Running a set of tests from one folder
How can you run a set of tests from a folder so that an issue with one test doesn't prevent the execution of the remaining tests?
The following hierarchy of the integration_test directory:
...
2
votes
1
answer
351
views
The Patrol test is not showing test results
How do I see the results of my patrol tests in VS code when running the patrol cli with this command?
patrol test -t integration_test/mng_vgn_itm/add_to_location_test.dart
--flavor development --dart-...
1
vote
0
answers
546
views
patrol develop can not start and attach to Flutter (android) app
I'm trying to use the patrol develop command to use the hot reload functionality. But when I run it, the app is built properly but it never launches on my emulator and I see a warning that says it is ...
0
votes
0
answers
330
views
Issue with Patrol Flutter tests
I have a question regarding running tests in Flutter using Patrol framework. Sometimes when I run the test it passes and sometimes it just fails with this message in report.
══╡ EXCEPTION CAUGHT BY ...
1
vote
0
answers
382
views
patrol 3.6.1 Stuck at app:connectedDebugAndroidTest Failed
Steps to reproduce
Clone https://github.com/alifaalfarizi/test_patrol
Start Pixel_3a_API_33 (Emulator)
Run patrol test patrol test -t integration_test/example_test.dart --verbose
Actual results
I ...
2
votes
1
answer
683
views
patrol does not run the tests when using --release flag
I have patrol running fine when performing the tests on debug:
# this comes from a makefile command I wrote:
patrol test --target integration_test/$(test_path) --dart-define="MODE=test" --...
1
vote
1
answer
89
views
Starting Patrol tests brings "Serializer for class 'ConfigureRequest' is not found" error
I've just switched from Patrol 2.2.5 to 2.3.0, and I'm getting this error when I try to run the test:
Patrol (native): trying to configure() again in 1 second
Patrol (native): ...
1
vote
1
answer
249
views
Error DartTestGroup isn't a type while running patrol test
While executing patrol test on iOS simulator.
Getting the below error:
error: integration_test/test_bundle.dart:8:8: Error: Error when reading '../../.pub-cache/git/patrol-...
1
vote
1
answer
625
views
How can I restart dart-side app state during patrol test?
I have a test case where I want to imitate restarting app during the test (because I know that it's impossible to kill the app and reopen it). Then I just want to check if some state is persisted.
I ...
1
vote
1
answer
1k
views
(Flutter-Patrol) How can I run few patrol's tests in the directory to execute one file/test only once?
The following hierarchy of the integration_test directory:
integration_test
├── patrol
├── 1_test.dart
├── 2_test.dart
├── 3_test.dart
├── 4_test.dart
├── 5_test.dart
└── 6_test.dart
...
1
vote
1
answer
902
views
Flutter> Patrol > Mobile automatization test: How to access to "Subscribe" button on system pop-up Google Play Store?
I'm trying to purchase a subscription in my tests. Everything goes well until the native Android purchase popup appears. I'm not able to tap on the green 'Subscribe' button. Is there a way to do it? ...
1
vote
1
answer
748
views
I have setup the codemagic.yaml and Patrol package for testing the integration test cases but I am facing one issue
here is my .yaml file for CI/CD . I used the patrol package for write test cases. https://patrol.leancode.co/getting-started/getting-started
workflows:
android_dev_workflow:
name: workflow for ...
1
vote
1
answer
586
views
Build error when I use patrol cli command to test native screen
Getting below build errors when i use below patrol cli command to run test
patrol test --target integration_test/example_test.dart
**Build error 1 - Execution failed for task ':video_player_android:...
1
vote
0
answers
89
views
I implemented patrol(https://patrol.leancode.co/) package for perform the integration testing in my current project.enterText() method is not working
I used patrol package here is my test cases for Pinput widget.
final TextEditingController controller = TextEditingController();
const length = 4;
final focusNode = FocusNode();
...
1
vote
1
answer
2k
views
_debugInitializedType == null': is not true thrown and ios app stuck on splashscreen while running via Patrol
Running e2e test via patrol for a flutter written app.
Exception has occurred.
_AssertionError ('package:flutter/src/foundation/binding.dart': Failed assertion: line 149 pos 12: '_debugInitializedType ...
0
votes
1
answer
115
views
Looking for guidance on testing a complete food ordering and delivery process in Flutter
I am working on a project that involves three Flutter apps: a customer app, a driver app, and a pioneer app. We have already written integration tests for each app, but now we need to write a full end-...
0
votes
2
answers
2k
views
Problem with Patrol while running integration test in Flutter
I have problem with Patrol while running integration test in Flutter. I need to accept some permissions and I want to use to this purpose Petrol package.But in terminal there is an error which seems ...
2
votes
0
answers
639
views
Flutter Patrol CLI - Xcode build error after Xcode update to version 14.3
After updating Xcode, the build for the integration tests fails.
I get the following error:
2023-05-04 10:02:20.872 xcodebuild[42145:1120855] DVTCoreDeviceEnabledState: ...
0
votes
0
answers
666
views
Error running automated test in Flutter with Patrol
I'm trying to run a simple test with Patrol and I get the following error:
Patrol (native): configure() failed: (GrpcError: configure() failed with code UNAVAILABLE (Error connecting: SocketException: ...
3
votes
1
answer
4k
views
Unable to run Patrol test properly
i'm able to run integration_test using this codes:
##########
# integration_test/openapp_test.dart
##########
import 'package:myapp/main.dart' as app;
group('end-to-end test', () {
testWidgets('...
1
vote
1
answer
1k
views
Error when running Integration test in Flutter using patrol
I'm trying to run an integration test in flutter using the patrol 1.0.8 package.
Then I got an error when running the test with commanded patrol test integration_test/classic_process_test.dart --...
0
votes
1
answer
826
views
The workspace named "Runner" does not contain a scheme named "Runner". error for Flutter integration test with patrol in iOS
I try to implement integration tests in my flutter project. I found Patrol meet my requirement and it can assess native feature like openNotifications disableWifi etc.
I followed the tutorial on how ...
3
votes
1
answer
2k
views
ASK Flutter Integration test with Patrol
I try to learn how to write full automation tests in Flutter. in my case, I have 3 flavor apps (Development, Staging, and Production), and some modules need some native integration with OS itself like ...
2
votes
1
answer
1k
views
Using patrol test package for google sign in during integration test error
I am unable to select the particular email for google sign-in for testing
this is the error that im facing.
_AssertionError ('package:patrol/src/custom_finders/patrol_tester.dart': Failed assertion: ...
0
votes
1
answer
867
views
How to test this GestureDetector in Flutter with Patrol?
In my app, the widget tree is DeleteItem GestureDetector -> InvoiceTotal Widget -> ItemListWidget -> ListView -> EditInvoiceClass
I tried to use PatrolTest
await $(#InvoiceTotal).$(#...
1
vote
1
answer
349
views
Undefined name Patrol in Flutter
Even though I added dependency correctly, it is unable to find the Patrol class inside the dependencies. The correct implementation is shown in this link: https://pub.dev/packages/patrol