Script not matching Transcript in Test Suite API
# support
r
I'm running vapi test suites through the API with this call:
Copy code
console.log("item.input", item.input)
      const createdTest = await vapi.testSuiteTests.testSuiteTestControllerCreate(testSuite.id, {
        scorers: [{ type: "ai", rubric: scorer }],
        type: "chat",
        script: item.input,
        numAttempts: 1,
        name: `${experimentName} - Script ${i + 1}`,
      })
I can see that the item.input is unique every time it's created and it shows the different scripts on the dashboard as well. But the transcript shows the same test user script for every single one. Is there a caching bug or creation bug occuring on VAPIs endpoint or am I invoking this incorrectly?
Tried type: voice as well - same issue of all transcripts only repeating the same user input as first test but the script field showing the text it should be using.
k
Use manual testing for now and report the run IDs and timestamps here
k
Looking into it
r
Hey @Kings_big💫 , figured out the issue. I'm creating an assistant in my codebase and was passing that thru to make the test. However, the name of the test was matching an existing one so it kept failing. After providing a brand new, unique name - it worked.
Copy code
const assistantToUse = await vapi.assistants.create({
      name: realName, <- had to make this unique from any existing test suites; I was trying to re-use an existing one.
      ...assistant,
    })

    const testSuiteParams: Vapi.CreateTestSuiteDto = {
      name: realName,
      targetPlan: {
        assistantId: assistantToUse.id,
        phoneNumberId: "<REDACTED>",
      },
    }
c
Thanks for sharing the details. I've shared this with the team. We are currently gathering all issues and data related to the test script problems. The team is working to understand the root causes and will dive deeper to address them. Once fixes are deployed, I'll update you.
2 Views