I need to make a call to our web service and verify the data returned against our application. Does Test Complete support this type of testing? Do I need to be well versed in XMLDOM to write the necessary code?
I've already added the web service and made the call to the desired method. Deciphering the data is where I get stuck.
Please see the "Functional Testing of Web Services" and "Web Service Checkpoints - Overview" help topics to learn how to accomplish the task. Also, please see the following SQAforums thread for more information: http://www.sqaforums.com/showflat.ph...gonew=1#UNREAD
I did look at the section you recommended before I posted my question. I did not find it beneficial as I'm not comparing XML documents. Instead, I need to work with the raw xml string returned by the Web Service and compare certain nodes to items in a dropdown list.
Is there other documentation I should read up on? Or, do you have sample code for parsing xml stored in a variable?
Thanks for your reply Robert. I appreciate any help I can get. Being a newbie, I have lots of questions even though I may not know how to ask them all. [img]/images/graemlins/smile.gif[/img]
Regardless, I spent hours searching the web, Test Complete Help and getting some assistance from developers on my team to help resolve my problem. It'll take some time to come up to speed on XMLDOM, but at least I was able to get over this hurdle.
I need to work with the raw xml string returned by the Web Service and compare certain nodes to items in a dropdown list
[/ QUOTE ]
The task does not match any of existing checkpoint types in TestComplete, so you will have to write the needed comparison code yourself. Unfortunately, I cannot provide you with any samples since the custom checkpoint's implementation strongly depends on your specific task. You will need to parse the returned response by using the WebServiceInfo.ParseResponse method (see the "WebServiceInfo.ParseResponse" help topic for more information) and compare the resulting data with data retrieved from your controls.