空手道配置错误使空手道挂起

时间:2021-05-04 20:33:21

标签: karate intuit

在运行空手道测试时,我注意到运行 karate-config.js 时发生的任何故障都会使运行挂起并且永远不会退出空手道配置。有没有办法要么不通过测试要么在失败的情况下跳出 karate-config.js?

此类失败的示例之一是:

<块引用>

21:28:44.271 [ForkJoinPool-1-worker-1] 错误 com.intuit.karate - 'karate-config.js' 的评估失败:javascript 函数调用 失败:get_token.feature:26 - 评估(js)失败: input('input[id=username]', loginusername), js eval 失败两次:var e = document.querySelector("input[id=username]"); e.focus(); try { e.selectionStart = e.selectionEnd = e.value.length } catch(x) {}, 错误: {"type":"object","subtype":"error","className":"TypeError","description":"TypeError: 无法读取 null 的属性“焦点”\n 在 :1:57","objectId":"{"injectedScriptId":2,"id":3}"}

0 个答案:

没有答案