Support

Rest API to Create a Test Cycle

  • 1.  Rest API to Create a Test Cycle

    Posted 8 days ago
    I am trying to create a Python Wrapper to Create the Test Cycle for a Test Plan.
    i used below code to Create a API. While executing i am getting the 404 Response Code from Post Funtion.

    Can you please help me to fix the problem.

    TestRunurl = base_url + 'projects/' + str(PLATFORM_PROJECT_ID)+ "/testplans/" + str(TestPlanId) + "/testcycles"
    #TestRunurl = base_url + 'projects/' + str(BRONCOSCOPE_2_0_PROJECT_ID)
    headers = {'content-type': 'application/json'}
    body = {
    "fields": {
    "name": "TestPlan"
    },
    "testRunGenerationConfig":{
    "testGroupsToInclude":[0]
    }
    }
    response = requests.post( TestRunurl, data=json.dumps(body),headers=headers,auth=(ClsJAMACommMgr._Username, ClsJAMACommMgr._Password))
    print(response)

    ------------------------------
    Alagusakthi Gnanadhandapani
    CA
    ------------------------------