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?

Answers were Sorted based on User's Feedback



How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file i..

Answer / badri

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 1 No

How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file i..

Answer / lital

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

How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file i..

Answer / sushma

Environment("Designation") = "Student"
msgbox Environment("Designation")

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

Hi Friends,will any body tell to Me for which Auomation Tool their is great Requirement inht eMarket Eithr the QTP or WINRUNNER and for what reason and how long it is going to remain and wat the Scope for the automation Testing In the Future Please tll to Me In Details Ok .

2 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

0 Answers   TCS,


How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.

2 Answers   Accenture, CSC,


How many function you use in your application?

2 Answers   Polaris,






Can anybody help me by sharing the code for checkbox in qtp using vbscript.

2 Answers  


In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?

4 Answers  


banking project description for software tester

0 Answers   Semantic Space,


give me descriptive programing code sample flight application in qtp?

8 Answers   CA, IBM,


Mention the different actions types of qtp.

0 Answers  


I have two actions in my QTP test and two iterations in my DataSheet. I want to execute the Action 1 for the two iterations only after which i want to exceute the next Action2. How is this possible?

4 Answers  


Define object spy ?

0 Answers  


Categories