Forum Discussion

Emilija's avatar
Emilija
Occasional Contributor
4 years ago
Solved

Call REST API from TESTCOMPLETE

Hi,

We are using TestComplete for Desktop (Version 12.60).

Now we should add API calls in some of our tests.

First, should we buy the web module too?

Does the Send Request operation work without the web module?

Thanks in advance!

5 Replies

    • Emilija's avatar
      Emilija
      Occasional Contributor

      Thank you Justin.

      I have created a send request item, but when I try to get token

      I constantly get an error with code 400 saying 'invalid_client'

      Do you have an idea what could be wrong?

       

       

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Emilija :

        Hi,

         

        You may either ask your developers what this error might mean or use some recording proxy (Fiddler for example) to record the same request sent from some other tool (SoapUI, for example) when it succeeds and from TestComplete when it fails. Analyse the differences and try to eliminate them. (For example, some required header might be missed in the request sent from TC.)