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

How to test the login page in different ways in automation testing and i need code?

0 Answers   Cognizant,


what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


what r the drawbacks and limitations of QTP?

2 Answers   NIIT,


Explain the keyword createobject with an example.

1 Answers  


how will u choose a tool for test automation ?

1 Answers  






whare exactly we have to use functions and sub routain

0 Answers  


Please anybody can tell the where can i get the information about pharma and bank testing, i put the pharma&bank projects in my resume, so i dont know what to tell about them, so where can i get the information and what we test for these, i need domain information, what r the screen we test?

0 Answers  


What are the automation metrice in your project?

0 Answers   Accenture,


how to test power point using QTP 8.2 ? What are different methods to retrieve value from Application during runtime ?

3 Answers   HCL,


Hello friends..... On which areas of an application we can not test with QTP

0 Answers   Thatavarti Technologies,


Test cases for Traffic Signals

4 Answers   AppLabs,


Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

4 Answers  






Categories