https://retellai.com/?utm_source=discord&utm_medium=seo logo
Test case data issues
# ❓・bug-report
z
Test cases no longer pick up dynamic variable values from the fallback values set up here. Now, each test case wants its own data set within the test case. This is a huge change because it's broken all my tests, which depend on the central data setup. Each of my tests has about 50 data points, and I have about 100 test cases. So, does that now mean I have to enter 5000 data points by hand? There is no ability to download or upload entire test cases, download and upload data sets, or even duplicate a test case. You guys need to fix this. Retell is the market-leading system for Voice AI right now, and this stuff simply needs to be more convenient.
o
Hello @zigzag8784, there is no change the test can still use the default values
z
@Omar Ashraf | Community Lead I am afraid you are mistaken, please take a look at this agent and run the test case agent_19f61ef304ef037c39121f54aa
you will see that the agent cannot find its own name, while it was correctly setup as a fallback value
@User ^^ I need urgent help on this
o
Hey @zigzag8784 , i did check again and the test chat works fine as i showed you , but the simulation indeed don't pick the default value.
I will let the team know
z
@Omar Ashraf | Community Lead Bro, so the whole issue is the test cases. This was working correctly, now it's stopped, and I cannot complete my work because I have 110+ tests depending on it
@Omar Ashraf | Community Lead Please see this agent and you will see what I mean agent_955ebe09eb69076c2267404656
o
Yes, i see what you mean.
I informed the team with the problem when i get a respond i will let you know.
z
i was just reading over other peoples issues and thought you may like to know you can intercept the network request for creation of test cases and simply inject them directly with code. its a little aside from what you were asking but it really speeds up the process of adding test cases. we don't have the api exposed on the open api... but it is just a api call internally u can just snatch ur bearer and push the data manually. we actually have a llm write test cases for us and push them to our bots.
z
Nice but How to you actually make the API call?
z
eh 2 secs ill get u a pic
ok so u go to the sim page make sure u open network from F11
then add a single test case
think ur looking for this one
if u copy the fetch
one sec let me anonomise mine so u can see what it looks like
z
I know what API to call, and also what payload to send
my question was how to send the api call to the server
z
oh up to u? think i wrote a curl last time
z
I see
ok I will have to learn how to do that, I doknow postman
z
i mean just dump it into a ai and ask it to write you somthing nice in python
z
so that might work too
z
or a simple linux bash script doing individual curl requests
z
good point
So you a retell customer? or part of the retell team?
z
i assume they will add it into the official api at some point. at this point it needs a bearer token so u have to do one manually to snatch it
oh im just a rando
😄 i just did some work for a client who had a lot of test cases needed
and there was no chance i was writing them by hand 😄
z
Man I have the same kind of issue here
z
after about 10 i just noped out and if ur feeling the same
z
yup
z
thought u may like to know
i know they will get around to adding it to the full api at some point
z
Its actually really helpful, please tell me more about yourself and what you do
z
just bear in mind it doesnt use a webhook api key it uses a bearer token so u need the one generated by the webpage
me im retired i owned a large telecoms company i started out of uni
i retired at 29. now every now and again old contacts ask me for help with stuff so i pop back into the market place to help them out. been doing ai stuff for the last i duno 8 years or so. so when a firend asked me to help get vicidial working with retell it sounded like a fun project so i helped him out for his call center
z
how cool, retired at 29!
z
i was actually looking to see if anybody was talking about x-sipheaders not passing. i dont need it but another firend told me they did when i told em i was working on retell. i use the "register-phone-call" api so it makes no difference to me. but when trying to pass sip headers via dialplan in asterisk nothing worked. i didnt have a answer for him so i thought id check here saw ur issue and felt ur pain 😉
z
So kind of you, I really appriciate it, let me try to set it up and will let you know how it goes
z
cool it should help if u have multiple bots... he has like 20-30 its annoying as all hell when you copy a bot it doesnt copy the test cases. thats why i origionally came up with the work around. i should probably add it as a feature request on retell tbh
remember! this is not official advice i dont work for them 😉 good luck
z
Yeah I posted that as a bug some time ago
ok gonna go try this out, sent you a DM to keep in touch
@Omar Ashraf | Community Lead Still waiting to hear back on this...
o
I didn't get respond yet , once i get respond from them i will let you know.
The team put the feature on the road map.
d
@Omar Ashraf | Community Lead any updates on making this endpoint public?
o
d
I am using the import json file today, and have a bispoke internal tool that will generate test scenarios based on the agent. I was hoping to allow my team to import test cases and run a batch test from the app, rather than downloading json -> upload json then batch test
Is there an API get get the test_case_definitons_id by agent_id
o
unfortunately not yet