how to create the varibles and how these are connect to qtp?
plz tell me

Answers were Sorted based on User's Feedback



how to create the varibles and how these are connect to qtp? plz tell me..

Answer / vengalrao

creating the variables through XML Failes and associate to
the test script or other wise direct write the script
statment Environment.Value("variable name" or
parameterizing the value)

Is This Answer Correct ?    0 Yes 0 No

how to create the varibles and how these are connect to qtp? plz tell me..

Answer / harsh pruthi

The question is bit vague

You can use the the variables directly in the script by
using DIM x as Number or if the Varibes need to be used
across the test case the can be defined as the environmet
variables

Is This Answer Correct ?    0 Yes 2 No

how to create the varibles and how these are connect to qtp? plz tell me..

Answer / fayaz

As we already know that QTP makes use of VB script, so
declaration of variable will be as follows:

Dim x

and if u wnt to make use of the variable across all the
actions in ur test then the declaration of the variable
will be as follows:

Environment("variable_name").value

and..now u can make use of this environment value anywhere
in ur test...

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

What is the use of breakpoint in qtp?

4 Answers   Zensar,


Explain the features and benefits of quick test pro(qtp)?

1 Answers  


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

1 Answers  


what are the difference between qtp8.2 to 9.0 surya

1 Answers   Bally Technologies,


How to load the object repository at run time?

1 Answers  


How to work with multiple browsers when opened in the window, write the script for it

2 Answers   Verizon,


How can i count the list box elements in QTP ?using script plz explain me (Chandana)

6 Answers   Wipro,


I want to open a Google page without recording a test and i do not want to use system.Util.run command as well how do i do this?

11 Answers   IBM,


In where you are keeping or maintaining shared object repository (file)in your appliction?

2 Answers   Inlogic,


What are the details steps to connect a remote mysql database in QTP

1 Answers   Verizon,


We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?

10 Answers  


how many maximum number of virtual users we can create?

1 Answers  


Categories