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

explain structured testing? plz guys with exp. do answer

0 Answers  


What is the vb script when the url enter into the browser

2 Answers   Satyam,


what is the Command used to start the QTp from Run.(start-> Run)

7 Answers   GE,


wht is the difference betn check point and output value?

5 Answers   BirlaSoft,


Can you write a script for to insert array elements in an excel A to Z columns only. if the number oe elements in the array is greater than the number of columns (A to Z), come to next row and proceed furthur. eah cell should contain only one array value.

1 Answers  






I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

0 Answers  


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,


If our application contain one image while executing script application failed to show that image but you have to check that image by importing dynamically from other location... Can we use Check Points here on dynamically imported image?

2 Answers   ADP,


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

0 Answers  


w is configaration management

3 Answers   TCS,


I want to assign values in a table in my software, in first column i will give values, table is of 4x4 i.e 4 row and 4 columns, i m using VBScript in my automation work. it is a simple table for giving values.

4 Answers   TCS, Wipro,


WHat is Object Identification and Object Spy?

2 Answers   IBM,


Categories