How to save your Botmock designed conversations as test sets in Botium
Botmock is a conversation design platform that allows you to build up, visualize and to map out your conversation flow before you deploy it to a chatbot engine. You can use Dialogflow, Rasa or IBM Watson, it makes no difference as Botium supports all chatbot engines integrated with Botmock.
In the next scenario we connect Botmock Stack with Botium Stack using the Botium Botmock Exporter.
- The first logical step is to design your conversation flow in Botmock
- After your conversation is ready you have to deploy your script to a chatbot engine like Google Dialogflow using the Botmock Exporter (the Dialogflow Botmock Exporter in this case)
- Export test cases from Botmock to Botium using Botium Botmock Exporter
- Run the tests in Botium
Using the Botium Botmock Exporter is very similar to using any other Botmock Exporter, so if you are familiar with the steps there, you’ll be ready in a jiffy:
- First off, you need to copy the code from our Github repository
- Once cloned, rename your “sample.env” to “.env” file and fill it in (you can copy the .env file from the exporter you’ve used when deploying your chatbot)
- Execute “npm install”
- Execute “npm start” to start exporting
- In the output directory you’ll find the Botium compatible test cases (test conversation) of your script
- Zip the files and create test sets using Botium Box
One of the best features of Botmock is that you can build a single chatbot and deploy it to more chatbot engines. This freedom is also fragile, because we can reach very different results depending on the chosen chatbot engine. By adding Botium to your CI/CD pipeline you can check how the implemented changes in Botmock are displayed by different chatbot providers.