how are environment variables used in real time projects
(testing)?what answer should be given about this in
interview.need real time explanation breifly?thnx in
advance.

Answer Posted / m.hemkumar

Environment variable is a global variable where ever you
wnat you can use
Defining Environment variable:
Environment("variablename")=34
Using Environment variable:
msgbox Environment("variablename")

Note:

1)it is used when we want value from differnt action
2)it is used when we the value generated in one function is
used in different function
Ex:
First_Fun a,b

public function First_Fun(a,b)
b=a+b
Environment("c")=b
Second_Fun()
end function

public function Second_Fun()
msgbox Environment("c")
end function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

637


Explain how qtp identifies object?

613


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1430


what is the advantages and disadvantages of using functions instead of re usable actions

1433


Write a script to verify font style and color of a windows object using descriptive programming

837






Name the different types of recording modes?

580


Give the syntax to load function at run time.

631


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

1409


What is the use of Debug Viewer?

1492


what you mean by artifact,milestone...

1499


How to remove associated function library?

566


Where we use data driver in qtp?

613


what is test scheduleling?

2017


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

925


Can anybody post some real time scenario in qtp? please its very urgent.

1805