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



1)what is the Exact Meaning of Environment Variables? 2)what is Compile Module in QTP? what ex..

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

1)what is the Exact Meaning of Environment Variables? 2)what is Compile Module in QTP? what ex..

Answer / 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

1)what is the Exact Meaning of Environment Variables? 2)what is Compile Module in QTP? what ex..

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

1)what is the Exact Meaning of Environment Variables? 2)what is Compile Module in QTP? what ex..

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

Post New Answer

More QTP Interview Questions

when we enter url,one page should open.write a vb script ,that page is open or not

2 Answers   Blue Chip India, Persistent,


What r types of parametarizations?

6 Answers  


What is the extension of script and object repository files?

4 Answers   Crea,


If I give some thousand tests to execute in two days what do you do?

0 Answers  


How to capture screen shots when an error occurs?

2 Answers  






What is the use of sendkeys.In which cases we Use this sendkey.Pls explain with example.

3 Answers   Cap Gemini,


How to insert screenshot on to the body of outlook? -1 how to use insert-picture tab in new email outlook to insert image in the body. Suggest something.......

1 Answers  


If created one virtual object? Next time I changed the window position will it work?

0 Answers  


how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.

3 Answers  


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  


I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2nd place to 3rd place Etc… in my webpage. I wanted to write script for dynamical objects like above example. Could you please send me the answer for above query.

9 Answers   IBM,


Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?

0 Answers  


Categories