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 QTP batch testing tool?

2 Answers  


can anyone tell me from where i can download qtp demo or crack version

0 Answers  


Using Regular expression in Date format DD/MM/YYYY (0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[12])/([0-9]{4}) in this regular expression year 0000 also accepted.I need atleast any one single digit must be nonzero value (like 0009,1000,0034)

1 Answers  


What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?

4 Answers  


Explain QTP using different development techniques ?

0 Answers  


Write a QTP script to print all the link names displayed in a web page

4 Answers   TCS, Virtusa,


Which property do you use to retrieve or assign data into a cell in a Data Table object?

1 Answers  


Hi all, I am New to QTP . I am Now in critical situtaion. I want to know How to create our own object respository for our application. please say the answer with example.

3 Answers  


Hi, I am trying to automate the web application for generating Reports.I am facing issue with IE while running the script. After 4 report IE crashes.I am using QTP 9.5 with IE version 7. Can anubody give me solution for this issue. Thanks in advance-Jyotsna

0 Answers  


setroproperty and getroproperty difference

5 Answers   Ordain Solutions,


how to identify an object which is not in the object repository identification can be done using descriptive programming.

2 Answers  


What are the recording modes in qtp?

0 Answers  


Categories