This site is no longer updated.Go to new Conversational Cloud docs

Files with tests


.xml are files with automated tests written in the XML language. Tests imitate a dialog between a user and a bot. They contain expected bot reactions.

An example:

<test>
    <test-case id="Greeting">
       <q>Hi</q>
       <a>Hi! I’m Alice, the bot.</a>
    </test-case>

    <test-case id="Farewell">
        <q>Bye</q>
        <a>I was glad to help you. Bye!</a>
    </test-case>
</test>

Learn more about XML files with tests

Connection

By default, tests run on each bot deployment if they are located in the test project folder. You can change this behavior in the tests section of the chatbot.yaml file. Also, you can set the mode in which the tests will run when deploying the bot.