

# Generate a test set for Test Workbench
<a name="test-sets"></a>

You can create a test set to evaluate the performance of your bot. Generate a test set by uploading a test set that is in a CSV file format or by generating a test set from [ conversation logs](https://docs.aws.amazon.com/lexv2/latest/dg/conversation-logs.html). The test set can contain audio or text input.

![\[Create a test set with the Test Workbench.\]](http://docs.aws.amazon.com/lexv2/latest/dg/images/testworkbench/test-workbench-create.png)


If a test set creates validation errors, remove the test set and replace it with another list of test set data, or edit the data in the CSV file by using a spreadsheet editing program.

**To create a test set:**

1. Sign in to the AWS Management Console and open the Amazon Lex console at [https://console.aws.amazon.com/lex/](https://console.aws.amazon.com/lex/).

1. Choose **Test workbench** from the left side panel.

1. Select **Test sets** from the options under Test workbench. 

1. Select the **Create test set** button on the console. 

1. In the **Details**, enter a test set name and an optional description. 

1. Select **Generate a baseline test set**. 

1. Select **Generate from conversation logs**. 

1. Select **Bot name**, **Bot Alias**, and **Language** from the drop down menus. 

1. If you are generating a baseline test from a conversation log, choose **Time range** and **IAM role**, if required. You can create a role with the basic Amazon Lex V2 permissions or use an existing role.

1. Choose a modality of **Audio** or **Text** for the test set you are creating. NOTE: The Test Workbench can import text files up to 50k, and up to 5 hours of audio. 

1. Select an Amazon S3 location to store your test results, and add an optional KMS key to encrypt output transcripts. 

1. Select **Create**. 

**To upload an existing test set in a CSV file format, or to update the test set:**

1. Choose **Test workbench** from the left side panel.

1. Select **Test sets** from the options under Test workbench. 

1. Select **Upload a file to this test set** on the console. 

1. Choose **Upload from Amazon Amazon S3 bucket** or **Upload from your computer**. NOTE: You can upload a CSV file created from a template. Click **CSV template** to download a zip file that contains the templates. 

1. Choose **Create a role with basic Amazon Lex permissions** or **Use an existing role for Role ARN**. 

1. Choose a modality of **Audio** or **Text** for the test set you are creating. NOTE: The Test Workbench can import text files up to 50k, and up to 5 hours of audio. 

1. Select an Amazon S3 location to store your test results, and add an optional KMS key to encrypt output transcripts. 

1. Select **Create**. 

If the operation is successful, the confirmation message will indicate that the test set is ready to test, and the status will display **Ready for testing**. 