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

On what basis we select test cases to automate?

0 Answers  


In where you are keeping or maintaining shared object repository (file)in your appliction?

2 Answers   Inlogic,


how to evalute defects in QTP script?

0 Answers  


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

0 Answers   Value Labs,


Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?

2 Answers  






I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.

0 Answers   Wipro,


Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"

1 Answers  


Explain in brief about the qtp automation object model (aom).

0 Answers  


How to Parameterize Object repository in QTP?

6 Answers   Cognizant, IIBM,


How to recognise the webelement and verifying that webelement is enabled?

0 Answers  


Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated

2 Answers   McAfee,


we have 5 default properties we want add more Default property in Object Repository how to add the property

2 Answers   Nous,


Categories