# Unable to run script on Kobiton device

**URL:** <https://forum.katalon.com/t/unable-to-run-script-on-kobiton-device/39152>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [January 28, 2020, 1:20pm UTC](https://forum.katalon.com/t/unable-to-run-script-on-kobiton-device/39152 "2020-01-28T13:20:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neha.dua.2](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@neha.dua.2](https://forum.katalon.com/u/neha.dua.2)\
**Post date:** [January 28, 2020, 1:20pm UTC](https://forum.katalon.com/t/unable-to-run-script-on-kobiton-device/39152/1 "2020-01-28T13:20:12Z")

</div>

I am trying to run script on Kobiton device but its throwing below error :  
I am done with integration of Kobiton with Katalon and also I have the apk name from Kobiton in startapp

Script :

import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase  
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData  
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject  
import internal.GlobalVariable as GlobalVariable  
import com.kms.katalon.core.configuration.RunConfiguration as RunConfiguration  
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile  
import com.kms.katalon.core.util.internal.PathUtil as PathUtil  
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI  
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS  
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint  
import com.kms.katalon.core.model.FailureHandling as FailureHandling  
import com.kms.katalon.core.testcase.TestCase as TestCase  
import com.kms.katalon.core.testdata.TestData as TestData  
import com.kms.katalon.core.testobject.TestObject as TestObject  
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint

Mobile.comment(‘Story: Verify correct alarm message’)

Mobile.comment(‘Given that user has started an application’)

‘Get full directory’s path of android application’  
‘def appPath = PathUtil.relativeToAbsolutePath(GlobalVariable.G\_AndroidApp, RunConfiguration.getProjectDir())’

Mobile.startApplication(‘kobiton-store:50025’, true)

Mobile.comment(‘And he navigates the application to Activity form’)

Mobile.tap(findTestObject(‘Application/android.widget.TextView - App’), 10)

Mobile.tap(findTestObject(‘Application/App/android.widget.TextView-Activity’), 10)

Mobile.comment(‘When he taps on the Custom Dialog button’)

Mobile.tap(findTestObject(‘Application/App/Activity/android.widget.TextView-Custom Dialog’), 10)

‘Get displayed message on the dialog’  
def message = Mobile.getText(findTestObject(‘Application/App/Activity/Custom Dialog/android.widget.TextViewCustomDialog’),  
10)

Mobile.comment(‘Then the correct dialog message should be displayed’)

Mobile.verifyEqual(message, ‘Example of how you can use a custom Theme.Dialog theme to make an activity that looks like a customized dialog, here with an ugly frame.’)

Mobile.closeApplication()

ERROR :

01-28-2020 06:43:08 PM - [START] - Start Test Suite : Test Suites/Regression Tests  
01-28-2020 06:43:09 PM - [RUN\_DATA] - Logging run data ‘hostName’ with value ‘AH0161759 - [AINLH5CG8153XM0.hewitt.com](http://AINLH5CG8153XM0.hewitt.com)’  
01-28-2020 06:43:09 PM - [RUN\_DATA] - Logging run data ‘os’ with value ‘Windows 7 64bit’  
01-28-2020 06:43:09 PM - [RUN\_DATA] - Logging run data ‘hostAddress’ with value ‘192.168.0.105’  
01-28-2020 06:43:09 PM - [RUN\_DATA] - Logging run data ‘katalonVersion’ with value ‘5.7.1.1’  
01-28-2020 06:43:10 PM - [START] - Start Test Case : Test Cases/Verify Correct Alarm Message  
01-28-2020 06:43:10 PM - [INFO] - Evaluating variables for test case  
01-28-2020 06:43:11 PM - [START] - Start action : comment  
01-28-2020 06:43:11 PM - [INFO] - Story: Verify correct alarm message  
01-28-2020 06:43:11 PM - [END] - End action : comment  
01-28-2020 06:43:11 PM - [START] - Start action : comment  
01-28-2020 06:43:11 PM - [INFO] - Given that user has started an application  
01-28-2020 06:43:11 PM - [END] - End action : comment  
01-28-2020 06:43:11 PM - [START] - Start action : Comment - “Get full directory’s path of android application”  
01-28-2020 06:43:11 PM - [END] - End action : Comment - “Get full directory’s path of android application”  
01-28-2020 06:43:11 PM - [START] - Start action : startApplication  
01-28-2020 06:43:11 PM - [INFO] - Starting app at: ‘kobiton-store:50025’  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘acceptSslCerts’, ‘true’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘sessionDescription’, ‘’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘platformVersion’, ‘7.0’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘sessionName’, ‘Automation test session’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘captureSreenShots’, ‘true’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘deviceOrientation’, ‘portrait’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘platformName’, ‘Android’]  
01-28-2020 06:43:11 PM - [INFO] - User set preference: [‘deviceName’, ‘Galaxy A8(2016)’]  
01-28-2020 06:43:16 PM - [RUN\_DATA] - Logging run data ‘deviceId’ with value ‘null’  
01-28-2020 06:43:16 PM - [RUN\_DATA] - Logging run data ‘deviceName’ with value ‘Galaxy A8(2016)’  
01-28-2020 06:43:16 PM - [RUN\_DATA] - Logging run data ‘deviceModel’ with value ‘null’  
01-28-2020 06:43:16 PM - [RUN\_DATA] - Logging run data ‘deviceManufacturer’ with value ‘null’  
01-28-2020 06:43:16 PM - [RUN\_DATA] - Logging run data ‘deviceOS’ with value ‘Android’  
01-28-2020 06:43:16 PM - [RUN\_DATA] - Logging run data ‘deviceOSVersion’ with value ‘7.0’  
01-28-2020 06:43:16 PM - [FAILED] - Unable to start app at: ‘kobiton-store:50025’ (Root cause: org.openqa.selenium.SessionNotCreatedException: No device matching the desired capabilities  
Command duration or timeout: 1.31 seconds  
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’  
System info: host: ‘AINLH5CG8153XM0’, ip: ‘192.168.0.105’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver)  
01-28-2020 06:43:16 PM - [FAILED] - Test Cases/Verify Correct Alarm Message FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to start app at: ‘kobiton-store:50025’ (Root cause: org.openqa.selenium.SessionNotCreatedException: No device matching the desired capabilities  
Command duration or timeout: 1.31 seconds  
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’  
System info: host: ‘AINLH5CG8153XM0’, ip: ‘192.168.0.105’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0\_181’  
Driver info: driver.version: SwipeableAndroidDriver)  
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)  
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:53)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)  
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)  
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)  
at Script1529986178839.run(Script1529986178839.groovy:24)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:183)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:108)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:294)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:285)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:264)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:256)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:200)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)  
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)  
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:142)  
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)  
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)  
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)  
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)  
at TempTestSuite1580217182708.run(TempTestSuite1580217182708.groovy:36)  
at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:263)  
at groovy.lang.GroovyShell.run(GroovyShell.java:518)  
at groovy.lang.GroovyShell.run(GroovyShell.java:507)  
at groovy.ui.GroovyMain.processOnce(GroovyMain.java:653)  
at groovy.ui.GroovyMain.run(GroovyMain.java:384)  
at groovy.ui.GroovyMain.process(GroovyMain.java:370)  
at groovy.ui.GroovyMain.processArgs(GroovyMain.java:129)  
at groovy.ui.GroovyMain.main(GroovyMain.java:109)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)  
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)  
)  
01-28-2020 06:43:16 PM - [END] - End action : startApplication  
01-28-2020 06:43:16 PM - [END] - End Test Case : Test Cases/Verify Correct Alarm Message  
01-28-2020 06:43:16 PM - [END] - End Test Suite : Test Suites/Regression Tests  
Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook  
Picked up \_JAVA\_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:“C:\Program Files (x86)\HP\Unified Functional Testing\bin\java\_shared\classes”;“C:\Program Files (x86)\HP\Unified Functional Testing\bin\java\_shared\classes\jasmine.jar”  
Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook
