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>
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.