Generating Test Cases from a CX Model
The Test Cases are generated and stored in a Test Case folder specified during the generation steps.
-
To export an IVR Model as Test Cases and Blocks, from the Action menu, select Generate Test Cases.... A pop-up menu as shown appears:
- Specify the Folder
Name. Note: The Test Case Folder Path and Block Folder Path will be created in the location, Models\'the IVR CX Model Model name'.
- Check the Expand
Steps option to have your Expect to Hear prompts appear on
separate steps to your replies. Note: Cyara recommends expanding steps when generating Test Cases as it makes the troubleshooting of Test Cases easier.
-
Once generation is complete, a confirmation message is displayed as shown:
If you wish to remain on the Model page, click Close.
- To view the Test Case Generation report. click View
Report.
When using data driven Test Cases, if the associated Data Set or some of the scenarios are missing or if the Data Set format is incorrect, a Failed result is displayed. A Failed result means that a Test Case has been created but the validation will fail as the associated Data Set has not been generated.
Click Model Path Link to view and resolve the CX Model paths that have issues. You can click the Test Case Link to update the Test Case with the missing parameters.
- Click Go to exported
Test Cases to open the Test Cases &
Blocks page. Navigate to the generated Test Case folder.
If the Test Cases were exported from a Model, the Inspect IVR Model button is available. If you click the Inspect IVR Model button, it will navigate to the Model from which the Test Cases were generated.
Additionally on each individual Test Case that has been generated from a CX Model, a link is available to direct you back to the CX Model itself. Click the Linked CX Model button on the Test Case at the bottom of the Test Case Details panel.
Note: The steps are similar for Blocks.
Test Case naming when Generated from a CX Model
This naming convention applies to test cases both manually and automatically generated from a CX Model.
Test Cases when exported from a CX Model are named based on the path traversed.
The Test Case will include the names of any differing Menu Elements traversed,
ending with the final Element in the flow. For example refer to the image
below.

This example CX Model has 4 distinct paths;
- The Accounts Queue Transfer via the Accounts Menu (1)
- The Pins Queue Transfer via the Changes Menu (2)
- The Address Queue Transfer via the Changes Menu (3)
- The Operator Queue Transfer via the Operator Menu (4)

Auto-Generation of Test Cases from a CX Model
When creating a model, you have an option to choose for auto generation of
Test Cases. Refer the Auto Generated Test Cases section for more
details. When the Test Cases are auto-generated, the status will appear as
shown:
Note: The First and Last steps in an auto-generated test case will not contain any min/max pause time.
Exporting Test Cases as XML
The Test Cases that will validate the IVR can be generated at any stage for the Entire Model or Part of the Model. When Generate Test Cases is selected from the Action Menu, the generated Test Cases will be based on each call flow that traverses the Model from the root Node (main menu) to a leaf Node (terminating menu). Alternatively, when this option is selected by right-clicking on a Node, the generated Test Cases will be based on each call flow that traverses the Model from the root Node (main menu) and through the selected Node to its descendant leaf Node (terminating menu).
The Test Cases are generated as an exported Cyara XML file.
The Test Cases and Blocks (if the Generate Blocks checkbox is selected) are generated and stored under the Models folders as indicated in the Folder Path during the generation steps.
- To export Test Cases as Cyara XML,
from the Action menu, select Download Test
Cases XML....
- Specify the Test Case Folder Path and Block Folder Path. This will determine where the Test Cases will be stored when imported into the Cyara Portal. Leave them blank to store these in the root folder.
- When you want to generate Test Cases using reusable Blocks, check this option.
- Check the Expand Steps option to have your Expect to Hear prompts appear on separate steps to your replies.
Generating Test Cases from a CX Model walkthrough Video
Watch the video below for a walkthrough of how to generate Test Cases from your Cyara CX Models.
Comments
0 comments
Please sign in to leave a comment.