GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  Rational Robot

 Print  |  
Question:  How do you test XML data by using rational robot



October 10, 2007 03:24:03 #1
 bizzzzzare   Member Since: October 2007    Total Comments: 4 

RE: How do you test XML data by using rational robot
 

Hi,

You can create an XML Object to read RootObject and associated child objects in Rational Robot.

set xObj = CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load(:path of xml file:)
set NodeList  = xmlDoc.getElementsbyTagName("*") // specify incase u wish to retrieve specific elements


oNodeListLength =  NodeList.length

The above code would retrieve all elements from XML ans store them in a NodeList Collection.

Do post back incase of any queries.

Cheers

     

 

Back To Question