Can any one explain about environment variables with examples?

Answer Posted / prathyusha

Environment Variables are used to get the basic information of system .
we do have two types
1.inbuilt environment variables
2.user-defined environment variables

Inbuilt environment variables used to get the basic information of system like test name,action name,user name,os
Eg: Environment.value("User Name")

User defined environment variables
two types
a.Internal environment variables
b.external environment variables

Internal Environment Variables are used to pass the values form one action to another action.
External environment Variables are used to store the master credentials of application.For this we can use Xml files to store the information and we can associate these files to the test and we can read the value using Environment.value("some variable").

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1712


hi nani my doubt is how does qtp process metrix related to software process.

1545


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

3491


give me an example where u used good judgement and logic in solving a problem

3352


what is output value in QTP and how it can be used in automation testing

1432






How to use Environment parameterization? Explain with an example.

1477


Explain types of descriptive programming?

589


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

1313


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

1208


When Recovery scenario actually starts while testing the application?

1538


How can you close the second opened browser?

798


What is ‘object spy’ and what is the function of object spy in qtp?

570


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1600


Explain QTP using different development techniques ?

531


How to find the name of the machine where you are running your automation scripts in qtp?

515