Unable to run test cases on iOS simulator Original error: Could not create simulator with name

Good morning,

I have completed the steps written to setup my Mac to run Katalon and use the iOS simulator. I do know that I found an issue with Katalon pointing the Appium directory to the incorrect location since we are using studio. I have noted that information on the post regarding the Appium directory. I found a similar issue in the directions for the WebDriverAgent. Below are the details on the setup as well as the error message I am receiving.

Please let me know what steps I can take to correct this issue. Also we will be using multiple Simulators and remote devices.

Thank you,
Paul

----------------------------------------------------------------------------------------------------

Katalon iOS error

Environment

XCode 9.4.1

Appium Studio 1.5.0

macOS Mojave Version 10.14

Katalon version 5.8.3

iOS device

iPAD 9.7 inch deviceOSVerison 11,4

Steps

  1. Completed the steps outlined in: https://docs.katalon.com/katalon-studio/docs/mobile-on-macos.htmlfor XCode, Command-line and Appium.

  2. Installed Appium Studio for the Appium step prior to the WebDriverAgent

  3. WebDriverAgent

a. Steps for Terminal show the directory as: cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent.

b. Directory for Appium Studio is: /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

c. Code was built and deployed to the Appium simulator.

  1. Created an iOS sample project and attempted to run the two test cases.

a. Error:

Test Cases/Verify the main list FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to start app at: ‘/Users/paulkanaris/Katalon Studio/PGK iOS Sample2.prj/App/Coffee Timer 2018-06-20 15-04-42/Coffee Timer-iPad Pro (9.7-inch).ipa’ (Root cause: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name ‘appiumTest-4fd85613-7394-4955-a9b0-8544f84dcb95’, device type id ‘iPad Pro’ and runtime id ‘11.4’. Reason: ‘simctl error running ‘create’: Invalid device type: iPad Pro’ (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 1.47 seconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘Pauls-MacBook-Pro.local’, ip: ‘fe80:0:0:0:1c27:d66a:88f2:b52c%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver)

  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 Script1530082286628.run(Script1530082286628.groovy:22)

  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.TestCaseMain.runTestCase(TestCaseMain.java:99)

  at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:90)

  at com.kms.katalon.core.main.TestCaseMain$runTestCase$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:149)

  at TempTestCase1540560917964.run(TempTestCase1540560917964.groovy:22)

  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)

)

Test Cases/Verify the main list.run:22

  1. Attempted to set the project settings for device as shown below:

a. Similar Error:

Test Cases/Verify the main list FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to start app at: ‘/Users/paulkanaris/Katalon Studio/PGK iOS Sample2.prj/App/Coffee Timer 2018-06-20 15-04-42/Coffee Timer-iPad Pro (9.7-inch).ipa’ (Root cause: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name ‘appiumTest-ee485e4f-aebe-4e4c-ad0b-d65951898018’, device type id ‘iPad Pro’ and runtime id ‘11.4’. Reason: ‘simctl error running ‘create’: Invalid device type: iPad Pro’ (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 482 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘Pauls-MacBook-Pro.local’, ip: ‘fe80:0:0:0:1c27:d66a:88f2:b52c%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver)

  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 Script1530082286628.run(Script1530082286628.groovy:22)

  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.TestCaseMain.runTestCase(TestCaseMain.java:99)

  at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:90)

  at com.kms.katalon.core.main.TestCaseMain$runTestCase$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:149)

  at TempTestCase1540565182341.run(TempTestCase1540565182341.groovy:22)

  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)

)

Test Cases/Verify the main list.run:22