Botfront provides automated conversation flow testing to enable quick validation of existing your flows.
The BotRegressionTesting channel simulates a user having a conversation with your chatbot. It validates that the text of each user event in a conversation is parsed with the same intents and entities, and that the bot responses generated from a test run match the bot responses in the test.
This channel is configured by default when you run Botfront locally with the CLI.
- Go to Settings -> Credentials
- Add the following to the yaml
Test stories must be a sequence of user events and bot utterances in yaml format.
Each user event must have a user key which contains the message that will be parsed by rasa. You can refer to the following example test story.
- user: /get_startedentities: intent: get_started- action: utter_get_started- user: good morningentities:- entity: timeOfDayvalue: morningstart: 5end: 12intent: chitchat.greet- action: utter_hi