Katalon CLI命令远程执行错误

时间:2018-06-21 13:11:24

标签: java katalon-studio remotecommand winrs

我正在尝试运行Katalon Remote生成的CLI命令。但我对此有误。

命令-

  

winrs -r:D:\ Katalon_Studio_Windows_64-5.4.2 \ katalon   -noSplash -runMode =控制台-projectPath =“ D:\ Automation \ QaAutomation.prj” -statusDelay = 5 -retry = 0 -testSuitePath =“ Test Suites / Collection / Members” -executionProfile =“ default” -browserType =“ Chrome”

错误-

Error occurred during initialization of VM
Could not reserve enough space for object heap
Uploading report to Katalon Analytics...
System is unable to send report to Katalon Analytics. Reason: java.lang.NullPointerException
        at com.kms.katalon.integration.analytics.report.AnalyticsReportIntegration.uploadTestSuiteResult(AnalyticsReport
Integration.java:40)
        at com.kms.katalon.execution.launcher.ReportableLauncher.uploadReportToIntegratingProduct(ReportableLauncher.jav
a:258)
        at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:78)
        at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)
        at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)
        at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)
        at java.lang.Thread.run(Thread.java:745)

Request sent successfully.

请帮助我吗?

或者有人可以建议我替代其他系统上的CLI命令吗?

我的目标是在PC1中设置诸如Jenkins或Bamboo的CI系统,并且当我在PC1中运行构建时,脚本应在PC2中运行

1 个答案:

答案 0 :(得分:1)

您的Java安装似乎有问题。

您需要使用-Xmx512M选项来增加Java VM的内存

请参阅此问题。它将为您提供更多帮助。 Java Could not reserve enough space for object heap error

从第二个问题开始,您可以通过几种方法来完成。最安全的方法是使jenkins ssh会话进入新计算机,并在该已记录的会话上运行命令(或使用从属服务器完成该工作)。请记住,您需要同时安装katalon Studio /目标浏览器和远程计算机上的测试代码。