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 DO THE BATCH TESTING USING QTP?

8 Answers   CTS,


How to build scripts that access data from external sources?

0 Answers  


Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB script) for login page with for web based application.. Any one can Help. I have to complete it in two days I need urgent help.. Ex. if I want to check mail.yahoo.com 1 > If user doed not exist it display "Username does not exist" 2> if invalid Uname and password then it display" Invalid Uname or pass" 3> Loing Sucssessfully. I want to check this types of application by using data table to give values of username and password.. Thanks

2 Answers  


what are the metrics in general we use in testing

1 Answers   Tanla Solutions,


Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)

2 Answers   Broadridge,






Can I import a excel sheet in Action1 datatable? How?

2 Answers   IBM,


Which functionalities of QTP used in banking project? pls any say answer?

0 Answers  


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

0 Answers   GXS,


Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bitmap/image or any other checkpoint. Like if checkpoint passes then if or Else

2 Answers  


Can we call a parameter from an action to other action?

4 Answers  


When Object Repository is available what is the necessity of having Descriptive programming which needs more scripting efforts.

3 Answers  


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

0 Answers  


Categories