Forum Discussion

lcrenshaw's avatar
lcrenshaw
New Contributor
2 months ago
Solved

Is there a way to parse through a testplan API request and get the test plan key?

Hello,

Is there a way to parse through a testplan API request and get the test plan key? I'm trying to create a new test plan using API requests, then parsing through the request to find the test plan key, and then add a test cycle in the new Test Plan, using another API request with the parse test plan key,all in one run. 

I'm using Zephyr Scale Server

  • I did it this way: Firts I sent the testplan create POST request, it returns the test plan key within the response text JSON string. Afterwards I sent the testrun (test cycle) create POST request using the test plan key as input value so that the testrun gets referenced within testplan.

1 Reply

  • Werner's avatar
    Werner
    New Contributor

    I did it this way: Firts I sent the testplan create POST request, it returns the test plan key within the response text JSON string. Afterwards I sent the testrun (test cycle) create POST request using the test plan key as input value so that the testrun gets referenced within testplan.