botium-core icon indicating copy to clipboard operation
botium-core copied to clipboard

Multiple utterance key value pairs in single utterance file

Open ram-d opened this issue 2 years ago • 2 comments

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

ram-d avatar Mar 27 '23 19:03 ram-d

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"
  ]
}

ujja avatar Mar 28 '23 16:03 ujja

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.

stale[bot] avatar Jun 18 '23 07:06 stale[bot]