Running testcomplete tests using the QAC REST API
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2019
10:56 AM
12-10-2019
10:56 AM
Running testcomplete tests using the QAC REST API
how can i run tests using the qac rest-api by just using a url on a browser rather than logging into qac.
i'm able to get the test runs by using the below url, but would like to execute tests
http://<hostname>/rest-api/service/api/v2/projects/12917/testruns
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2020
05:34 PM
04-15-2020
05:34 PM
https://support.smartbear.com/qacomplete/docs/developer/api/rest/api/about.html
We have had some success with using a PowerShell script. Excerpt below.
$url = "https://rest.qacomplete.smartbear.com/rest-api/service/api/v2/projects/#####/testruns"
$body = @{
"TestSetId"="#####"
} | ConvertTo-Json
Invoke-WebRequest -Method POST -Uri $url -Body $body -ContentType "application/json" -Headers $header
