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 |
What is the difference betweent test and component?
An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???
When The Low Level Recording is Used in QTP
Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.
• Re –Engineering the regression testing from 0% to 60% automation. This has saved 4-mandays in every release. what doeas this statement means
in how many ways you perform batchtesting?
What are the features of quick test pro(qtp)?
i have to prepare qtp certification course. so, please send me qtp tutorial notes.
where do you store the test result?
How you can delete excel file in qtp?
How to use library files in QTP? how we can call these files in to script?
what is run-time object in qtp? explain with example?