Botium Box测试Watson Assistant时跨技能跳转处理方法咨询
Hey there, let's break down this cross-skill testing issue you're hitting with Botium Box and Watson Assistant, plus walk through how to handle text + utterance variable concatenation properly.
First, let's confirm: that quirk where cross-skill jumps require all node text in a single Excel row (vs. single-skill jumps using separate rows) is actually expected behavior in some Botium-Watson configurations. When Watson Assistant switches skills, the session context carries over combined node metadata, and Botium Box defaults to bundling that into a single line unless you explicitly configure it otherwise.
Now, onto your core questions:
How to concatenate plain text with utterances variables
You have two solid options here, no fancy extra commands needed—just leverage Botium's built-in variable interpolation and scripting tools:
Direct Variable Interpolation in Excel
Botium supports using${variableName}syntax to inject utterance variables directly into your test text. For example:If your plain text is "Welcome to the billing skill" and your utterance variable is
BILLING_GREETING(defined in your Botium utterances set), you can write this in your Excel test cell:Welcome to the billing skill ${BILLING_GREETING}
Botium will automatically replace the variable with its defined value at test runtime.Custom Scripting for Complex Concatenation
If you need more control (like conditional logic or dynamic values), use Botium's scripting memory in your test case's pre/post scripts. For example:// Grab the utterance variable from context const greetingUtterance = botium.context.Get('BILLING_GREETING'); // Concatenate with plain text and store as a new variable botium.context.Set('combinedGreeting', `Hi there! ${greetingUtterance}`);Then reference
${combinedGreeting}in your Excel test row.
Are you missing a Botium Box configuration?
Chances are, you can avoid the messy single-row concatenation entirely by tweaking your Botium Box Watson Connector settings:
- Enable Cross-Skill Support: In your Botium Box Watson Assistant connector configuration, make sure the "Cross-Skill Support" toggle is turned on. This tells Botium to properly parse cross-skill node transitions instead of bundling text together.
- Use the
SKILLColumn in Excel: Add a dedicatedSKILLcolumn to your test Excel file, and populate it with the target skill's ID or display name for cross-skill jumps. Botium will handle the skill switch automatically, letting you keep node text in separate rows just like single-skill tests.
Quick Recap to Fix Your Issue
- First, verify that "Cross-Skill Support" is enabled in your Botium Watson Connector settings.
- Add a
SKILLcolumn to your Excel test file to explicitly define cross-skill targets (no more manual text concatenation needed). - Use
${variableName}syntax or custom scripts to merge plain text with utterance variables when needed.
内容的提问来源于stack exchange,提问作者Pinolo

