How to count the no of objects in XML file(QTP)
Answer / uday kumar_anem
' To find the number of child elements for a specified
parent
Set doc = XMLUtil.CreateXML()
doc.LoadFile "e:\sample.xml"
Set elementCol = doc.ChildElementsByPath
("/Environment/Variable")
temp=elementCol.Count
msgbox(temp)
'To Find the numer of child elements for a root
Set doc=XMLUtil.CreateXML()
doc.loadfile "e:\sample.xml"
Set root = doc.GetRootElement()
temp=root.ChildElements().count
msgbox(temp)
My sample XML file is like:
<Environment>
<Variable>
<Name>Name</Name>
<Value>Uday Kumar</Value>
</Variable>
<Variable>
<Name>Designation</Name>
<Value>Senior Software Engineer</Value>
</Variable>
</Environment>
| Is This Answer Correct ? | 10 Yes | 2 No |
How do I get the QTP scripts result in xml format by using vb script function?
How many types of status are there?
what is meant by Utility object and utility functions?can u all pls explain these clearly.
HI, Anybody can explain Automation Test Framework...and wht do we do before start of Automation.....
Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT
How can you pass value one action to another action?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
How to analyzing the checpoint results?
Hi guys can any plz help me how to send fax in sample Flight Appication
What is parameterization? What is syncronization pt.?
3 Answers Semantic Space, SRM,
what is meant by source control?
Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail prasanna.sabat@gmail.com