Forum Discussion

esteban_ark's avatar
esteban_ark
Frequent Visitor
2 years ago

add test execution for several testcases at the same time in 1 call

Hi. is there a way to push several statuses to a execution of several test cases. In this case, the endpoint  https://api.zephyrscale.smartbear.com/v2/testexecutions only accepts one test key in the payload like 

{
        "projectKey""projectjey",
        "testCaseKey""example-T7",
        "testCycleKey""example-R8",
        "statusName""Pass"
    }

I want to add statuses to several testcases that belongs to the cycle R8 but the endpoint does not allow to send it as an array of object example
[
    {
        "projectKey""projectjey",
        "testCaseKey""example-T7",
        "testCycleKey""example-R8",
        "statusName""Pass"
    },
    {
        "projectKey""projectjey",
        "testCaseKey""example-T8",
        "testCycleKey""STMexampleM-R8",
        "statusName""Pass"
    }
]
 
I dont want to use the JUNIT way to do it, because I want to have a internal logic to grab dynamically read the ids from playwright and then append it to the call to the exeecution