Forum Discussion
Hi!
Query1:
QAC provide a possibility to run a specific keyword test of your TestComplete project suite. To do this you need to specify the Entry Point (path to the item) on the Automations tab. Here is an example of the Entry Point to a keyword test:
TestProject1\KeywordTests\Test1
where the Test1 is a keyword test in the TestProject1 project.
If you have 10 keyword tests in your project, you need to create 10 different test in the QAC Test Library and add Automations with a specific Entry Point to them. You can combine this tests in a Test Set.
Please refer to the Assigning TestComplete Tests to Tests article for details.
Query2:
You need to create an automated test in QAC. After the test run is complete, the test runner will post the top level of detail from the automated test result. TestComplete log is uploaded in two formats (tcLogX and MHT). Also, you can view test run results in the Run History.
Anastasia
Customer Care Team
- rajeev21869 years agoNew Contributor
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
- Nastya_Khovrina9 years agoSmartBear Alumni (Retired)
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
Related Content
Recent Discussions
- 18 days ago