Forum Discussion
APIs are specific to the application(s) involved.
https://en.wikipedia.org/wiki/API
It's possible that BBC has one in place for what you are looking for. Take a look on their website and see. If you find something that looks like it will work, then post back here and we can help you set up to use it in TC.
Hi Marsha_R
I couldn't find an API for BBC website unforunately but I would still like to learn how to use an API so I got the Weather API (free weather api I found online) and now I got an API key and all that. How would I go about using this in a TestComplete Test?
- AlexKaras4 years agoChampion Level 3
Hi,
Not that it is my domain, but nevertheless...
Basically, web services are of REST or SOAP type (the former is architectural approach while the latter is standard).
TestComplete provides extended support for SOAP web services via the Web Services item type (https://support.smartbear.com/testcomplete/docs/app-testing/web/services/overview.html) and limited support for REST via the aqHTTP object.
If you are looking to get a weather data from the BBC site and there is no information (StackOverflow or plain Google) or documentation on the site itself about how to do this, I would capture traffic issued by the browser when navigating to the page that contains weather information using some recording proxy (Fiddler for example) or browser's developers tools, analyze captured traffic and search for request(s) that request and obtain weather data. Then examine parameters required by request (URL parameters, request parameters, request body data) and craft corresponding request in TestComplete to get the data that I need.
If you just like to get a practice with some free sample web service, then you need to check its documentation (either written or documented, say, using Swagger) and, again, create corresponding request in TestComplete.
For more detailed talk you might want to let us know the link to the web service you'd like to work with.
Related Content
- 12 years ago
- 14 years ago
- 3 years ago
- 2 months ago
- 2 years ago