Runtime Engine install apk and uninstall it on startApplication on Android TV

Runtime Engine install apk and uninstall it in one code line on Android TV
Mobile.startApplication(path, uninstall)
Visually, I see my app installed and launched BUT after somes seconds the app is uninstalled so my TestSuite will fail all TestCase because “App is not installed”

Please let us know what you are using Katalon Studio for?

  1. I have currently applied Katalon Studio in my project

How would your work be affected if this issue has not been resolved?

  1. I cannot continue my job and have to work on something else while awaiting your response

Operating System

  • macOS Catalina 10.15.7

Katalon Studio Version

Runtime Engine 7.9.1
Studio working without bug

Katalon Studio logs

e[35m[ADB]e[39m The installation of 'kowa-tv.apk' took 4854ms
e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 4.17.4

e[35m[UiAutomator2]e[39m Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online...
e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 10.4.1.2:5555 - 20210304_124726
.......................................................................9/20(45%)
--------------------------------------------------------------------------------


e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m Determined the downstream protocol as 'W3C'

e[35m[AndroidDriver]e[39m Screen already unlocked, doing nothing
e[35m[UiAutomator2]e[39m Starting 'be.vootvplus.app.test/voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity and waiting for 'be.vootvplus.app.test/voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity'


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 10.4.1.2:5555 - 20210304_124726
......................................................................10/20(50%)
--------------------------------------------------------------------------------


e[35m[ADB]e[39m be.vootvplus.app.test was successfully uninstalled
e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration

Screenshots / Videos

More logs
2021-03-04 12:47:31.661 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - Test Cases/Kowa/Tv/Login/LoginWithoutEmail | Live/PlayLiveChannelFromEpg,Live/PlayLiveChannelFromLiveScreen,MainMenu/BrowseMainMenuTestCase,Vod/PlayTrailer,Vod/PlayVod,Wishlist/AddRemoveWishlist,VodCatalog/BrowseVodCatalog

2021-03-04 12:47:31.678 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - App start native

2021-03-04 12:47:31.748 INFO  c.k.k.c.m.k.i.MobileDriverFactory        - User set preference: ['webDriverAgentUrl', 'null']

2021-03-04 12:47:31.748 INFO  c.k.k.c.m.k.i.MobileDriverFactory        - User set preference: ['noReset', 'null']

2021-03-04 12:47:32.502 INFO  c.k.k.c.a.driver.AppiumDriverManager     - Appium server started on port 56.101

e[35m[Appium]e[39m Welcome to Appium v1.20.2
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m   port: 56101
e[35m[Appium]e[39m   loglevel: info
e[35m[Appium]e[39m   tmpDir: /var/folders/9t/vkjpbzhn5357bjnmyc3k_dmw0000gn/T//Katalon/Appium/Temp1614858451750
e[35m[Appium]e[39m   chromedriverPort: 56102
e[35m[Appium]e[39m Deprecated server args:

e[35m[Appium]e[39m   e[31m--chromedriver-porte[39m => --default-capabilities
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m   chromedriverPort: 56102
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:56101
e[35m[HTTP]e[39m e[37m-->e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m3 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m-->e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m

e[35m[HTTP]e[39m e[90m{"desiredCapabilities":{"app":"/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_5813_develop_04-03-2021T12_46_nvidia_ip_shield_DynamicTestSuite_5813/git/Apps/Android/kowa-tv.apk","noReset":false,"deviceName":"NVIDIA SHIELD Android TV (Android 9)","fullReset":true,"platform":"ANDROID","newCommandTimeout":1800,"platformVersion":"9","automationName":"uiautomator2","autoGrantPermissions":true,"platformName":"Android","udid":"10.4.1.2:5555","systemPort":56100},"capabilities":{"firstMatch":[{"appium:app":"/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_5813_develop_04-03-2021T12_46_nvidia_ip_shield_DynamicTestSuite_5813/git/Apps/Android/kowa-tv.apk","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:deviceName":"NVIDIA SHIELD Android TV (Android 9)","appium:fullReset":true,"appium:newCommandTimeout":1800,"appium:noReset":false,"platform":"ANDROID","...e[39m
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:

e[35m[BaseDriver]e[39m   platform
e[35m[BaseDriver]e[39m   chromedriverPort

e[35m[Appium]e[39m Appium v1.20.2 creating new AndroidUiautomator2Driver (v1.61.2) session
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[BaseDriver]e[39m   platform
e[35m[BaseDriver]e[39m Session created with session id: 0efe3875-6847-4017-940b-7a5668c6f188

e[35m[BaseDriver]e[39m Using local app '/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_5813_develop_04-03-2021T12_46_nvidia_ip_shield_DynamicTestSuite_5813/git/Apps/Android/kowa-tv.apk'
e[35m[ADB]e[39m Found 1 'build-tools' folders under '/Users/vta/.katalon/tools/android_sdk' (newest first):
e[35m[ADB]e[39m     /Users/vta/.katalon/tools/android_sdk/build-tools/29.0.3
e[35m[ADB]e[39m Using 'adb' from '/Users/vta/.katalon/tools/android_sdk/platform-tools/adb'
e[35m[AndroidDriver]e[39m Retrieving device list
e[35m[AndroidDriver]e[39m Using device: 10.4.1.2:5555
e[35m[ADB]e[39m Using 'adb' from '/Users/vta/.katalon/tools/android_sdk/platform-tools/adb'
e[35m[ADB]e[39m Getting device platform version
e[35m[UiAutomator2]e[39m Relaxing hidden api policy
e[35m[ADB]e[39m Package name: 'be.vootvplus.app.test'
e[35m[ADB]e[39m Main activity name: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity'
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' will not be cached, because the device under test has confirmed the support of streamed installs
e[35m[ADB]e[39m The installation of 'settings_apk-debug.apk' took 422ms

e[35m[ADB]e[39m Using 'apksigner.jar' from '/Users/vta/.katalon/tools/android_sdk/build-tools/29.0.3/lib/apksigner.jar'
e[35m[ADB]e[39m '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' is signed with the default certificate


e[35m[ADB]e[39m '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate

e[35m[UiAutomator2]e[39m Server packages are going to be (re)installed
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' will not be cached, because the device under test has confirmed the support of streamed installs
e[35m[ADB]e[39m The installation of 'appium-uiautomator2-server-v4.17.4.apk' took 488ms
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' will not be cached, because the device under test has confirmed the support of streamed installs

e[35m[ADB]e[39m The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 396ms
e[35m[ADB]e[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist

e[35m[ADB]e[39m '/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_5813_develop_04-03-2021T12_46_nvidia_ip_shield_DynamicTestSuite_5813/git/Apps/Android/kowa-tv.apk' is signed with a non-default certificate
e[35m[ADB]e[39m be.vootvplus.app.test was not uninstalled, because it was not present on the device

e[35m[ADB]e[39m The application at '/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_5813_develop_04-03-2021T12_46_nvidia_ip_shield_DynamicTestSuite_5813/git/Apps/Android/kowa-tv.apk' will not be cached, because the device under test has confirmed the support of streamed installs

e[35m[ADB]e[39m The installation of 'kowa-tv.apk' took 4854ms
e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 4.17.4

e[35m[UiAutomator2]e[39m Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online...
e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 10.4.1.2:5555 - 20210304_124726
.......................................................................9/20(45%)
--------------------------------------------------------------------------------


e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m Determined the downstream protocol as 'W3C'

e[35m[AndroidDriver]e[39m Screen already unlocked, doing nothing
e[35m[UiAutomator2]e[39m Starting 'be.vootvplus.app.test/voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity and waiting for 'be.vootvplus.app.test/voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity'


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 10.4.1.2:5555 - 20210304_124726
......................................................................10/20(50%)
--------------------------------------------------------------------------------


e[35m[ADB]e[39m be.vootvplus.app.test was successfully uninstalled
e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration


2021-03-04 12:48:10.144 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceId = 10.4.1.2:5555

2021-03-04 12:48:10.144 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceName = NVIDIA SHIELD Android TV (Android 9)

2021-03-04 12:48:10.144 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceModel = SHIELD Android TV

2021-03-04 12:48:10.144 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceManufacturer = NVIDIA

2021-03-04 12:48:10.144 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceOS = Android

2021-03-04 12:48:10.144 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceOSVersion = 9

2021-03-04 12:48:10.310 ERROR c.k.k.core.keyword.internal.KeywordMain  - ❌ Unable to start app at: 'Apps/Android/kowa-tv.apk' (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-mini-de-Voo.local', ip: 'fe80:0:0:0:4bd:1f49:cbe6:6fee%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-mini-de-Voo.local', ip: 'fe80:0:0:0:4bd:1f49:cbe6:6fee%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'
Driver info: driver.version: SwipeableAndroidDriver
	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
	at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)

	at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:85)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.<init>(SwipeableAndroidDriver.java:24)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:498)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:539)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:452)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)

	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:77)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
	at toolbox.session.App.start(App.groovy:82)
	at toolbox.session.App$start$0.call(Unknown Source)
	at toolbox.session.App.start(App.groovy:76)
	at toolbox.session.App$start.call(Unknown Source)
	at AppListener.sampleBeforeTestCase(AppListener.groovy:81)

	at AppListener.invokeMethod(AppListener.groovy)
	at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.java:111)
	at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:95)
	at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods(TestHooker.java:94)
	at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3(TestListenerCollector.java:88)
	at com.kms.katalon.core.context.internal.TestListenerCollector.handleListenerEvent(TestListenerCollector.java:85)
	at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent(ExecutionEventManager.java:36)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:234)

	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:203)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:152)
	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:95)
	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
	at TempTestSuite1614858446595.run(TempTestSuite1614858446595.groovy:39)
Caused by: java.lang.reflect.InvocationTargetException

	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
	... 44 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-mini-de-Voo.local', ip: 'fe80:0:0:0:4bd:1f49:cbe6:6fee%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'

Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)

	at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
	... 45 more
)

2021-03-04 12:48:10.314 ERROR c.k.k.core.context.internal.TestHooker   - ❌ com.kms.katalon.core.exception.StepFailedException: Unable to start app at: 'Apps/Android/kowa-tv.apk' (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-mini-de-Voo.local', ip: 'fe80:0:0:0:4bd:1f49:cbe6:6fee%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-mini-de-Voo.local', ip: 'fe80:0:0:0:4bd:1f49:cbe6:6fee%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'
Driver info: driver.version: SwipeableAndroidDriver
	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)

	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
	at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
	at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:85)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.<init>(SwipeableAndroidDriver.java:24)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:498)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:539)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:452)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:77)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
	at toolbox.session.App.start(App.groovy:82)
	at toolbox.session.App$start$0.call(Unknown Source)
	at toolbox.session.App.start(App.groovy:76)
	at toolbox.session.App$start.call(Unknown Source)
	at AppListener.sampleBeforeTestCase(AppListener.groovy:81)
	at AppListener.invokeMethod(AppListener.groovy)
	at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.java:111)
	at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:95)
	at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods(TestHooker.java:94)
	at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3(TestListenerCollector.java:88)
	at com.kms.katalon.core.context.internal.TestListenerCollector.handleListenerEvent(TestListenerCollector.java:85)
	at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent(ExecutionEventManager.java:36)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:234)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:203)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:152)

	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:95)

	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
	at TempTestSuite1614858446595.run(TempTestSuite1614858446595.groovy:39)
Caused by: java.lang.reflect.InvocationTargetException
	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
	... 44 more

Some news ?

@duyluong any news, this bug blocking our development

Bug still exist in 8.0.1

Logs
2021-06-03 09:06:42.377 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2021-06-03 09:06:42.377 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/Kowa/Tv/Login/LoginWithoutEmail

2021-06-03 09:06:42.382 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - #Katalira TCStart : Test Cases/Kowa/Tv/Login/LoginWithoutEmail

2021-06-03 09:06:42.384 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - Test Cases/Kowa/Tv/Login/LoginWithoutEmail | Live/PlayLiveChannelFromEpg,Live/PlayLiveChannelFromLiveScreen,MainMenu/BrowseMainMenuTestCase,Vod/PlayTrailer,Vod/PlayVod,Wishlist/AddRemoveWishlist,VodCatalog/BrowseVodCatalog

2021-06-03 09:06:42.414 INFO  c.k.k.c.keyword.builtin.CommentKeyword   - App start native

2021-06-03 09:06:42.483 INFO  c.k.k.c.m.k.i.MobileDriverFactory        - User set preference: ['webDriverAgentUrl', 'null']

2021-06-03 09:06:42.483 INFO  c.k.k.c.m.k.i.MobileDriverFactory        - User set preference: ['noReset', 'null']

2021-06-03 09:06:43.574 INFO  c.k.k.c.a.driver.AppiumDriverManager     - Appium server started on port 60.269

e[35m[Appium]e[39m Welcome to Appium v1.20.2
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m   port: 60269

e[35m[Appium]e[39m   loglevel: info
e[35m[Appium]e[39m   tmpDir: /var/folders/9t/vkjpbzhn5357bjnmyc3k_dmw0000gn/T//Katalon/Appium/Temp1622704002484
e[35m[Appium]e[39m   chromedriverPort: 60271
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m   e[31m--chromedriver-porte[39m => --default-capabilities
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m   chromedriverPort: 60271
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:60269
e[35m[HTTP]e[39m e[37m-->e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m4 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m

e[35m[HTTP]e[39m e[37m-->e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m

e[35m[HTTP]e[39m e[90m{"desiredCapabilities":{"app":"/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_6470_develop_03-06-2021T09_05_xiaomi_mi_box_DynamicTestSuite_6470/git/Apps/Android/kowa-tv.apk","noReset":false,"deviceName":"Xiaomi MIBOX4 (Android 9)","fullReset":true,"platform":"ANDROID","newCommandTimeout":1800,"platformVersion":"9","automationName":"uiautomator2","autoGrantPermissions":true,"platformName":"Android","udid":"18554281638192","systemPort":60268},"capabilities":{"firstMatch":[{"appium:app":"/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_6470_develop_03-06-2021T09_05_xiaomi_mi_box_DynamicTestSuite_6470/git/Apps/Android/kowa-tv.apk","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:deviceName":"Xiaomi MIBOX4 (Android 9)","appium:fullReset":true,"appium:newCommandTimeout":1800,"appium:noReset":false,"platform":"ANDROID","platformName":"android","ap...e[39m
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:
e[35m[BaseDriver]e[39m   platform
e[35m[BaseDriver]e[39m   chromedriverPort
e[35m[Appium]e[39m Appium v1.20.2 creating new AndroidUiautomator2Driver (v1.61.2) session
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[BaseDriver]e[39m   platform
e[35m[BaseDriver]e[39m Session created with session id: 89d3cfac-1e23-4b81-a481-05308a7293ec
e[35m[BaseDriver]e[39m Using local app '/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_6470_develop_03-06-2021T09_05_xiaomi_mi_box_DynamicTestSuite_6470/git/Apps/Android/kowa-tv.apk'
e[35m[ADB]e[39m Found 1 'build-tools' folders under '/Users/vta/.katalon/tools/android_sdk' (newest first):
e[35m[ADB]e[39m     /Users/vta/.katalon/tools/android_sdk/build-tools/29.0.3
e[35m[ADB]e[39m Using 'adb' from '/Users/vta/.katalon/tools/android_sdk/platform-tools/adb'
e[35m[AndroidDriver]e[39m Retrieving device list
e[35m[AndroidDriver]e[39m Using device: 18554281638192
e[35m[ADB]e[39m Using 'adb' from '/Users/vta/.katalon/tools/android_sdk/platform-tools/adb'
e[35m[ADB]e[39m Getting device platform version
e[35m[UiAutomator2]e[39m Relaxing hidden api policy

e[35m[ADB]e[39m Package name: 'be.vootvplus.app.test'
e[35m[ADB]e[39m Main activity name: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity'
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' will not be cached, because the device under test has confirmed the support of streamed installs

e[35m[ADB]e[39m The installation of 'settings_apk-debug.apk' took 1420ms

e[35m[ADB]e[39m Using 'apksigner.jar' from '/Users/vta/.katalon/tools/android_sdk/build-tools/29.0.3/lib/apksigner.jar'

e[35m[ADB]e[39m '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' is signed with the default certificate

e[35m[ADB]e[39m '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
e[35m[UiAutomator2]e[39m Server packages are going to be (re)installed
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' will not be cached, because the device under test has confirmed the support of streamed installs

e[35m[ADB]e[39m The installation of 'appium-uiautomator2-server-v4.17.4.apk' took 3121ms
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' will not be cached, because the device under test has confirmed the support of streamed installs


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 18554281638192 - 20210603_09063
5......................................................................5/18(28%)
--------------------------------------------------------------------------------


e[35m[ADB]e[39m The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 12007ms

e[35m[ADB]e[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist

e[35m[ADB]e[39m '/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_6470_develop_03-06-2021T09_05_xiaomi_mi_box_DynamicTestSuite_6470/git/Apps/Android/kowa-tv.apk' is signed with a non-default certificate

e[35m[ADB]e[39m be.vootvplus.app.test was successfully uninstalled
e[35m[ADB]e[39m The application at '/Users/vta/Documents/tapptic/server_v2/voo-test-automation-server/tests/project/kowa_tv/DynamicTestSuite/Android_Tv_6470_develop_03-06-2021T09_05_xiaomi_mi_box_DynamicTestSuite_6470/git/Apps/Android/kowa-tv.apk' will not be cached, because the device under test has confirmed the support of streamed installs


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 18554281638192 - 20210603_09063
5......................................................................8/18(44%)
--------------------------------------------------------------------------------


e[35m[ADB]e[39m The installation of 'kowa-tv.apk' took 12771ms
e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 4.17.4
e[35m[UiAutomator2]e[39m Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online...
e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 18554281638192 - 20210603_09063
5......................................................................8/18(44%)
--------------------------------------------------------------------------------


e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m Determined the downstream protocol as 'W3C'
e[35m[AndroidDriver]e[39m Screen already unlocked, doing nothing

e[35m[UiAutomator2]e[39m Starting 'be.vootvplus.app.test/voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity and waiting for 'be.vootvplus.app.test/voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity'


--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 18554281638192 - 20210603_09063
5......................................................................8/18(44%)
--------------------------------------------------------------------------------



--------------------------------------------------------------------------------
Test Suites/Kowa/Tv/DynamicTestSuite - Android - 18554281638192 - 20210603_09063
5......................................................................8/18(44%)
--------------------------------------------------------------------------------


e[35m[ADB]e[39m be.vootvplus.app.test was successfully uninstalled
e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration

2021-06-03 09:08:02.379 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceId = 18554281638192

2021-06-03 09:08:02.380 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceName = Xiaomi MIBOX4 (Android 9)

2021-06-03 09:08:02.381 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceModel = MIBOX4
2021-06-03 09:08:02.381 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceManufacturer = Xiaomi

2021-06-03 09:08:02.381 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceOS = Android
2021-06-03 09:08:02.381 INFO  c.k.k.c.a.driver.AppiumDriverManager     - deviceOSVersion = 9

2021-06-03 09:08:02.517 ERROR c.k.k.core.keyword.internal.KeywordMain  - ❌ Unable to start app at: 'Apps/Android/kowa-tv.apk' (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'be.vootvplus.app.test' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: 'voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' or 'be.vootvplus.app.test.voomotion.voo.be.voo_mobile.ui.splashscreen.SplashScreenActivity' never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-mini-de-Voo.local', ip: 'fe80:0:0:0:1c8e:3282:8383:5ef7%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '1.8.0_275'

Still exist in 8.2.0

Logs

[35m[ADB]e[39m The installation of ‘app-tv.apk’ took 5880ms
e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 4.17.4
e[35m[UiAutomator2]e[39m Using UIAutomator2 server from ‘/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.17.4.apk’ and test from ‘/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’
e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online…

e[35m[WD Proxy]e[39m socket hang up


Test Suites/Domain/Tv/DynamicTestSuite - Android - 10.4.1.6:5555 - 20220104_085158
…6/34(18%)

e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m socket hang up

e[35m[WD Proxy]e[39m Determined the downstream protocol as ‘W3C’

e[35m[AndroidDriver]e[39m Screen already unlocked, doing nothing
e[35m[UiAutomator2]e[39m Starting 'domain.app.test/domain.app.ui.splashscreen.SplashScreenActivity and waiting for ‘domain.app.test/domain.app.ui.splashscreen.SplashScreenActivity’


Test Suites/Domain/Tv/DynamicTestSuite - Android - 10.4.1.6:5555 - 20220104_085158
…9/34(26%)

2022-01-04 08:52:46.655 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceId = 10.4.1.6:5555

2022-01-04 08:52:46.656 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceName = NVIDIA SHIELD Android TV (Android 9)

2022-01-04 08:52:46.656 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceModel = SHIELD Android TV

2022-01-04 08:52:46.656 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceManufacturer = NVIDIA

2022-01-04 08:52:46.656 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceOS = Android

2022-01-04 08:52:46.657 INFO c.k.k.c.a.driver.AppiumDriverManager - deviceOSVersion = 9


Test Suites/Domain/Tv/DynamicTestSuite - Android - 10.4.1.6:5555 - 20220104_085158
…9/34(26%)

e[35m[ADB]e[39m domain.app.test was successfully uninstalled
e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration

e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m40858 ms - 1505e[39m
e[35m[HTTP]e[39m e[90me[39m

2022-01-04 08:52:47.561 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to start app at: ‘Apps/Android/app-tv.apk’ (Root cause: org.openqa.selenium.SessionNotCreatedException:
Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot start the ‘domain.app.test’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: ‘domain.app.ui.splashscreen.SplashScreenActivity’ or ‘domain.app.test.domain.app.ui.splashscreen.SplashScreenActivity’ never started. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting

Missing appPackage and appActivity for TV device, previously not require

Oh man, you are building an app for TV on Android. I would love to see it, its really a need, nowadays there no free apps to watch tv online. I hope you will add sports live telecast channels as well to watch sports online anytime.
Best of Luck!

1 Like

Want to know more…

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.