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 happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?

2 Answers  


1)Difference Between Value & RawValue?

2 Answers   Wipro, Zensar,


Can u call txt extension file in QTP?

2 Answers   Cap Gemini,


Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


In QTP, Which are the concepts are needed to do Functional testing and Regression testing?

3 Answers   IBM,






While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

0 Answers  


How you know that a test case is a regression test case

1 Answers  


why you have standardized functions? plzzz guys with real time exp. do answer

0 Answers  


can QTP works on LINUX platfom

2 Answers  


How can I map test requirement to Test Set (multiple test cases)? Under test lab, I have multiple test cases. I would like to map 1 requirement to all test cases under that test set (in test lab)? Currently, I think QC only allow mapping 1 test requirement to 1 test case. Instead I would like to map 1 test requirement to multiple test cases under one test lab.

4 Answers   CarrizalSoft Technologies, DST Global Solutions,


When to Insert transactions in QTP?

3 Answers   Siemens,


Categories