Help Index
TestComplete Website
Does Testuff have an automation API?
Yep! It allows your automation to update test results in Testuff. Automation can also be used to automatically export your data.
How does it work?
Via HTTP POST over SSL. Each company has a custom URL and a unique token for identification. Each test has a unique ID. Test results are POSTed to the relevant URL and include as parameters the token, test ID, lab name, and test result. Following the request, Testuff updates the test result accordingly. Read more about the automation URL on the automation page.
Sample: TestComplete
Sub Test1()
'Clicks at point (74, 14) of the 'ZapMainForm' object.
Call Aliases.Skype.ZapMainForm.Click(74, 14)
'Clicks at point (56, 19) of the 'TChatRichEdit' object.
Call Aliases.Skype.ZapMainForm.Conv_1554.TChatEntryControl.TChatRichEdit.Click(56, 19)
'Enters 'hello[Enter]' in the 'TChatRichEdit' object.
Call Aliases.Skype.ZapMainForm.Conv_1554.TChatEntryControl.TChatRichEdit.Keys("hello[Enter]")
' Calling Testuff here - don't forget to change the automation URL, company_id and token
' from the Testuff API settings screen
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
URL = "https://serviceX.testuff.com/company_id/automation?token=01234567890"
objHTTP.Open "POST", URL, False
' replace test ID with correct value from Testuff
objHTTP.send ("lab_name=sanity&test_id=67572323abcd&status=passed&tester_name=John&comment=blabla")
End Sub
