{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4887,"path":"conversational-interfaces/virtual-agent/create-automated-test-vad.md","title":"Create an automated test in Assistant Designer Asset library","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create an automated test in Assistant Designer Asset library\n\nCreate automated tests in Assistant Designer Asset library, and run tests regularly against ideal conversation topic flows. You can create multiple automated tests for a topic to capture different conversation flows for various situations such as ideal conversation paths or errors.\n\n## Before you begin\n\nPlugin required: com.glide.cs.atf.\n\nRole required: atf\\_test\\_designer, atf\\_ws\\_designer, atf\\_test\\_admin, virtual\\_agent\\_admin, or admin\n\n## About this task\n\nAs you work on a published topic, setup topic, or small talk topic, select **Test** on the header bar to run your conversation in a chat test window. The default test window is the web \\(Service Portal\\) chat client. Use the **Create test case** button to create a test case and save the test case in the Automated Test Framework.\n\n**Note:** You can find a list of NLU/Keyword test cases by selecting the **Manage NLU/Keyword test cases** toggle switch on the Assistant Designer Asset library page. Automated tests are also listed on the Automated Test Framework \\(ATF\\) Tests \\[sys\\_atf\\_test\\] table. For more information on managing NLU/Keyword test cases, see [Manage and run automated test cases in Assistant Designer Asset library](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/manage-automated-test-cases.md)\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Conversational Interfaces** &gt; **Assistant Designer**.\n\n2.  Select the **Asset library** tab.\n\n3.  Set the discovery type toggle switch to **NLU/keyword**.\n\n4.  Select a published topic.\n\n5.  In the topic's header bar, select **Test**.\n\n6.  In the topic testing window, select **Create test case**.\n\n    **Note:** The **Create test case** button is only available for published topics that are non-read only with one of the following topic types: **Topic**, **Setup Topic**, or **Small talk**.\n\n    The topic's test client restarts and the test case begins to capture your ideal conversation. While capturing your test case, the **Include Topic Discovery** and the **Context** tabs are unavailable.\n\n7.  Enter the conversational flow that you want to capture and test.\n\n    **Tip:** Select **Restart** at any time to restart the topic conversation and test case capture.\n\n8.  Select **Stop**.\n\n    The **Test case name** field displays the topic's name along with the date and timestamp. For example: `[Topic name] 3/28/2022, 3:32:19 PM`.\n\n9.  Perform one of the following actions.\n\n<table id=\"choicetable_ezr_zt3_w5b\"><thead><tr><th align=\"left\" id=\"d157002e252\">\n\nOption\n\n</th><th align=\"left\" id=\"d157002e255\">\n\nDescription\n\n</th></tr></thead><tbody><tr><td id=\"d157002e261\">\n\n**Discard the test case**\n\n</td><td>\n\n1.  Select the trash can icon.\n2.  Select **Discard**.\n\nThe test case is discarded and the testing conversation restarts.\n\n</td></tr><tr><td id=\"d157002e284\">\n\n**Save the test case**\n\n</td><td>\n\n1.  Change the **Test case name** to your preferred test case name.\n2.  Select **Save**.\n\nThe test case is saved. To review your saved test case, select **Manage** on the confirmation banner to open the **Manage test cases** tab in a new window, or go to **Manage NLU/keyword test cases** on the Topics page.\n\n</td></tr></tbody>\n</table>\n**Parent Topic:**[Automated testing for Virtual Agent topics that use NLU topic discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/automated-testing-va-topics.md)\n\n"}}