Forum Discussion
Hi
Thanks for the input.My framework doesn't have keyword test. It uses scripts.
I am sharing the code by which I am able to retrieve information from QA Complete using Rest API using Get request. I am unable to Update the result in QA Complete
Sub Main()
Dim restReq, url, userName, password
Set restReq = CreateObject("Microsoft.XMLHTTP")
' Replace <node> with the address of your INSTEON device
' Additionally, any REST command will work here
url = "https://rest.qacomplete.smartbear.com/rest-api/service"
url = "https://rest.qacomplete.smartbear.com/rest-api/service/automation/v2/hosts/799/runs/581441/items/1"
' If auth is required, replace the userName and password values
' with the ones you use on your ISY
userName = ""
password = ""
restReq.Open "GET", url, False, userName, password
restReq.send
MsgBox restReq.responseText
End Sub
To set the test status, you need to send a PATCH request to a URL containing the host ID, test run ID and test’s sequence number. To upload a test log, you can make an API call using the test’s sequence number, test run ID and host ID.
Please refer to the section 6 in this article for details: https://support.smartbear.com/viewarticle/66926/#UploadLogs.
Detailed info about Automation REST API operations can be found here: https://support.smartbear.com/viewarticle/66909/.
Could you please clarify your question and give more details?
- What operation do you use
- What error do you get?
- Please provide us with the script that you use.
Please note that the user account, which is used to authenticate when connecting to the REST service, must have the "Allow editing Steps during Test Run" permissions: http://screencast.com/t/w6gGSkIMu I.e. when a test is run under this account, the following buttons are available: http://screencast.com/t/RNjCcoKqeWgo.
Anastasia
Customer Care Team