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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

608


Describe function procedure in vbscript.

549


How to check bitmap output value?

623


What are test settings and global settings?

577


How to use the object spy in quicktest professional 8.0 version?

542






How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1440


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1558


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1298


What the differences are and best practical application of Object Repository?

583


On what document base Descriptive programming is written if build is not yet ready ?

873


What is the quicktest professional (qtp) testing process?

566


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1614


what is clean sweep?

1877


How can I change object description or check point values in qtp?

552


What is the difference between the design-time and run-time data tables?

552