what are the environment variables,how do you use them.
give an example.

Answer Posted / chakrapani

Built in Enironment
a=Environment.Value("TestName")
msgbox a (this gives test script name )
if u see in qtp Resources Environment built in u find many
things like TestName, Pathdir,version etc

User defined Evironment

i want to store a value in run time and pass to another
script then
a=Enironment.Value("DocumentNumber")

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

924


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

2007


when u script reveiwing in which area u more concentrates?

1651


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

2045


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

1642


How did you resolve conflicts present in Object Repository?

1809


What are the methods of the TextStream object that are used for reading from a text file?

1900


What is ObjectParamater?

1783


In qtp, explain what is crypt object

815


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1651


How can i check items sorted or not in a weblist ? Give me the script for this...

1807


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2144


Where we can use the synchronization?

774


What ate the Technologies supported by QTP?

905


What is the expert view?

764