1)what is the Exact Meaning of Environment Variables?
2)what is Compile Module in QTP? what exactly it contains
Functions or Actions?
Answers were Sorted based on User's Feedback
Answer / sushil
we use environment variable to make our variable global.
evironment variable can be used across different Script,
Scenario.
suppose u r connecting to database in the five script.
then better define global variable.
u can enter global varible in following way
qtp-->file-->test setting -->environment-->user defined(in
variable type)
or u can create xml file and upload.
about compile module
ans given reddy is correct
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
Answer / brahma reddy
win runner contains compile module.but qtp does not support
complie module.compile module means library files in
qtp ,which contains functions not the actions
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / tvsramakrishnachowdary
whenever the common values to be use in multiple scripts
than it is suggested not to declare local variables in all
the tests individually.It is better to declare all the
common variables in seperate environment file,attach it to
the required tests and use those variables inside the
tests.by doing this the advantage is in future if
environment is change and some of the valuues of those
variables need to be capturedinorder to make the scripts
compatable with the environment with the minimum efforts we
can update values in the environment file instead of
updating in all the scripts.....
Sorry i never gone though compile module concept in QTP
| Is This Answer Correct ? | 0 Yes | 0 No |
How do client side image and server side image work?
What are the different ways to invoke an application using QTP?
How to use reporter.report event in qtp ?
1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?
What is test automation framework?which framework does QTP follow?Need some practical explanation as to how u will start ur testing process following a particular framework?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
What is output value? How many types of output values are there in qtp?
Hi Friends, while playing the recorded test i am getting this error "Cannot identify the object "q" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application." error is coming in this line of code "Line (2): "Browser("Google").Page("Google").WebEdit("q").Set "airtel broadband"". " .... please tell me how to overcome this problem. need help asap... Thanx in advance
What are the ways you can synchronize?
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.
What is a runtime datatable ?
How to retrieve the property of an object in QTP?