https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to create a testcase file
# ❓・ai-evy-support
e
@AI Evy how to create a testcase file
a
Thanks for tagging me @emanuelkr. I'll look through relevant sources and get back to you shortly.
3. Select your LLM model 4. Click "Test" to run the simulation 5. Review the results and click "Save" to preserve the test case To create batch tests via API: [(4) ]() You can use the Create Batch Test API endpoint with test case definition IDs (requires 1-200 elements) . However, you'll need to create individual test cases first before running them in batch [(4) ]() [(3) ]() . For importing 200+ pre-prepared test cases, this isn't officially supported yet [(1) ]() , though community members have used the REST API with bearer tokens as a workaround [(5) ]() .
​ To learn more, see the sources I considered: [[1] Downloadable/uploadable Test Cases](https://discord.com/channels/1186424376300679209/1389693441155530864) [[2] Automatically test your agent](https://docs.retellai.com/test/llm-simulation-testing) [[3] Batch test your agent](https://docs.retellai.com/test/batch-test-simulation) [[4] Create Batch Test](https://docs.retellai.com/api-references/create-batch-test) [[5] Test case data issues](https://discord.com/channels/1186424376300679209/1403465412875649044) ​
### Answer Based on the available documentation, Retell AI doesn't currently support creating test case files for direct upload [(1) ]() . However, you can create test cases through the dashboard or API [(2) ]() [(3) ]() . To create a test case via the dashboard: [(2) ]() 1. Click "AI Simulated Chat" to create a new test case 2. Define the user prompt using this recommended format:
Copy code
## Identity
Your name is Mike.
Your date of birth is June 10, 1999.
Your order number is 7891273.
## Goal
Your primary objective is to return the package you received and get a refund.
## Personality
You are a patient customer. However, if the conversation becomes too long or complicated, you will show signs of impatience. If the issue remains unresolved, you may become frustrated and angry.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy does abtch testing use text based testing or is it audop based and gievs us all info like tool calls and latency and cost
a
Thanks for the follow-up, @emanuelkr. I'll get back to you soon.
### Answer Batch testing in Retell AI uses text-based LLM Simulation Testing, not audio-based testing [(1) ]() [(2) ]() . The LLM Simulation Testing method provides: - Function call visualization [(1) ]() - Success metrics and scoring - Batch testing capabilities However, batch simulation testing does not provide audio-specific metrics like voice quality, latency, interruption handling, or background noise processing . Those features are only available through Web/Phone Call Testing . For audio-based testing with full telephony metrics (latency, audio quality, interruptions) , you'll need to use individual Web or Phone Call Testing instead of batch simulation . There is an "Audio Simulation" testing method coming soon that may bridge this gap . The testing comparison shows that LLM Simulation (which batch testing uses) provides response accuracy and function calls testing, but marks "Background noise" and "Interruptions" as unavailable (❌) . Cost tracking is marked as "Free" for LLM Simulation testing .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Testing Overview](https://docs.retellai.com/test/test-overview) [[2] Batch test your agent](https://docs.retellai.com/test/batch-test-simulation) ​
e
@AI Evy how to get test case id
a
Thanks for the follow-up, @emanuelkr. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Create Batch Test](https://docs.retellai.com/api-references/create-batch-test) [[2] CF Testing Suite | Retell AI Feature](

https://www.youtube.com/watch?v=inMXRs9dbT4▾

) [[3] Manually test your agent](https://docs.retellai.com/test/llm-playground) ​
### Answer Based on the available sources, I don't have explicit documentation on how to retrieve test case definition IDs directly. However, the Create Batch Test API endpoint requires
test_case_definition_ids
as an array parameter [(1) ]() . This suggests test case definition IDs are assigned when you create and save test cases through the dashboard. From the dashboard workflow: [(2) ](

▾

) [(3) ]() 1. Navigate to your agent's "Test LLM" tab [(3) ]() 2. Create a test using "AI Simulated Chat" [(2) ](

▾

) [(3) ]() 3. After running the simulation, click "Save" 4. The saved test case should be assigned an ID You can view your saved test cases by navigating to the "simulation tab" to see all test cases saved for that agent [(2) ](

▾

) . The API documentation shows the expected format is an array of strings with 1-200 elements [(1) ]() :
Copy code
javascript
const batchTestResponse = await client.tests.createBatchTest({
 response_engine: { llm_id: 'llm_id', type: 'retell-llm' },
 test_case_definition_ids: ['string'],
}) ;
I couldn't find documentation showing how to list or retrieve these IDs programmatically. Would you like me to provide a general answer based on typical REST API patterns, or would you prefer to reach out to support for the specific API endpoint? **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.