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

please any one can explain the keyword driven framework. with gmail example.

0 Answers  


if full in Object Repostoiory then how to load other Object Repository

2 Answers  


your doing one project testing then how u know itis wheather web based application or windows based application?

2 Answers  


How to handle the exceptions using recovery scenario manager in QTP?

1 Answers   Crea,


what is ODC and GDC?

0 Answers   Patni,






what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.???

1 Answers   GE,


What are the technics follow in writing VB script?

0 Answers   CTS,


when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.

5 Answers  


Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com

1 Answers  


What is API

2 Answers   Satyam,


How to find which type of Framework is suitable for which type of application?

4 Answers   CTS,


What is the use of environment variables?

1 Answers  






Categories