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

hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls.......

2 Answers   Vertex,


How will internal and external links be validated and updated? how often?

0 Answers  


Give me Example for Generic Functions in QTP Framework....Anybody please answer me..Thanks in Advance

3 Answers   BirlaSoft,


if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?

2 Answers   Ordain Solutions,


what is object and child object.. explain ..if possible give some example for better understanding ..

0 Answers   HCL,






Explain different type of event trigger option.

0 Answers  


what type of automation is follwed in the project?

0 Answers   Google,


I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?

1 Answers  


How you test the object which is dynamically changes its location?

7 Answers   Wipro,


How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me

5 Answers   Livetek, Virtusa,


X=10,Y=20 you need to swap the numbers without using a third variable?

5 Answers  


Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.

3 Answers  


Categories