Botium Box 爬虫测试用例在 Watson Assistant 按钮上失败

Botium Box crawler test case failing on Watson Assistant buttons

我在 Watson Assistant 技能上使用 Botium Box 爬虫。 机器人的初始语句包括问候语和七个按钮。 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=="BUTTON password|Password" 我的条件也应该触发。

是我用错了Botium Box爬虫,还是爬虫有bug?

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

您可以通过设置 DEBUG=botium-* 环境变量来获取更详细的日志。所以在命令行中它应该是这样的:

DEBUG=botium-* botium-cli crawler-run --entryPoints 'hello'

在这种情况下,您会得到一个日志,而且是非常详细的日志。您可以使用 exitCriteria(例如:--exitCriteria 'Benefits' 'Badges')来减小其大小,以排除那些正常工作的路径。 我们将调查详细的日志,请发送给我们。

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