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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is quicktest professional (qtp)?

760


What is keyword view in qtp?

714


can the activities of test case design be automated?

1642


What are the automation metrice in your project?

1930


How many add-ins comes by default with qtp?

780


What is the difference between the design-time and run-time data tables?

767


What the differences are and best practical application of Object Repository?

813


Explain the features of quick test pro(qtp)?

762


What is text/text area checkpoint?

794


How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.

1923


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

836


What are the features and benefits of quick test pro (qtp 8.0)?

785


I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

1650


What are the different types of recovery operation?

741


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

2027