Updating Test Step details of a Run item in QAComplete with API triggered from Testcomplete Script
I am using TestComplete Project with Python language for Running my automated scripts.
With this I am triggering a Run with the test set ID in QAComplete and fetching the Test Run details and carrying on my execution.
After the completion, i can update the entire test item (test case) as per link https://support.smartbear.com/viewarticle/90201/ which in turn passes all the test steps and updates the status of the entire run as well.
But, I now require to do the following with the test steps which I have no progress so far,
1) Updating the passed test steps with screenshots
I could see no classification of the object attachment for each step (Which is possible of course manually) in the provided API doc.
2) When a test step fails, I have to fail that particular step alone, instead of failing the entire case, which in turn fails all the steps within it.
For updating the status of the test step, i found the link https://support.smartbear.com/viewarticle/90099/ but in this when i try to load the xml of a test run item (test case) I cannot fetch the tag of Actual Results, "<actualresults></actualresults>" in the response received. However, if i try to manipulate the xml manually and send it as a request, the API accepts it and gives out a 200 response, but no changes are reflected in the QAComplete run status.
I have a feeling that am missing something, but not sure what it is. So looking for help from you Experts
Thanks in advance.
PS: Happy to share any additional info required to solve the issue.
Hi Krishna,
1. To add an attachment to a Test Step you need to user the Attachments_Add Operation: https://support.smartbear.com/viewarticle/90347/
Use EntityCode = Teststeps
2. If a Test has a failed Test Step, the status of this Test can be only "Failed". To update a Test Step use the TestSteps_Update Operation: https://support.smartbear.com/viewarticle/90211/
If you have additional questions, please share your xml requests and provide more details.