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 do I modify a value of an elemnt which is not the first 
one in xml file?
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>

for example, I'd like to change the value 'Senior Software 
Engineer' to 'Student' in the second element. How do I do 
it in QTP?
 Question Submitted By :: Lital
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do I modify a value of an elemnt which is not the first one in xml file? 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> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?
Answer
# 1
open the xml file in notepad and change the value and again 
upload the xml file.

           or

we can create internal environment value, and call in qtp
 
Is This Answer Correct ?    0 Yes 0 No
Badri
 
  Re: How do I modify a value of an elemnt which is not the first one in xml file? 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> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?
Answer
# 2
I Badri, thanks for your answer, but I actually meant, how 
do I do it automatically in QTP and not manually by opening 
the xml via notepad...

Thanks anyway, Lital.
 
Is This Answer Correct ?    0 Yes 1 No
Lital
 
 
 
  Re: How do I modify a value of an elemnt which is not the first one in xml file? 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> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?
Answer
# 3
Environment("Designation") = "Student"
msgbox Environment("Designation")
 
Is This Answer Correct ?    0 Yes 3 No
Sushma
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
we have 10 automation scripts. how to call them from one main script.  2
anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example  2
how to write this script using descriptive programming? the script below is the script generated by QTP plz write the script using descriptive programming? plzzzzzzzz do answer thanku Browser("Welcome: Mercury Tours").Page("orkut - login").WebEdit("Email").Set "test123" Browser("Welcome: Mercury Tours").Page("orkut - login").WebEdit ("Passwd").SetSecure "475259b450e3d212bef4a5f5ce9d32ebcbf4" Browser("Welcome: Mercury Tours").Page("orkut - login").WebButton("Sign in").Click Browser("Welcome: Mercury Tours").Page("orkut - home").Link ("Logout").Click Browser("Welcome: Mercury Tours").Page("orkut - login").Sync Browser("Welcome: Mercury Tours").Close  1
Hi,How to write regular expression for inbox(10) {here 10 is changing while playback}.tell me the pettern.  4
What kind of errors can b handled in QTP in real time scenario?  1
what is the extension for QTP files? AppLabs6
In web page there is five OK buttons available, while recording i click on 3rd OK button, How QTP identify the 3rd OK button while running script? Is qtp identify 3rd ok button? Polaris5
. Types of properties that Quick Test learns while recording?  1
what are the attributes of QTP?  3
What is the difference between functional spec. and Business requirement specification? Infor4
What is the difference between link and hyperlink?  1
Which is the best testing institute for QTP training in Hyderabad.  3
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why? Accenture3
Hi any body can tell me the in detaled information about Description.Create() thanks in advance  2
I want to open a text file and then search some specified text in it and then replace that text with some other text i found that text in .txt but do not know how to replace that text can any body help me. if possible put the code for qtp  1
What is the difference Between LowLevel and Normal Recording Modes?  1
suppose u hav a dialog or window which contains 10 buttons with same name & value. now how to check each button? i.e. how qtp indetifies these objects separately?  2
How can you find Local Host Name by Using QTP?  4
How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?  1
what is QTP batch testing tool?  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