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

What is Environment Variable and when we apply this in QTP?

3 Answers   TCS,


What are the features supported by UFT?

0 Answers  


How to find duplicates in an array and remove them efficiently?

2 Answers  


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

3 Answers   BirlaSoft,


How will you enchance the script?

1 Answers  






Can we use index on view?

0 Answers   Wipro,


What is the main difference between QTP 8.0& QTP 9.2.And what r the features and benefits of QTP.

1 Answers   HCL,


How can we conduct U-I Testing by using QTP??????

0 Answers  


VB - Script Training in MUMBAI.

1 Answers  


Does QTP work in UNIX environment

5 Answers   BirlaSoft, C1 India,


where do you store the test result?

2 Answers   HCL,


What is the difference betweent test and component?

1 Answers  


Categories