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

问题描述

在运行空手道测试时,我注意到运行 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}"}

解决方法

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

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

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