首页 > 解决方案 > 空手道机器人错误: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, -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]

我正在尝试在 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()

标签: karateintuit

解决方案


推荐阅读