ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
WHAT IS ENVIRONMENT VARIABLES?
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: WHAT IS ENVIRONMENT VARIABLES?
Answer
# 1
the variable which you have in one action cant be used in

some other action .so by using environment variables we can

use the variables in one action in to another action.

environment variables are 3 types,

(1). user defined internal

(2). user defined external

(3). builtin
 
Is This Answer Correct ?    1 Yes 1 No
Sreeprasad
 
  Re: WHAT IS ENVIRONMENT VARIABLES?
Answer
# 2
Sreeprasad is little right but not completely in my way...

he is right up to his answer..

he didnt say main use..

Environment variables are mainly used to know information of
run after completion of execution...and to pass the
variables from system configuration..

for examples...

If we are doing parameterization and after completion of
execution we want to know how many iterations were executed
and in each iteration what are the values were taken..we can
see them with out going results window and by writing
notepad file and using built in environment variables.

for this we create a folder for each test and we create text
file for each action..we will write these information in
notepad files.

For more information about this mail me@
nanda.dreddy@gamil.com
 
Is This Answer Correct ?    2 Yes 0 No
Nanda
 
 
 
  Re: WHAT IS ENVIRONMENT VARIABLES?
Answer
# 3
The following are the uses of Environment variables:
1) Environment variables are used to pass the variables
across the Actions in the Test Script.
For Ex: We can have max of 255 Actions in a Test script.
With the use of normal variables we cannot pass the
variables  declared in one Action to another.
But with the help of Environment Variables we can pass the
variables across the number of Actions in a test script.
I will elaborate this with a small example:

Without Environment variables:

Action1:
option explicit
dim a,b
a=10 
b=20
msgbox a
Action2:
msgbox b

when you run the script the output of Action1 would be 10
but there will be no output of Action2 (only blank msgbox
will be displayed)
So to overcome such problems we use Environment variables.

The same Ex with environment variables:
Action1:
Option explicit 
Dim a,b
a=10
b=20
msgbox environment ("a")

Action2:
msgbox environment ("b")

Now Create the Environment variables by
File-->Settings-->Test Setting-->Environment
Select variable type as User defined then Click on the 
"+" symbol Add environment parameter Name=a Value=10
repeat to give the name and value of "b" 
Check the "Load variables and values from external file 
Click apply and OK and run the script.

2)TO overcome the problems associated with "Hard-coded"
values we use Environment variables.

Hope u find it useful
for further details contact on: sheshadrineela@yahoo.com
 
Is This Answer Correct ?    0 Yes 0 No
Sheshadri
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
how to tell about testing a website in interview using qtp?? what r the points to be covered mainly?  2
whenever a scenario is recorded ever, it creates a object repository automatically (‘per action’ /local ). we do not need to make them individually…then why we need a shared object repository. How it will be practically utilized ?? your input will be highly appreciated..  4
What is VSS? Is it used in Automation(QTP) Or Manual? what is menus in VSS? TCS2
What is positive test case and Negative Test case? What is the meaning of Real World Scenario's?  1
Diff between WEB APPLICATION AND CLIENT-SERVER APPLICATION?  2
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically.. Thatavarti-Technologies2
what is syncurnisation point? what is the use of this in real time environment? plz explain? AppLabs5
explain all the check point in QTP? BirlaSoft1
My project title is "DRUG Audition and research management" it comes which domain?  3
What is a Run-Time Data Table? Where can I find and view this table?  2
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?  1
can u give one scenario for for PopWindow Exception & write Code for that? Cap-Gemini1
What type of error u will get if u have not installed java add in in java project? what is the error name ? Verizon1
what skills needed to be good test automation?  1
HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is some condition. like if "text" THEN msgbox() else endif Xavient6
Where the text version of script file located in file system?  1
where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code  3
How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.  4
can u tell me the the cost of automation tool QTP ?  2
what is difference between application testing and product testing?  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com