codeforequity-at / botium-core

The Selenium for Chatbots - Bots Testing Bots
https://www.botium.ai
MIT License
230 stars 64 forks source link

Scripting Memory. #360

Closed sapinedamo closed 4 years ago

sapinedamo commented 5 years ago

Hi.

How to setup the variables in Botium Box? For example, We have the following convo file: Captura Where BOT_CONTACT_YES is Captura1 We need to setup values for the variable $month. To achieve this we have tried the following:

  1. We have the file month.txt

Captura2

  1. On Botium Box we have the following configuration Captura3 Captura4

Best regards,

Santiago.

codeforequity-at commented 5 years ago

Using scripting memory files makes only sense for values used in the #me sections, not in the #bot sections. I think what you want is to switch the Text Matching Mode to regular expressions and write your BOT_CONTACT_YES utterances as regular expression to match all valid texts.

sapinedamo commented 5 years ago

Yes, because we get the error: Captura5 Any idea how to fix the error?

codeforequity-at commented 5 years ago

$product is not a regular expression. You should change it to \w+ to make the regular expression matcher working

codeforequity-at commented 5 years ago

success ?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

codeforequity-at commented 4 years ago

Please re-open if new data available.

sapinedamo commented 4 years ago

Hi!

Sorry, I have solved the problem in another way.

Thanks!