无法使用#include 在 Botium Watson Assistant 测试中包含部分对话

Cannot include partial conversation in Botium Watson Assistant test with #include

我尝试按照 partial conversation documentation 使用 #include 语法包含部分对话文件。

我想使用很多部分对话,不仅在 beginning/end 中,而且在对话中间。哪个是正确的语法?

错误:

  context: {
    err: Error: Failed to parse conversation. Section "include" unknown.
        at linesToConvoStep (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/helper.js:76:38)
        at parseMsg (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/CompilerTxt.js:69:14)
        at pushPrev (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/CompilerTxt.js:79:34)
        at /Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/CompilerTxt.js:93:9
        at Array.forEach (<anonymous>)
        at CompilerTxt._compileConvo (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/CompilerTxt.js:89:11)
        at CompilerTxt.Compile (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/CompilerTxt.js:43:19)
        at ScriptingProvider.Compile (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/ScriptingProvider.js:407:21)
        at ScriptingProvider.ReadScript (/Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/ScriptingProvider.js:493:27)
        at /Users/afreed/Code/workspace/my-botium-project/node_modules/botium-core/src/scripting/ScriptingProvider.js:452:71,
    message: `ReadScript - an error occurred at 'immediate-pound-out_with_partial.convo.txt' file: Failed to parse conversation. Section "include" unknown.`
  }

测试会议 immediate-pound-out_with_partial.convo.txt:

immediate pound out, templated second strike

#bot
Hi, how can I help you?

#me
0
UPDATE_CUSTOM SET_WATSON_CONTEXT|vgwIsDTMF|"Yes"

#bot
I can't handle DTMF here

#me
0
UPDATE_CUSTOM SET_WATSON_CONTEXT|vgwIsDTMF|"Yes"

#include SECOND-STRIKE

#bot
Please hold while I transfer you

如果我将 #include SECOND-STRIKE 替换为以下内容,它就可以工作。 (这看起来很奇怪——有效地定义了 #bot 部分两次。)

#bot
INCLUDE SECOND-STRIKE

部分会议文件second-strike.pconvo.txt

SECOND-STRIKE

#bot
I still didn't understand. 

找到这个 ,关于在对话中添加部分内容不清楚。

#include 语法仅适用于最新版本 1.11.2 请检查您的 Botium Core 版本