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

When we try to use test run option "Run from Step", the browser is not launching automatically why?

1 Answers  


what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.???

1 Answers   GE,


i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script

0 Answers  


What is the difference between "call to action" and "call an existing action"

9 Answers   Accenture, Yana Software,


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, as i'm not in a possition to afford any 'Fee' to join in any institutions. Hence, if possible, kinldy mail PDF file to my mail-ID: chakri_avala@yahoo.co.in Regards, Chakradhar Yadav.

95 Answers   Cap Gemini, Citrix, CTS, IBM, Logistics, QA InfoTech,






hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


When i used this below script to insert value in the Datatable... At run time it was inserting the given value in the specified column, But after execution all those inserted values were cleared automatically... datatable("column name",sheetid)=value

1 Answers  


A web page has two butons with same properties and rotating in clockwise direction. how to click on any of the button?

2 Answers   Virtusa,


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


what are the difference between qtp8.2 to 9.0 surya

1 Answers   Bally Technologies,


If requirments changed then how we can teach the QTP this is the new requirment

2 Answers   Accenture,


How to invoke Mozilla from QTP thru VB Script

2 Answers  


Categories