1)what is the Exact Meaning of Environment Variables?

2)what is Compile Module in QTP? what exactly it contains
Functions or Actions?

Answer Posted / nanda.d reddy

Sushil u have given Answer.

the variables which has to be use in deffent scipts in
different environments( Likes different user
machines,different user logins)can be called as Environment
Variables.
This environment Variables are two types:
1) Built - In
2) User Defined.

1) Built - In : This variables activates only at run time.
and the values of this variables depends on the system
environment which the script is been executing.
For Example:
if u want to report to results that which user is
executed the script and which action has been executed and
on which operating system and how many Iterations u can use
like below.

reporter.Reportevent midDone, "Executed User","This
script is executed by :"&Environment.Value("UserName")

if u want to report Action Name : Environment.Value
("ActionName")
this values will change action by action.

User Defined:
Generally we put the comman variables in XML file
(External user defined Env. File) like URL of the
Application( This will common to all scripts are all
users) , Root_Path of the folder structer, Admin user and
admin password. like this.
this is becoz to avoid the hard coding. we should not
give chance to end users to modify the scripts. if URL of
the application is changed, simply he can change same in
XML file, and can execute.

if u didnt get ping me at :
nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2422


How often were they executed?

2032


How to suppress warnings from the test results page?

597


who QTP recognizes the object stored in object repository?

1655


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

642






How to check bitmap output value?

622


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

2906


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

581


Problem with XML checkpoint in QTP ?

3495


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

588


Explain measuring transaction.

582


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1481


If the objects hierarchy is changing from build to build, then how you will handle that condition?

611


Why qtp always start action1 and does not start action?

596


how to evalute defects in QTP script?

1480