Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Automated tests 沃森助手按钮上的Botium Box爬虫测试用例失败_Automated Tests_Chatbot_Botium Box - Fatal编程技术网

Automated tests 沃森助手按钮上的Botium Box爬虫测试用例失败

Automated tests 沃森助手按钮上的Botium Box爬虫测试用例失败,automated-tests,chatbot,botium-box,Automated Tests,Chatbot,Botium Box,我在沃森助手的技能上使用Botium Box crawler。 机器人的初始语句包括一个问候语和七个按钮。 Botium正在为每个按钮生成测试用例,但按下按钮不会在Watson Assistant中生成正确的响应 生成的案例如下所示: 1.6.2.2.2.4_hello_Password #bot #me hello #bot UTT_M1_HI-THERE! #bot BUTTONS Benefits|Badges, Explanation of Badges or Certifica

我在沃森助手的技能上使用Botium Box crawler。 机器人的初始语句包括一个问候语和七个按钮。 Botium正在为每个按钮生成测试用例,但按下按钮不会在Watson Assistant中生成正确的响应

生成的案例如下所示:

1.6.2.2.2.4_hello_Password

#bot

#me
hello

#bot
UTT_M1_HI-THERE!

#bot
BUTTONS Benefits|Badges, Explanation of Badges or Certificate of Completion|COVID-19|ID Cards - Order, View, Print, Return|Employment/Termination|Password|None of the above, enter search text

#me
BUTTON password|Password

#bot
(responds as if Watson Assistant received the word "BUTTON" rather than the "password" value in "Password"-labeled button)
对话框节点具有使用以下条件的子响应:

input.text=="password" or input.text.contains("password")
Watson Assistant中按钮按下的预期行为是将按钮文本(而不是标签)传递给按钮。在Watson Assistant试用面板中,我单击“密码”,它会发送文本“密码”

我可以在Try it Out中复制Botium行为的唯一方法是传递文本“BUTTON”。即使Botium发送了input.text==“按钮密码|密码”,我的状态也会触发

我使用Botium Box爬虫程序是错误的,还是爬虫程序中有错误


更新:其他按钮驱动的提示起作用,例如“是/否”按钮提示。我想知道是否有解析问题,因为按钮有很长的标签,带有一些特殊字符和标点符号。

您可以通过设置DEBUG=botium-*env变量来获得更详细的日志。因此,在命令行中,它应该如下所示:

DEBUG=botium-* botium-cli crawler-run --entryPoints 'hello'
在这种情况下,您将得到一个日志和非常详细的日志。您可以使用exitCriteria(例如:
--exitCriteria“好处”“徽章”
)来减小其大小,以排除正常工作的路径。
我们将调查详细日志,请发送给我们。

此问题必须在下一版本的爬虫程序包中解决。
如果您现在需要此修复,那么我们可以直接更新您的试用实例。

感谢您的详细分析。我们将对此进行调查。您是否可以发布Botium日志输出,它将显示Botium实际发送给Watson的有效负载检查代码-在这种情况下,文本“密码”应发送给Watson助手。详细日志输出应确认这一点以便进一步调查常规或详细日志输出没有提供太多细节(格式错误)*2021-05-24T13:46:29.932Z:爬虫作业“hello”已排队等待执行*2021-05-24T13:46:32.385Z:已开始处理,JobId#383623,带有“hello入口点”。*2021-05-24T14:33:46.419Z:使用“hello入口点已成功完成”运行Botium爬虫程序。*2021-05-24T14:33:48.261Z:作业已完成我使用的是托管版本-我不知道该将
DEBUG
设置放在哪里。我点击了“立即启动爬虫会话(扩展日志记录)”按钮,假设它是等效的。但是,我看不到有任何额外的日志记录。啊,这有什么区别-你使用的是什么实例?us.ibm.botiumbox.comSzabi实际上正在处理这个实例-对于将来的产品支持查询,我建议使用Botium Box论坛而不是Stackoverflow-谢谢,如果你能及时更新试用实例,我将不胜感激。