headspinio / appium-tizen-tv-driver

A Samsung Tizen TV driver for Appium
Apache License 2.0
11 stars 2 forks source link

chore: better error message #588

Closed KazuCocoa closed 5 months ago

KazuCocoa commented 5 months ago

If the test apps was not debuggable, current error returns:

Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command. Original error: Command 'sdb -s 192.168.11.41\:26101 shell 0 debug 9Ur5IzDKqV.TizenYouTube' exited with code 1. Stdout was: ''. Stderr was: 'closed '
from UnknownError: An unknown server-side error occurred while processing the command. Original error: Command 'sdb -s 192.168.11.41\:26101 shell 0 debug 9Ur5IzDKqV.TizenYouTube' exited with code 1. Stdout was: ''. Stderr was: 'closed '

which is not helpful since no idea what made the error.

So, this is a small tweak but maybe it would be slightly helpful the given package may not be debuggable:

Selenium::WebDriver::Error::SessionNotCreatedError: A new session could not be created. Details: Failed to launch 9Ur5IzDKqV.TizenYouTube as debug mode. It might not be debuggable. Original error: Command 'sdb -s 192.168.11.41\:26101 shell 0 debug 9Ur5IzDKqV.TizenYouTube' exited with code 1. Stdout was: ''. Stderr was: 'closed '
from SessionNotCreatedError: A new session could not be created. Details: Failed to launch 9Ur5IzDKqV.TizenYouTube as debug mode. It might not be debuggable. Original error: Command '/sdb -s 192.168.11.41\:26101 shell 0 debug 9Ur5IzDKqV.TizenYouTube' exited with code 1. Stdout was: ''. Stderr was: 'closed '