Patrol CLI commands are not recognized in Windows 11 and VSCode #412
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
Hi @lmlikota!
That's right, you have to use If you only use our custom finders (the dollar – Now onto your problem. If after installing
your system can't find the I'm so happy that you enjoy Patrol 💙 Thanks a lot you for your feedback. If you encounter any more problems are have questions, don't hesitate to ask :) |
Beta Was this translation helpful? Give feedback.
-
Also, as a side note, I see that you're not passing anything to the |
Beta Was this translation helpful? Give feedback.
-
Hi @bartekpacia I'm stuck, again 🥲 I have created void main() {
patrolTest(config: patrolConfig, nativeAutomation: true, 'sign in',
(PatrolTester $) async { I'm also using now What I'm getting now is really weird behavior. To explain what's going on I had to record it Code_XIMYq33ODK.mp4and little bit different try Code_xJ4PY0WqXe.mp4This is my import 'package:patrol/patrol.dart';
// TODO: Replace with values specific to your app.
const patrolConfig = PatrolTestConfig(
appName: '[QA] HAVEN FR',
packageName: 'hr.biss.haven_bridge.dev',
bundleId: 'hr.biss.havenBridge',
); This is my console output from the video Update available! 0.6.11 → 0.6.12 No device specified, using the first one (emulator-5554) The relevant error-causing widget was: When the exception was thrown, this was the stack: ════════════════════════════════════════════════════════════════════════════════════════════════════ When the exception was thrown, this was the stack: The test description was: To run this test again: C:\src\bin\cache\dart-sdk\bin\dart.exe test C:\Users\lmlikota\haven-bridge-mobile\integration_test\patrollogin.dart -p vm --plain-name 'sign in'
|
Beta Was this translation helpful? Give feedback.
-
Hi @lmlikota To keep the repo organized, please create a new issue and attach in it:
Thanks! :) |
Beta Was this translation helpful? Give feedback.
-
I see you edited your post and attached logs. I see that something's wrong with EasyLocalization – didn't you forget to initialize it in your test? PS |
Beta Was this translation helpful? Give feedback.
-
@lmlikota Please create an Issue, not a Discussion :) If you have a problem with something not working, issues are the way to go. |
Beta Was this translation helpful? Give feedback.
Hi @lmlikota!
That's right, you have to use
patrol drive
. It's required only if you use$.native
(and I see you do).patrol drive
does all the necessary setup work required to make tapping on native views, handling permission etc. work correctly.If you only use our custom finders (the dollar –
$
), you should onlyflutter test
:)Now onto your problem. If after installing
patrol_cli
from pub.dev like this:your system can't find the
patrol
executable, you most probably don't have pub cache added to your $PATH. Pleas…