Automation Tools
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.
Which tools are currently supported?
Testuff API enable us to integrate any tool that supports HTTP requests from a script, so we can integrate with virtually any tool on the market.
We have already successfuly integrated Testuff with the following leading automation tools:
Selenium integration how-to
There are several ways to integrate Selenium with Testuff. Our own preferred method is to export the selenium script into python or perl, and then use the code on our automation help page to update Testuff.
In addition, if you need to integrate Testuff directly from the IDE, or by exporting HTML scripts, we created a selenium user extension for Testuff, which allows you to update Testuff with Selenium commands
To use it:
- Download the Testuff Selenium User Extension.
- Extract call_testuff.js on your computer from the zip file.
- Load it into the IDE. Go to the Selenium options screen and then browse for the call_testuff.js file you saved. Make sure to load it as Selenium Core Extension
- Close the IDE and open it again.
- You should now have a number of additional commands, e.g. resetTestuffParameters, addTestuffParameter etc.
To update Testuff directly from your selenium script, you'd need to provide the correct API url, test ID etc. Make sure to read our automation help page before you start. Use the following commands in order:
- resetTestuffParameters()
- addTestuffParameter(lab_name,YOUR_LAB_NAME)
- addTestuffParameter(test_id,YOUR_TEST_ID)
- addTestuffParameter(status,"passed")
- addTestuffParameter(comment,"your comment text")
- callTestuff(YOUR_AUTOMATION_URL)
You can download Testuff selenium extension on Selenium web site.
<< Automation | Help index | Languages >>
