ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How to count the no of objects in XML file(QTP)
 Question Submitted By :: Sivakumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to count the no of objects in XML file(QTP)
Answer
# 1
' 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 ?    3 Yes 0 No
Uday Kumar_anem
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
anyone can explian about types of "Triggere Events" in QTP  1
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is? Wipro3
Can anybody give the code for ALL DATATABLE METHODS)(ex: datatable.getrowcount, datatable.getsheet etc....) and ALL DATABASE COMMANDS (like .getcelldata, which are used to retrieve data from a database and from a webtable)with examples. Accenture1
How to write script to display a message box having the "Date" value of the fourth mail(yahoo account). I've tried it with the web table concept but the content doesn't get displayed? Please help me out to resolve this :-)  2
what is the abbrivation of .mtr in action reposirtory? GE5
What are the main attributes of test automation?  2
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2? Infosys5
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?  2
does qtp need record and playback in realtime. plz tell exactly wat happens HP3
HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM Infosys4
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?  6
After geting the modules where we generate the script ie in qtp or notpad ?  1
Pls answer this: What is the difference between a subroutine and a function? A. A subroutine can call itself; a function cannot B. A function returns a value; a subroutine cannot C. A function can accept arguments; a subroutine cannot. D. A subroutine can call other procedures; a function cannot.  1
please tell me how to identify the index of the link in the web table .links are not constant.example i want to click the link in the inbox ,search the item and click the partcular mail.(mail links count is not constant)  1
How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open ) Infovision2
hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every time 9 th one how can i select plese help me regards balaji  3
qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?  1
list me out the shortcutkeys for some functionlities in the qtp for example to record ,to run ... etc CTS2
What expansion of "MIC" in MICPASS (TEST ReportPAGE) TCS6
Does QTP is "Unicode" compatible?  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com