While automating flutter APP, i have one issue related to No observatory URL matching
Tags: flutter
Published: 2023-09-10 14:08:37

Response-- 
[RemoteTestNG] detected TestNG version 6.14.3
[TestNGContentHandler] [WARN] It is strongly recommended to add "<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >" at the top of your file, otherwise TestNG may fail or not work as expected.
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Cause is :null
**Message is :Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Cannot determine the Dart Observatory URL after 10 retries. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_\-.\[\]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium-userland/appium-flutter-driver#usage and that it does not crash on startup.** 
Host info: host: 'DESKTOP-K4BH94C', ip: '192.168.5.207'
Build info: version: '4.12.0', revision: '249f2a7d1b*'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.6'
Driver info: io.appium.java_client.android.AndroidDriver
Command: [null, newSession {capabilities=[{appium:appActivity=com.example.new_climat.MainActivity, appium:deviceName=Android Emulator, platformName=ANDROID, appium:automationName=Flutter, appium:app=D:\App\climate_app.apk, appium:appPackage=com.example.new_climat}], desiredCapabilities=Capabilities {appium:app: D:\App\climate_app.apk, appium:appActivity: com.example.new_climat.Main..., appium:appPackage: com.example.new_climat, appium:automationName: Flutter, appium:deviceName: Android Emulator, platformName: ANDROID}}]
Capabilities {appium:app: D:\App\climate_app.apk, appium:appActivity: com.example.new_climat.Main..., appium:appPackage: com.example.new_climat, appium:automationName: Flutter, appium:deviceName: Android Emulator, platformName: ANDROID}
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Cannot determine the Dart Observatory URL after 10 retries. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_\-.\[\]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium-userland/appium-flutter-driver#usage and that it does not crash on startup. 
Host info: host: 'DESKTOP-K4BH94C', ip: '192.168.5.207'
Build info: version: '4.12.0', revision: '249f2a7d1b*'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.6'
Driver info: io.appium.java_client.android.AndroidDriver
Command: [null, newSession {capabilities=[{appium:appActivity=com.example.new_climat.MainActivity, appium:deviceName=Android Emulator, platformName=ANDROID, appium:automationName=Flutter, appium:app=D:\App\climate_app.apk, appium:appPackage=com.example.new_climat}], desiredCapabilities=Capabilities {appium:app: D:\App\climate_app.apk, appium:appActivity: com.example.new_climat.Main..., appium:appPackage: com.example.new_climat, appium:automationName: Flutter, appium:deviceName: Android Emulator, platformName: ANDROID}}]
Capabilities {appium:app: D:\App\climate_app.apk, appium:appActivity: com.example.new_climat.Main..., appium:appPackage: com.example.new_climat, appium:automationName: Flutter, appium:deviceName: Android Emulator, platformName: ANDROID}