Is it possible to update a single test case step? I'm using the test_trigger.py file i found on git to run the test case steps. I can run each step individually but upon making the patch request, i also get the Mismatch error...
Example of the params I'm sending along:
paramsTest = [{"op": "replace", "path": "/fields/testRunSteps", "value": [{ "status": "PASSED"}]}]
r = requests.patch("https://mysite.jamacloud.com/rest/latest/testruns/" + str(test_run_id), json = paramsTest, auth=auth)
print(r.text)
I've tried a few ways to access the correct testCaseSteps dict that i need to update the status for, but none have worked so far.
------------------------------
afranklin
------------------------------
Original Message:
Sent: 05-02-2017 14:00
From: Sam Detweiler
Subject: Posting test results via REST returns a "Mismatch in number of steps. Cannot execute Test Run." error
in the testrun data/fields is the array testRunSteps.. get the size of the array.
Then reset the array of structures with "testRunSteps": [ {"status": "FAILED" or "PASSED"}, (repeat for each step) ]