codeforequity-at / botium-core

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

Multiple utterance key value pairs in single utterance file #742

Open ram-d opened 1 year ago

ram-d commented 1 year ago

Hi @codeforequity-at , @ujja ,

Is it possible to have multiple utterance variables in a single utterance file in botium as opposed to using separate utterance file for each utterance?

For example,

UC_test1_UTT test this also this

UC_test2_UTT test this as well and this one

Currently, if I create the utterance file with the above, it considers everything below 'UC_test1_UTT' as individual utterances including 'UC_test2_UTT'. I would like to know if we could differentiate between 2 different utterances in the same file. This will really help with our automation. Please check and let us know. Appreciate your help.

Thanks, Ram

ujja commented 1 year ago

Hello,

If you use text format, then it is not possible to use more utterance names like UC_test1_UTT and UC_test2_UTT in one file.

But there are other script formats, supporting more utterance names in one file, like JSON:

{
"utterances": {
  "UC_test1_UTT": [
    "test this",
    "also this"
  ],
  "UC_test2_UTT": [
    "test this as well",
    "and this one"
  ]
}
stale[bot] commented 1 year 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.