tell me the script for envirnment value parameeter with an
example. which situation envirnment valu parameter is used

Answers were Sorted based on User's Feedback



tell me the script for envirnment value parameeter with an example. which situation envirnment valu..

Answer / jay prakash

There are several builtin environment variables provided by
QTP. When ever you want to use one just use it like this:

strName = Environment.Value("UserName")
msgbox strName

For the list of env var you can see File -> Settings ->
Environment.

Please let me know if it helps.

Is This Answer Correct ?    6 Yes 0 No

tell me the script for envirnment value parameeter with an example. which situation envirnment valu..

Answer / saravanaraja

The Following code is used to apply Environment value to
the text field:

Browser("Title:=.*").Page("Title:=.*").WebEdit("html
id:=").Set Environment("OS")

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

what is selective recording ? and normal recording?

1 Answers   iSoft,


Test Life cycle starts IS it Requirments stage or Test Initiation?

1 Answers  


What is Reusable component is QTP...Anybody can answer it..Thanks in advance...

8 Answers   Siemens,


How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!

4 Answers  


How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me?

1 Answers   Livetek,






can any one explain with an example how to test Web application using qtp

3 Answers  


What is diffrence between Global variables and Environment variables...Anybody can give me answer..Thanks in advance..

3 Answers   IBM,


Which scripting language used by quicktest professional (qtp)?

0 Answers  


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

5 Answers  


How to check feasibility of the appliction?in automation testing?

0 Answers   CTS,


HOW TO FIND WEBTABLE? HOW TO RETRIVE THE WEBTABLE VALUES? PLZ TELL ME THE PROCEDURE.

2 Answers   TCS,


Can anybody give the script to addsheet, add column,add values under that column in the rows?

2 Answers   McAfee,


Categories