Continuous Integration and QAComplete
Hello QAComplete Community!
On Wednesday the 20th, we hosted our QAComplete 301 Webinar, courtesy of SmartBear Academy, your source for training webinars ranging from introductions to our tools to advanced topics within the software testing space.
This past 301 was about Continuous Integration, specifically regarding how we can trigger TestComplete tests to run from a Jenkins Build, while having the test run results from TestComplete uploaded into the corresponding QAComplete test cases automatically.
The above is a specific implementation of CI of course, but it can serve as a template for those of you hoping to take advantage of QAComplete's REST API. Thus, one could use any build tool, as well as any automation tool (although we hope it's either SoapUI or TestComplete!) in concert with QAComplete to set up one's CI framework.
The link to Wednesday 301 is below, so you can see how I set up my instance of this type of workflow. After that, I will detail out the abstracted steps I took to get my test run data into QAComplete, without ever having to touch the tool's interface.
https://attendee.gotowebinar.com/recording/8676565498666968077
The general algorithm I followed to get my test results into QAComplete via our REST API:
- POST to create a new test run in QAComplete
- Query the “id” field from the response returned from the above POST method. This “id” is your RunId.
- GET to retrieve the ItemId from your test case in your test run
- Query the “id” field within the “results” field in the response returned by the above GET method. This “id” is your ItemId.
- PATCH to update a test case's run results in a test run
- POST to upload the test log for your test run
After these 6 steps, whether you want to script them out, use cURL, or use the command line, you should be able to have your test results populate into QAComplete in an automated fashion. Please let us know if you have any questions, comments, or feedback about this integration, and see you on the upcoming 101, 201, and 301!
Best,
Param Chopra
Sales Engineer
450 Artisan Way, 4th Floor
Somerville, MA 02145 United States