What is Environment Variable and when we apply this in QTP?
Answers were Sorted based on User's Feedback
Answer / mercy
Environment Variable comes into picture when you try to
parameterize data. It is one of the data source. It
provides you some info which can be generated by the test
or the system you are using etc. Try selecting the
environment variable option...you get a list of values that
can be used like the iteration number, iteration name or
the system name etc.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / venu
Environment Variables are used during Parameterization.
For Example:
You have many set of scripts & every script makes a login.
To make a login we need Login credentials: Username &
Password. These 2 variables (Username & Password) can be
declared in a XML file & called in the each script as
environmental variables. Sometimes they are also known as
Global Variables, as these variables can be called in any
script.
| Is This Answer Correct ? | 4 Yes | 1 No |
Based on the environment, data may be changed, to maintain our script execution on multiple environments, we have to use environment variables.
we can access E.variable values from all over the test pack.
When we parameterize data , we can use environment variables.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / chinna
Environment Variable we can use in any action at any test.
we have two types of environment variables. They are
1.Internal
2.External
| Is This Answer Correct ? | 2 Yes | 7 No |
Syntact for how to call one script from another? and Syntax to call one "Action" in another?
What is chaild object method? When we will go for chaild object method? How to use chaild object method?
Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman
Tell me about qtp?
what is the difference between function and subroutine ....here every one knows theoretically...here my QUESTION IS WHAT IS THE MEANING OF FUNCTION CAN RETURN A VALUE AND SUB CAN NOT RETURN A VALUE .....WHAT DOE'S IT MEAN FUNCTION CAN RETURN A VALUE HOW FUNCTION CAN AND SUB CAN'T ....GIVE A EXAMPLE FOR BOTH ....HOW IT CAN AND CAN NOT...HELP ANDY ONE....
what is run action?
what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".
what is descriptive.create()in qtp?
Which functionalities of QTP used in banking project?
What VBScript operators, functions, and statements do you use in QuickTest Professional?
Explain how you can find length of array in qtp?
What does Reporter.Reortevent2 does?