Forum Discussion
- baxatobCommunity Hero
Hi,
You are speaking about API testing. You need another tool to work with rest-services (like a SoapUI) or create your own script using one of the javascript rest-clients (like restful.js or something else).
- Colin_McCraeCommunity Hero
You could possibly do something with the Chrome API's?
It provides a bunch of them. https://developer.chrome.com/extensions/api_index
eg - https://developer.chrome.com/extensions/devtools_network
Looks like it should get you into the area of Network messages such as those in your example.
I've used Selenium & Python to extract Performance metrics from browser pages before. But I've never tried using the Chrome API from TestComplete. I suspect it could be done, but having never actually used it, I couldn't say for sure.
- coffeeContributor
Thanks all. :smileyhappy:
Just wondering if we can use TestComplete to automate restful API testing ?
- Colin_McCraeCommunity Hero
You can.
You can integrate with SoapUI.
Or you can write something yourself to do it directly.
Direct approach discussed here: https://community.smartbear.com/t5/TestComplete-Functional-Web/TestComplete-support-for-automating-REST-API/td-p/110066
And another discussion about this, which seemed to end up with SoapUI integration, here: https://community.smartbear.com/t5/TestComplete-General-Discussions/Automate-REST-api-using-TC/td-p/131878
Personally, I have a whole bunch of script extensions hooked into the TFS API to allow to update TFS directly from scripts. I used the XMLHTTP object and wrote it myself. As long as you have access to decent docs for the API you want to use, and some way of parsing the response (I used a JSON Parser), it's not terribly difficult.
- kevin_kapellFrequent Contributor
Try using Postman.
Related Content
- 5 years ago
- 2 years ago
- 3 years ago
Recent Discussions
- 3 days ago