Forum Discussion

Daniellovesmith's avatar
Daniellovesmith
Contributor
6 years ago
Solved

Can we add api calls into the script (JAVA SCRIPT)(As different tests have different prerequisites)?

  • AlexKaras's avatar
    AlexKaras
    6 years ago

    Hi,

     

    Exact implementation depends on the target endpoint.

    TestComplete provides support for SOAP Web Services via WebServices functionality and it may be the best option for this case.

    There is no built-in support for REST Web Services and you shoult craft requests manually in this case using HTTPRequest component provided by Windows OS.

    In case of TCP endpoint target, this article may help: https://support.smartbear.com/viewarticle/9003/

     

    The major possible problem for all above options may be related to the authorization required by the endpoint. It may be not easy to authenticate in case of NTLM, Kerberos, etc., but some workaround may exist depending on the design of the tested system.