How can I create a test-case or unit test from a single test-case

Here is what I’m trying to do.
I have one test case that uses a data-set and read each line for an input.
For each input I do a validation on the respond. This runs in a loop to input and validate my data-set of 800 question.

The challenge:
I’m trying to find a way to create a test case for each question I input from my data-set. I was thinking I could maybe do some type of unit test for each question.

Does anyone has any suggestion on how I might be able to accomplish this?

Thanks!

1 Like

just curious, why? that is UC?

I’m testing a chatbot.

i think you may pair question and answer in dataset and verify that the chatbot for each question has the paired answer by index
it’s just one loop for dataset index