karate - 空手道机器人错误: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()
解决方案
推荐阅读
- firefox - 在 Microsoft Edge 中动态添加元素时,将 overflow-y 设置为“滚动”的元素正在移动
- firebase - Flutter Firebase 动态链接不适用于新的 ios 应用安装
- email - G Suite - 550 5.7.26 由于域的 DMARC 政策,来自 medi.com.co 的未经身份验证的电子邮件不被接受
- javascript - 为什么这段代码返回一个空数组?
- asynchronous - 在同步或异步调用 asp.net core blazor 方法之间进行选择
- wordpress - Nginx:主域上的 Nuxtjs 应用程序 + 子目录中的 WordPress
- c - 从字符串中提取文件路径
- kubernetes - NodePort 与 ClusterIP 与 Kubernetes 上的无头服务的性能注意事项
- regex - 提取字符串中文件扩展名 (.ps1) 之前的数字
- node.js - 角材料表排序在帖子中不起作用代码