We have released the first version of Jenkins Plugin for Katalon Studio. This plugin can download, deploy, and execute Katalon Studio on Jenkins servers automatically. Together with Docker-based deployment, we hope this plugin will help you apply continuous integration with Katalon Studio easily.
When I try to run the script, I get the following and the test does not execute:
Started by user MThurman
Building in workspace /Users/johnthurman/.jenkins/workspace/Product Compare
Retrieve Katalon Studio version: 5.10.1, OS: mac
Number of releases: 111
Katalon Studio is hosted at https://github.com/katalon-studio/katalon-studio/releases/download/v5.10.1/Katalon.Studio.dmg.
Downloading Katalon Studio from https://github.com/katalon-studio/katalon-studio/releases/download/v5.10.1/Katalon.Studio.dmg. It may take a few minutes. java.lang.IllegalStateException
at com.katalon.jenkins.plugin.KatalonUtils.downloadAndExtract(KatalonUtils.java:87)
at com.katalon.jenkins.plugin.KatalonUtils.getKatalonPackage(KatalonUtils.java:117)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioTask.perform(ExecuteKatalonStudioTask.java:67)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1810) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: SUCCESS
@Matt_Thurman@lexieqin Sorry for this issue. We forgot to mention in the documentation that support for macOS was not available in the first release. Version 1.0.3 with support for macOS is being published, and I will inform you when it is available.
@Matt_Thurman@lexieqin Support for macOS is now available. It only works with Katalon Studio version 5.10.1 or higher - if you want to use older versions let me know and I will upload them.
@devalex88 Hi thanks for your fix, I saw that the studio tool get downloaded during build successfully. However there is another problem is that since we didnāt include the path in the command, there is default path for the plugin to find my project. However it didnāt work as expected. It cannot locate my project. Can you please help?
Do you have an update on the macOS tutorial? We are beginning our process of setting up our pipeline for a mobile application. The build server is on macOS.
Jenkins build results in:
AppiumStartException: Appium directory is not set. Please set it in Window/Katalon Studio
Same happens when I run a Katalon test suite via cmd line (commands generated by Katalon).
When I execute the commands via cmd line from the Katalon install dir , tests do execute with success.
When executing from elsewhere (katalon home is on my PATH) I get the āAppium dir not setā error.
Iāve installed 1.0.8, restarted Jenkins.
The problem still exist.
Log:
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to start app at: āapp-debug.apkā (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Appium directory is not set. Please set it in Window/Katalon Studio Preferences/Katalon/Mobile.)
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 zoekPersoon.run(zoekPersoon:18)
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:328)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
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:149)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1554968506065.run(TempTestSuite1554968506065.groovy:36)