Can any one explain about environment variables with examples?
Answers were Sorted based on User's Feedback
Answer / pravati
environment variable is a variable which keeps the value through out action
environment variable are of two types
1.built in
2.userdefined
In built in-u can retrive the built in data
ex-msgbox environment.value("os")
In userdefined u can set the value in environment
ex-file>>setting>>envrnment>>userdefined(+)>>value(abc.01@gmail.com),name(username)
then retrive the data of value & name in test
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prathyusha
Environment Variables are used to get the basic information of system .
we do have two types
1.inbuilt environment variables
2.user-defined environment variables
Inbuilt environment variables used to get the basic information of system like test name,action name,user name,os
Eg: Environment.value("User Name")
User defined environment variables
two types
a.Internal environment variables
b.external environment variables
Internal Environment Variables are used to pass the values form one action to another action.
External environment Variables are used to store the master credentials of application.For this we can use Xml files to store the information and we can associate these files to the test and we can read the value using Environment.value("some variable").
| Is This Answer Correct ? | 0 Yes | 0 No |
Give me an example where you have used a COM interface in your QTP project?
what r the main attributes of test automation?
waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable in qtp??
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
what is the Descriptive Progarmming? how it is help to testers in QTP?
How to do Laod testing for web based Application?
How to record a qtp script ?
how can we return a value from userdefined function for eg 2 functions in func1 iam getting 2 values(a,b) and storing in var(C). now i want to pass that var(c) to another func2 give me the script
Which environments does qtp support?
Explain the concept of object repository and how qtp recognises objects?
How to create basic scripts from a manual test case in QTP?
What is QTP testing process?