Integrating Patrol with flutter_gherkin (v3) #652
Replies: 5 comments 9 replies
-
Hi @nonvachara-paloit, this looks great!
Make sure your
Let me know if this helps you :) |
Beta Was this translation helpful? Give feedback.
-
Hi @bartekpacia . Unfortunately, not yet. Here's my import "package:integration_test/integration_test_driver.dart"
as integration_test_driver;
import "package:patrol/patrol_driver.dart";
Future<void> main() {
// The Gherkin report data send back to this runner by the app after
// the tests have run will be saved to this directory
integration_test_driver.testOutputsDirectory =
"integration_test/gherkin/reports";
return patrolIntegrationDriver(
timeout: const Duration(minutes: 90),
);
} And this's my updated MyWorld. class MyWorld extends FlutterWorld {
late final HostAutomator hostAutomator;
late final NativeAutomator nativeAutomator;
MyWorld() {
final binding = PatrolBinding.ensureInitialized();
//
hostAutomator = HostAutomator(
config: const HostAutomatorConfig(),
binding: binding,
);
nativeAutomator = NativeAutomator(config: nativeAutomatorConfig);
}
void init() async {
await nativeAutomator.configure();
}
}
The (redacted) error is somewhat like this.
I could come up with minimum, reproduce-able project, and create an issue later. |
Beta Was this translation helpful? Give feedback.
-
I managed to make hostAutomator works. Here're my working code and step-by-step instructions.
Done. Happy coding! |
Beta Was this translation helpful? Give feedback.
-
Hi @nonvachara-paloit , Is it still working for you? Currently I am using patrol 3.0.1 and I am facing issues with above solution. It will be really helpful if you could provide the repository of your implementation if possible. I have completed the implementation with flutter gherkin but facing issues with Patrol integration for Native automation. |
Beta Was this translation helpful? Give feedback.
-
Hi @nonvachara-paloit , |
Beta Was this translation helpful? Give feedback.
-
Hi.
I've been trying to integrate Patrol with flutter_gherkin.
So far, I can expose this by
nativeAutomator
to Gherkin's step definition by using custom World, like so.After that, I can use it, for example:
Here're some of my questions.
hostAutomator
yet asPatrolBinding.ensureInitialized()
failed.Thank you for this awesome project!
Non.
Beta Was this translation helpful? Give feedback.
All reactions