空手道机器人错误:com.intuit.karate.StringUtils.split(Ljava/lang/String;CZ)Ljava/util/List;

问题描述

我正在尝试使用 karate-robot 将文件上传到 vaadin-upload 组件并收到此错误: com.intuit.karate.StringUtils.split(Ljava/lang/String;CZ)Ljava/util/List;

这是日志中的消息:

16:46:14.443 [1618271174442] DEBUG com.intuit.karate - command: [osascript,-e,tell application "System Events"
    set procs to (processes whose background only is false)
    set results to {}
    repeat with n from 1 to the length of procs
      set p to item n of procs
      set entry to { name of p as text,"|"}
      set end of results to entry
    end repeat
  end tell
  results]
16:46:15.240 [1618271174442] DEBUG com.intuit.karate - Safari,|,Google Chrome,Cisco AnyConnect Secure mobility Client,Microsoft Outlook,BlueJeans,Terminal,TextEdit,Bbedit,Notes,Calendar,idea,Microsoft Excel,Microsoft PowerPoint,Microsoft Word,Postman,Finder,Mattermost,Electron,Teams,Spotify,firefox-bin,java,|
16:46:15.242 [1618271174442] DEBUG com.intuit.karate.shell.Command - command complete,exit code: 0 - [osascript,"|"}
      set end of results to entry
    end repeat
  end tell
  results]

我正在尝试在 Mac 的 vscode 上运行它。这是特征文件数据:

Feature:   
Background:
    * configure driver = { type: 'chrome',headless: false  } 
    * configure afterFeature = function(){ karate.write({ id: jamaId,errorMessage: karate.info.errorMessage },'jama-id-' + jamaId + '.json'); }
    * call read('runsetup/ui_login.feature')
  
Scenario: Verify UI: Default Regulatory Mode Filter to IVD
    * click("{}Applications").delay(1000)
    # * driver.inputFile('#installAppButton',targetDir+"/resources/utilities/ivdDummy1.app")
    * robot { window: '^Chrome',highlight: true }
    # since we have the driver active,the "robot" namespace is needed
    * waitFor('#installAppButton').click().delay(1000)
    * robot.input(targetDir+"/resources/utilities" + Key.ENTER)
    * robot.waitFor('ivdDummy1.app').click()
    * robot.input(Key.ENTER).delay(1000)
    * submit().click('#file-submit')
    * screenshot()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)