ToWy
ToWy

Reputation: 23

Botium scripting memory: Expected bot response not matched

I am getting the following error when using Botium:

TranscriptError: Error: GetNewGetDeleteGet/Line 27: Expected bot response (on Line 20: #me - getID ) "99 | This is a test" to match one of "$id | This is a test" at async.waterfall (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:160:25)

Convo File:

#me: getID
#bot: $id | This is a test

To start Botium I do: sudo botium-cli run mochawesome I already fired up this command: export BOTIUM_ENABLE_MEMORY=true

Any ideas? Botium should accept the answer of the bot and save the 99 into the variable $id, shouldn't it?

Edit: After adding SCRIPTING_ENABLE_MEMORY=true to the config file

convo.txt:

#me
get
#bot default
*Hier sind deine Erinnerungen:*

Keine Notizen, oder alles erledigt.

Error:

TranscriptError: Error: GetNewGetDeleteGet/Line 11: error waiting for bot SyntaxError: Invalid regular expression: /*Hier sind deine Erinnerungen:* Keine Notizen, oder alles erledigt./: Nothing to repeat at String.match (native) at utterances.forEach.expected (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:359:38) at Array.forEach (<anonymous>) at Convo._fillScriptingMemory (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:353:18) at scriptingEvents.onBotStart.then.then (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:256:22) at <anonymous>

Dialogflow shows the answer like this

My Code sends it out like that:

{'fulfillmentText': '*Hier sind deine Erinnerungen:*\n\nKeine Notizen, oder alles erledigt.'}

Edit 2:

After removing the *

Convo.txt

Edit 3: Error Full error log

Edit 4: Verbose Log

Upvotes: 1

Views: 610

Answers (1)

Florian Treml
Florian Treml

Reputation: 1315

There are two problems:

  • The environment variable to set is BOTIUM_SCRIPTING_ENABLE_MEMORY
  • Usually, when running a command with sudo you will loose the environment variables. You can add the capability SCRIPTING_ENABLE_MEMORY to the botium.json file instead.

Upvotes: 1

Related Questions