移动到另一台计算机后无法执行 Katalon Studio 项目

Unable to execute Katalon Studio project after moved to another computer

我有一个 Katalon Studio 项目,将其复制到另一台计算机后无法运行。

它在执行过程中给出了以下错误信息:

SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Caught: java.lang.IllegalArgumentException: Cannot find test case 'Test Cases/Mycase'
java.lang.IllegalArgumentException: Cannot find test case 'Test Cases/Mycase'
    at com.kms.katalon.core.testcase.TestCaseFactory.findTestCase(TestCaseFactory.java:72)
    at com.kms.katalon.core.main.TestCaseExecutor.<init>(TestCaseExecutor.java:87)
    at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
    at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:97)
    at com.kms.katalon.core.main.TestCaseMain$runTestCase[=10=].call(Unknown Source)
    at TempTestCase1543911985430.run(TempTestCase1543911985430.groovy:22)

我在这两种情况下使用相同版本的 Katalon Studio。框架的路径只包含 unicode 字符。

尝试使用相对路径遍历文件系统。

不使用 'Test Cases/Mycase',而是使用

import com.kms.katalon.core.configuration.RunConfiguration
String myRelativePath = RunConfiguration.getProjectDir() + '/Test Cases/Mycase'

例如,不用

调用测试用例
WebUI.callTestCase(findTestCase('Test Cases/Mycase'), [:])

你会用

来称呼它
WebUI.callTestCase(findTestCase(myRelativePath), [:])

你能试试清理功能吗?

另一种选择是打开项目的文件夹位置,然后删除/bin 和/Libs