Automated tests Botium部分车队实际上并没有向聊天机器人发送对话
我正在尝试按照“拆分车队”下的“部分车队”指令进行操作,但我无法让“部分车队”实际向聊天机器人发送消息。Automated tests Botium部分车队实际上并没有向聊天机器人发送对话,automated-tests,chatbot,Automated Tests,Chatbot,我正在尝试按照“拆分车队”下的“部分车队”指令进行操作,但我无法让“部分车队”实际向聊天机器人发送消息。botium.json中是否有其他配置设置需要调整才能启用此功能 考虑使用botium cli init创建的简单的give_me_picture.conva.txt。如果我创建一个pconvo.txt文件example.pconvo.txt,如下所示: PARTIAL_HELLO #me Hello, Bot! #bot You said: Hello, Bot! 然后我调整给我一张图
botium.json
中是否有其他配置设置需要调整才能启用此功能
考虑使用botium cli init创建的简单的give_me_picture.conva.txt
。如果我创建一个pconvo.txt
文件example.pconvo.txt
,如下所示:
PARTIAL_HELLO
#me
Hello, Bot!
#bot
You said: Hello, Bot!
然后我调整给我一张图片.conva.txt
以包括以下内容:
give me picture
INCLUDE PARTIAL_HELLO
#me
give me a picture
#bot
Here is a picture
MEDIA http://www.botium.at/img/logo.png
上述测试在技术上仍将通过。但是,如果我使用--verbose
运行此命令,您将看到它实际上并没有从部分发送命令\u HELLO
(即“HELLO,Bot!”
)--它只是跳过说给我一张图片
--我需要做哪些调整,以使它真正完成部分对话
这里是conva开头的--verbose
输出,您可以看到第一个问题是给我一张图片
botium-PluginConnectorContainer Botium plugin botium-connector-echo loaded +0ms
botium-connector-echo Validate called +0ms
botium-connector-echo Build called +1ms
botium-connector-echo Start called +0ms
botium-cli-run running testcase give me picture +21ms
botium-Convo give me picture/Line 5: user says {
botium-Convo "sender": "me",
botium-Convo "channel": null,
botium-Convo "messageText": "give me a picture",
botium-Convo "stepTag": "Line 5",
botium-Convo "not": false,
botium-Convo "asserters": [],
botium-Convo "logicHooks": [],
botium-Convo "userInputs": []
botium-Convo } +0ms
我还可以确认botium确实找到了部分Conva并成功转录了它:
botium-ScriptingProvider undefined PARTIAL_HELLO ({ convoDir: 'sample/', filename: 'example.pconvo.txt' }): Line 3: #me - Hello, Bot! | Line 6: #bot - You said: Hello, Bot! +0ms
您在COVA文件的头中使用了INCLUDE指令,这是错误的位置-您必须在实际对话中使用它。要在车队开始时使用部分车队,请将其添加到#开始部分:
非常感谢。如果我在中间用呢?我需要一个节标题吗?你可以把它添加到应该插入的节中
give me picture
#begin
INCLUDE PARTIAL_HELLO
#me
give me a picture
#bot
Here is a picture
MEDIA http://www.botium.at/img/logo.png