Unable to run test cases on Android Virtual Device

Hi guys,

I have been trying to run my test cases on an Android Virtual Device created via Android Studio. I am always getting “Unable to start application on this device: :An unknown server-side error occurred while processing the command. Original error: Command ‘…’”

The same test cases work for my actual device which is a One plus 6, and I do not face any such issues. I have downgraded my Appium version from 1.8.1 to 1.6.5. Please find attached the screenshot with detailed error info.

Please help me to get it working for my android virtual devices.

EDIT:- The above screenshot was for “Record Mobile”. While attempting to run the demo mobile script from Katalon on the Android Virtual Device I am getting the following error:-

"10-30-2018 03:19:58 PM - [START] - Start Test Suite : Test Suites/TS_RegressionTest

10-30-2018 03:20:00 PM - [RUN_DATA] - Logging run data ‘hostName’ with value ‘a1001362 - AINDLPB019WRY.hewitt.com

10-30-2018 03:20:00 PM - [RUN_DATA] - Logging run data ‘os’ with value ‘Windows 7 64bit’

10-30-2018 03:20:00 PM - [RUN_DATA] - Logging run data ‘hostAddress’ with value ‘10.209.153.171’

10-30-2018 03:20:00 PM - [RUN_DATA] - Logging run data ‘katalonVersion’ with value ‘5.4.2.1’

10-30-2018 03:20:08 PM - [START] - Start Test Case : Test Cases/TC01_Verify Correct Alarm Message

10-30-2018 03:20:08 PM - [INFO] - Evaluating variables for test case

10-30-2018 03:20:09 PM - [START] - Start action : comment

10-30-2018 03:20:09 PM - [INFO] - Story: Verify correct alarm message

10-30-2018 03:20:09 PM - [END] - End action : comment

10-30-2018 03:20:09 PM - [START] - Start action : comment

10-30-2018 03:20:09 PM - [INFO] - Given that user has started an application

10-30-2018 03:20:09 PM - [END] - End action : comment

10-30-2018 03:20:09 PM - [START] - Start action : Statement - appPath = com.kms.katalon.core.util.internal.PathUtil.relativeToAbsolutePath(G_AndroidApp, com.kms.katalon.core.configuration.RunConfiguration.getProjectDir())

10-30-2018 03:20:09 PM - [END] - End action : Statement - appPath = com.kms.katalon.core.util.internal.PathUtil.relativeToAbsolutePath(G_AndroidApp, com.kms.katalon.core.configuration.RunConfiguration.getProjectDir())

10-30-2018 03:20:09 PM - [START] - Start action : startApplication

10-30-2018 03:20:11 PM - [INFO] - Starting app at: ‘C:\Users\A1001362\Katalon Studio\abc\androidapp\APIDemos.apk’

10-30-2018 03:20:11 PM - [INFO] - User set preference: [‘skipUnlock’, ‘true’]

10-30-2018 03:20:11 PM - [INFO] - User set preference: [’–session-override’, ‘true’]

10-30-2018 03:20:11 PM - [INFO] - User set preference: [‘deviceId’, ‘emulator-5554’]

10-30-2018 03:20:48 PM - [FAILED] - Unable to start app at: ‘C:\Users\A1001362\Katalon Studio\abc\androidapp\APIDemos.apk’ (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Fail to start Appium server in 30 seconds)

10-30-2018 03:20:48 PM - [END] - End action : startApplication

10-30-2018 03:20:48 PM - [END] - End Test Case : Test Cases/TC01_Verify Correct Alarm Message

10-30-2018 03:20:48 PM - [FAILED] - Test Cases/TC01_Verify Correct Alarm Message FAILED because (of) Unable to start app at: ‘C:\Users\A1001362\Katalon Studio\abc\androidapp\APIDemos.apk’ (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Fail to start Appium server in 30 seconds)

10-30-2018 03:20:48 PM - [START] - Start Test Case : Test Cases/TC02_Verify Last Items In List

10-30-2018 03:20:48 PM - [INFO] - Evaluating variables for test case

10-30-2018 03:20:49 PM - [START] - Start action : comment

10-30-2018 03:20:49 PM - [INFO] - Story: Verify correct alarm message

10-30-2018 03:20:49 PM - [END] - End action : comment

10-30-2018 03:20:49 PM - [START] - Start action : comment

10-30-2018 03:20:49 PM - [INFO] - Given that user has started an application

10-30-2018 03:20:49 PM - [END] - End action : comment

10-30-2018 03:20:49 PM - [START] - Start action : Statement - appPath = com.kms.katalon.core.util.internal.PathUtil.relativeToAbsolutePath(G_AndroidApp, com.kms.katalon.core.configuration.RunConfiguration.getProjectDir())

10-30-2018 03:20:49 PM - [END] - End action : Statement - appPath = com.kms.katalon.core.util.internal.PathUtil.relativeToAbsolutePath(G_AndroidApp, com.kms.katalon.core.configuration.RunConfiguration.getProjectDir())

10-30-2018 03:20:49 PM - [START] - Start action : startApplication

10-30-2018 03:20:49 PM - [INFO] - Starting app at: ‘C:\Users\A1001362\Katalon Studio\abc\androidapp\APIDemos.apk’

10-30-2018 03:20:49 PM - [INFO] - User set preference: [‘skipUnlock’, ‘true’]

10-30-2018 03:20:49 PM - [INFO] - User set preference: [’–session-override’, ‘true’]

10-30-2018 03:20:49 PM - [INFO] - User set preference: [‘deviceId’, ‘emulator-5554’]

10-30-2018 03:21:20 PM - [FAILED] - Unable to start app at: ‘C:\Users\A1001362\Katalon Studio\abc\androidapp\APIDemos.apk’ (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Fail to start Appium server in 30 seconds)

10-30-2018 03:21:20 PM - [END] - End action : startApplication

10-30-2018 03:21:20 PM - [FAILED] - Test Cases/TC02_Verify Last Items In List FAILED because (of) Unable to start app at: ‘C:\Users\A1001362\Katalon Studio\abc\androidapp\APIDemos.apk’ (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Fail to start Appium server in 30 seconds)

10-30-2018 03:21:20 PM - [END] - End Test Case : Test Cases/TC02_Verify Last Items In List

10-30-2018 03:21:22 PM - [END] - End Test Suite : Test Suites/TS_RegressionTest

"

10-30-2018 2-14-16 PM.png