# Getting erroor while running and recording test cases

**URL:** <https://forum.katalon.com/t/getting-erroor-while-running-and-recording-test-cases/56475>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [July 9, 2021, 10:23am UTC](https://forum.katalon.com/t/getting-erroor-while-running-and-recording-test-cases/56475 "2021-07-09T10:23:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shehreen.mushtaq](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shehreen.mushtaq/32/16104_2.png) [@shehreen.mushtaq](https://forum.katalon.com/u/shehreen.mushtaq)\
**Post date:** [July 9, 2021, 10:23am UTC](https://forum.katalon.com/t/getting-erroor-while-running-and-recording-test-cases/56475/1 "2021-07-09T10:23:08Z")

</div>

Error while running previously recorded test cases

=============== ROOT CAUSE =====================  
Caused by: java.lang.reflect.InvocationTargetException

# For trouble shooting, please visit: [https://docs.katalon.com/katalon-studio/docs/troubleshooting.html](https://docs.katalon.com/katalon-studio/docs/troubleshooting.html)

07-09-2021 03:15:12 PM startApplication(“C:\Users\ShahreenMushtaq\Documents\SQA\zameen-no-1-property-search-and-real-estate-app\_3.7.0.1(111).apk”, true)

Elapsed time: 25.979s

Unable to start app at: ‘C:\Users\ShahreenMushtaq\Documents\SQA\zameen-no-1-property-search-and-real-estate-app\_3.7.0.1(111).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: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\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: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
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.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(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 Add Property without images.run(Add Property without images:20)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:369)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:360)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:339)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:331)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:248)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1625825708779.run(TempTestCase1625825708779.groovy:25)  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
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.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(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 Script1624446234153.run(Script1624446234153.groovy:20)  
… 11 more  
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\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)  
… 38 more  
)

Error while recording test cases

java.util.concurrent.ExecutionException: 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: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\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: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver  
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)  
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)  
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)  
Caused by: 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: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\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: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
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.(RemoteWebDriver.java:131)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:85)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(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.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:196)  
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)  
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)  
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)  
… 2 more  
Caused by: java.lang.reflect.InvocationTargetException  
at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)  
… 22 more  
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘LPT-SHEHREENMUS’, ip: ‘192.168.27.166’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver  
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.  
at getResponseForW3CError (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\ShahreenMushtaq\AppData\Roaming\npm\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)  
… 23 more
