cancel
Showing results for 
Search instead for 
Did you mean: 

Running testcomplete tests using the QAC REST API

Highlighted
Contributor

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
Highlighted
Occasional Contributor

Re: Running testcomplete tests using the QAC REST API

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

New Here?
Join us and watch the welcome video: