Reputation: 3060
I am using botium-cli 0.0.40 and I have the following convo file (AGE.convo.txt):
#me
what is your age?
#bot
AGEA_UTT
There is also a utterance file (AGEA_UTT.utterances.txt):
AGEA_UTT
['I am $months months old.']
['I am $years years old.']
['I am 5 years old.']
For an answer: ['I am 5 years old.'] it passes. But for ['I am 6 years old.'] it fails:
TranscriptError: Error: convos/AGE.convo.txt: Expected bot response (on Line 4: #me - what is your age? ) "['I am 6 years old.']" to match one of "['I am $months months old.'],['I am $years years old.'],['I am 5 years old.']"
Is it a bug? Do I have to change any Botium settings? The wiki doesn't mention any need for that: https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting#scripting-memory
Thanks in advance.
Upvotes: 1
Views: 316
Reputation: 1315
You have to set the SCRIPTING_ENABLE_MEMORY capability to true to enable the memory.
Attention: the build you mentioned doesn't yet allow scripting memory expressions in utterances! This is part of the next build scheduled for upcoming Monday!
Upvotes: 2