代码之家  ›  专栏  ›  技术社区  ›  plaidshirt

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

  •  1
  • plaidshirt  · 技术社区  · 7 年前

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

    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$0.call(Unknown Source)
        at TempTestCase1543911985430.run(TempTestCase1543911985430.groovy:22)
    

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

    2 回复  |  直到 5 年前
        1
  •  4
  •   Tony Bui    7 年前

    你能试试清理功能吗? enter image description here

    enter image description here

        2
  •  1
  •   Mate MrÅ¡e    7 年前

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

    不要使用“testcases/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), [:])
    
    推荐文章