spcspc
April 23, 2021, 2:18am
1
If my convo.txt file has
#bot
TEXT1
BUTTON(TEXT2 | TEXT2)
BUTTON(TEXT3 | TEXT3)
BUTTON(TEXT4 | TEXT4)
BUTTON(TEXT5 | TEXT5)
BUTTON(TEXT6 | TEXT6)
#me
TEXT2
Running the botium-cli run command is throwing this error
Error: checkbox_test.convo.txt/Line 81: Bot response (on Line 78: #me - Start a visit) “TEXT1 BUTTON(TEXT2 | TEXT2) BUTTON(TEXT3 | TEXT3) BUTTON(TEXT4 | TEXT4) BUTTON(TEXT5 | TEXT5) BUTTON(TEXT6 | TEXT6)”
########################################
ASSERTION FAILED in TextMatchAsserter - Expected: [“TEXT1 BUTTON(TEXT2 | TEXT2) BUTTON(TEXT3 | TEXT3) BUTTON(TEXT4 | TEXT4) BUTTON(TEXT5 | TEXT5) BUTTON(TEXT6 | TEXT6)”] - Actual: “TEXT1”
How can we do comparison with the Buttons itself? Looks like it is doing a comparison only for the text, but not for buttons.
Syntax is incorrect.
#bot
TEXT1
BUTTONS TEXT2|TEXT3|TEXT4|TEXT5|TEXT6
spcspc
April 23, 2021, 11:46am
3
@Florian
I tried that and it is not working. This is in my convo.txt
#bot
TEXT1
BUTTONS I Agree|Decline
#me
BUTTON I Agree
I get
error waiting for bot - Bot did not respond within 10000 ms
The Transcript shows the following
------------ TRANSCRIPT ----------------------------
#bot: TEXT1
CARD()
BUTTON(I Agree | I Agree)
BUTTON(Decline | Decline)
#me: I Agree
BUTTON(I Agree)
This is my botium.json
{
"botium": {
"Capabilities": {
"PROJECTNAME": "My Botium Project",
"CONTAINERMODE": "directline3",
"DIRECTLINE3_SECRET": "####",
"DIRECTLINE3_DOMAIN": "https://directline.botframework.com/v3/directline",
"DIRECTLINE3_WEBSOCKET": true,
"DIRECTLINE3_POLLINGINTERVAL": 1000,
"SCRIPTING_MATCHING_MODE": "wildcard",
"DIRECTLINE3_WELCOME_ACTIVITY": {
"type": "invoke",
"name": "TriggerScenario",
"value": {
"trigger": "Entrypoint",
"args": {
"brand": "###",
"customScheme": "https",
"tenantName": "###"
}
}
}
},
"Sources": {},
"Envs": {}
}
}
Chatbot is not responding, that’s why the test fails. Nothing to do with the buttons.
1 Like