A test case is a single, multi-step conversation with your chatbot, which should respond in a way we expect it. Continue reading to learn how to add a test case to a test set.
-
Navigate Using the Left Pane: On the left navigation pane, locate
Botium Tools & Settings > Test Sets
in the menu. -
Search for your Existing Test Set: Use the search bar on the right of
the page to search for and select the test set you wish to add your new test
case to.
-
Switch Tabs: Select the TEST CASES tab from the
ribbon at the top of the page. This will then show the list of all test cases
currently added in the panel underneath.
-
Add New Test Case: Click the + New button to open the test cases
dropdown menu. From here, you can select one of several types of test cases to
add. For this guide, we will be adding a test case using a Convo file.
This is a detailed script that defines conversations between users and your bot.
We will use a Convo to replicate a conversation containing a simple text
interaction.
Restriction: Optional - Steps 6, 7 ,8 , and 9 are for adding voice interactions. This is provided for those of you who are following the 'Getting started with Voice App Testing' guide. -
Convo Editor: This is the most basic Convo. You will see two steps have
been automatically included in the editor as a starting point. The test case
name is displayed at the top left of the editor. You can and should update the
test case name by clicking on the text.
-
USER STEPS: Sending messages are classified as User Steps, and can be easily identified on the editor with the following icon . These lines are what you (the user) will say to the chatbot.
-
BOT STEPS: Expected responses are classified as Bot Steps, and can be easily identified on the editor with the following icon . These lines are what you expect the chatbot to reply.
Tip:Optional - Steps 6, 7 ,8 , and 9 are for adding voice interactions. This is provided for those of you who are following the 'Getting started with Voice App Testing' guide.
Skip to step 10 now if you are not following this guide!
-
- Add a New Step to the Conversation: We will now add our own step by clicking the + USER STEP button.
-
Edit Step: We can see that a new step has been added at the bottom of
the conversation but the step is empty. To edit it, click anywhere on the step
or the Edit icon to the right of the step.
-
Choose Interaction Type: Now we can see inside the empty step. Here we
must decide what kind of interaction to add. The grid on the right contains many
options which we can use to replicate different interactions between the user
and the chatbot. For the purpose of this guide we will be adding a voice
interaction using the Media/Voice option.
Note: See Using Logic Hooks and Botium Asserters for more information on available interaction types. -
Choose Audio Sample: Use the File/Folder Selection link to open
any files stored in the File Browser. Use the checkboxes to select the audio
sample you wish to add.
-
Apply Changes: After you have added your file(s), apply your changes by
clicking the APPLY CHANGES button.
-
Save: Now that you have some steps added to your test case you can click
the SAVE button to save your new test case to your chosen
test set.
Note: This is an example of how the steps would look in Botium Script:Test Case for Text and Voice Testing #me Hello #bot hello #me MEDIA Paulie - Voice Testing/How-are-you_en-us-amberneural.wav