waht is the diff b/w Environment variable and Global
variable in qtp?? explain types of variable in qtp??

Answers were Sorted based on User's Feedback



waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / jay prakash

There are 2 types of Environment Variables in QTP:
1. User defined
2. Built In

The significance of environment variable is that the value
of environment parameters remains the same during the test
playback, regardles the number of iterations, unless you
change the value. The name of the built in environment
variable will be common across the test. Like UserName, OS
etc.
To see the list of env var you can go to File -> Setting ->
Environment Tab.

Please let me know in case more clarification is required.

Is This Answer Correct ?    8 Yes 1 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / murali

Environment variable can be used across any Action and any
test with in QTP. Since it is declared in QTP Environment
section

Global variable can be used with in a test and functions
associated to that test.

Is This Answer Correct ?    10 Yes 4 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / bfakruddin

Environment Variables and global variables are used for
similar purpose...

Environment Variables also have the global scope to access
in any test or action or Function...

Environment Variables: External Environment variables have
the global variables scope to use any where... They might
be stored in .xml file, .txt file or .ini files.. and use
where ever we want...

But... Internal Environment Variables can't be used with in
the different Tests... can be use with in several actions
in one Test.

I hope... you get understood... If not.. please let me know
here itself.

thanks & regards
Baba Fakruddin.D

Is This Answer Correct ?    6 Yes 2 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / medabalimi

Environment Variables:
As the name implies the Environment variables contain the
information related test environment and machine
environment.
Two types 1.Built-In and 2.User Defined. Though the Built-
in values seems to be constant they are actually variables,
the machine takes care of maintaining appropriate values.
Not editable directly by a user from QTP. Ofcourse the user
defined can be modified any time from QTP.
They are just Name & Value pairs and are of type string
data. Accessible globally in QTP tests. Example:
UserID="SomeName" Where Name="UserID" and Value="someName"

We can say the Environment variables are subset of Global
variables in one aspect. That means we can declare
variables with Name Value pairs of any type supported by
the script language. We have the advantage of defining
dimentional/hierachical data (multi dimentional arrays)
which is not possible with environment variables.

Is This Answer Correct ?    1 Yes 1 No

waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable i..

Answer / babu

Hi Reddy,

We can say Environment variables are the global variables
in QTP.
In QTP,as mentioned by Jayprakash we can use environment
variables in QTP.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

Hi,will U Please Provide me details certification for QTP &QC and also please provide me the Material also. Send to mail:jjaanu2mail@gmail.com

0 Answers  


WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)

1 Answers  


1>How to get the browser name by writing the VBScript. 2>How did you used the GetROProperty and GetTOproperty .give real time scenario. 2>Give and real time ex for the bug having "High Severity and low priority"on banking doamin web based application.

2 Answers   Nous,


For which type of project the iterative model is suitable?

0 Answers  


What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  






Differentiate the type of test cases which can be automated and which cannot be automated?

0 Answers  


What are the framework folders?

1 Answers  


how to write vbscript on web applications in qtp. explian with one example?

4 Answers   Wipro,


what is a active x control?can any one brief me about active x controls

1 Answers  


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

0 Answers  


Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create ()

1 Answers  


How to map the test cases to requirements in QC?

4 Answers   IBM,


Categories