Search code examples
botstestcase

How to pass context or generate test case for context in botium-cli


I am trying to generate test cases for context for Dialogflow. When i run command this command, it does not generate test cases for contexts(intents)

botium-cli import dialogflow-conversations

My agent has this type of structure

Default Welcome
    |
Collect info
    |
    Name
       |
       Email
        |
        Project Requirements

When i run command to generate test cases, Botium only generate test case for Name inputs. Botium only generates these files for collect-info intent and their contexts:

Collect-Info-Name.convo.txt
Collect-Info_input.utterances.txt
Collect-Info_output_0.utterances.txt
Name_input.utterances.txt
Name_output_0.utterances.txt

Help me with this. Thanks


Solution

  • You are doing it right, but there was a Bug in Botium-CLI. This has been fixed now in a Github branch (https://github.com/codeforequity-at/botium-cli/tree/bugfix/-BOT-584-core-botium-cli-dialogflow-impor), and it will be part of the next release. You can already use it if you check out the bugfix branch instead of the master from Github:

    > git clone https://github.com/codeforequity-at/botium-cli.git && git checkout bugfix/-BOT-584-core-botium-cli-dialogflow-impor