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
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
What is an optional step in qtp ?
What are parameterizing tests?
Limitations in QTP?
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
What is the recovery scenario in qtp?
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
Can we run test with out adding object in object repository? How it is possible?
How many add-ins comes by default with quicktest professional?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
How to capture a window in QTP?
• What type of testing questions will be asked for 2+ yrs exp people in interview?