Forum Discussion

dblomenkamp's avatar
13 years ago

Looking for advice on web operations.

My company uses TargetProcess for our tracking, including defining test cases and such. For some of our repetitive regression testing, I've started with the general standard of creating a script function (using JScript) in TestComplete for each test case, something like this: 



function TestCase_TPxxxx()



where the xxxx is the id number of the test case.



TargetProcess's REST API provides an easy way to pull XML, for example, for all the test cases assigned to a test plan. My intent is to pull these, extract the Id attribute, concatenate it into a string, using the eval function to call the test case functions in order, and eventually, post the results back to TargetProcess.



My question is what's the simplest way to set up my test project in TestComplete to make the web call to our TargetProcess server to pull the XML? 
  • Hi Dutch,



    Is TargetProcess's API available via HTTP? That is, is it possible to work with it by sending HTTP requests to a server?



    If this is possible, you can send requests from scripts using the XMLHTTP object.

    There's an example which uses this object to check whether a link is valid here.