codeforequity-at / botium-core

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

Can utterances file be used globally across the test sets #328

Closed Aishwarya-J-S closed 5 years ago

Aishwarya-J-S commented 5 years ago

Currently we have to create utterance file for every test set. Can it be used globally across all the test sets. Is there any option to create utterance file which can be used in all the test sets?

ujja commented 5 years ago

Everything is global to TestProject. How to use them, is up to you.

You can dedicate a TestSet as global (name or tag it as global) and use "namespaces", so they will look as local: (just for humans, botium does not understand this format):

Testsets [{
  name: global
  tags:[global]
  utterances: [
    "greeting"
   ] 
},
{
  name: uk
  utterances: [
    "uk.greeting"
   ] 
}
codeforequity-at commented 5 years ago

Another option is to use "Test Set Dependencies" - you can have one shared test set with all your utterances, and define this as dependency in your other test sets ...

image