Open creatorpiyush opened 5 months ago
I was able to reproduce the issue. As the device logs say:
PatrolServer: ERROR: Control Center is not available on Simulator
.
So I'm afraid it's not possible to call this method for iOS Simulator. We should describe this limitation in NativeAutomator
documentation.
https://github.com/leancodepl/patrol/issues/396
not related but worth to keep in mind
Steps to reproduce
patrol test --target=integration_test/service_cellular_test.dart --device="iPhone 15" --verbose
Actual results
disableCellular() and other services should work and not return 400
Logs
Logs
``` ((passed) is true) failed - ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════ The following PatrolActionException was thrown running a test: Patrol action failed: NativeAutomatorClientException: disableCellular() failed with Invalid response: 400 The operation couldnât be completed. (patrol.PatrolError error 3.) When the exception was thrown, this was the stack: #0 NativeAutomator._wrapRequest (package:patrol/src/native/native_automator.dart:226:7)Patrol version
patrol: path: ../../packages/patrol (Master) and also checked with patrol: 3.6.0
Patrol Doctor output
Patrol Doctor output
``` Patrol doctor: Patrol CLI version: 2.7.0 Flutter command: flutter Flutter 3.16.9 • channel [user-branch] Android: • Program adb found in /Users/piyushanand/Library/Android/sdk/platform-tools/adb • Env var $ANDROID_HOME set to /Users/piyushanand/Library/Android/sdk iOS / macOS: • Program xcodebuild found in /usr/bin/xcodebuild • Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller ```Flutter Doctor output
Flutter Doctor output
``` Doctor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel [user-branch], 3.16.9, on macOS 14.4.1 23E224 darwin-arm64, locale en-IN) ! Flutter version 3.16.9 on channel [user-branch] at /Users/piyushanand/development/FlutterSDK/flutter Currently on an unknown channel. Run `flutter channel` to switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. ! Upstream repository unknown source is not a standard remote. Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error. [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.87.2) [✓] Connected device (5 available) ! Error: Browsing on the local area network for Piyush’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources ```