How to retrive XML file data in QTP ? using Script(Chandana)

Answer Posted / fayaz

We can load environment variables from an xml file.

File --> Settings and click the "Environment" tab

You can see a check box "Load environment variables "

check it and give the path of the xml file.

when u run QTP , the variables in XML file will be
available.
And you can retrieve those values using Environment.value
("variable_name") from any actions.


Hope this will answer your question

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How software tester can use constants and variables in scripts?

1669


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1560


They asked by using qtp recording writing scripting

2053


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

556


How many number of actions possible in qtp?

592






What are the types of properties that quick test learns while recording?

516


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

1423


Explain different checkpoints in qtp.

706


what is output value in QTP and how it can be used in automation testing

1428


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1408


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

5909


How to create a standard checkpoint ?

546


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1831


How do you create new test sets in td?

520


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1669