Forum Discussion

lindenquan's avatar
lindenquan
New Contributor
4 years ago

Zephyr Scale - How to specify test cycle in Junit report ?

I'm trying to use RESTfull API /automations/executions/junit to create test cases given a Junit test report. According to the document,  I can specify projectKey and autoCreateTestCases. But I cannot specify test cycle. The API always creates a new test cycle.  Could you tell me how I can specify test cycle in the report ?

 

  • msalvador's avatar
    msalvador
    Frequent Contributor

    I don't know if is possible to specify a test cycle, I post my json below, and when I send the request a new cycle is created:"Automated build"

     

    Here the json(I appreciate if someone could write all the fields)

    {
       "version": 1,
       "executions":[
          {
             "source":"Internal",
             "result":"Passed",
             "testCase": {
                "key": "QA-T196"
             }
          }
       ]
    }
    • lindenquan's avatar
      lindenquan
      New Contributor

      yeah, it always creates a new cycle. It seem there is no way to specify a existing cycle

      • msalvador's avatar
        msalvador
        Frequent Contributor

        How do you generate the json? via junit or something else.

        I try to generate it via SoapUI, but I can't do it.

        I have some API project wrote with SOAPUI, and I want to push results in Zephyr.