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

Tests run automatically on each bot publication if they are located in the test project folder. You can change this behavior in the tests section of the chatbot.yaml file.

Even one failed test makes the whole deployment fail. In this case, new changes will not be published to a channel.