微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决空手道机器人错误: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 举报,一经查实,本站将立刻删除。