QTP Features Under Test Settings
-
Upload
kiranpaul20 -
Category
Technology
-
view
3.999 -
download
2
Transcript of QTP Features Under Test Settings
Visit QTP Tutorials
Visit QTP Tutorials
QTP FEATURES U�DER TEST SETTI�G
File > Settings > Test Settings > Run
Test Settings in QTP is very vital as it provides a lot of settings for a test and allows you to control the way
QTP should run and you can customize the settings of QTP for each test by navigating to File > Settings >
Test Settings > run.
Here we will look at the various options available for user to set for QTP while running a test.
Run one iteration only: The test will run only for one time.
Run on all rows: The test will run on all rows
When error occurs during run session combo has these options
1. Pop up message box
2. Proceed to next action iteration
3. Stop Run
4. Proceed to next step
Check box items are:
Object synchronization time out text box with 20 sec as default.
Disable smart identification during run session
Save images of desktop when error occurs
Visit QTP Tutorials
Visit QTP Tutorials
File > Settings > Test Settings > Resources
Associating Function Libraries to a QTP Test is very important as it is associated from an external location
and since we use frame work each of the test script is broken down into different functions and there should
be a way to associate them to a test. The Resource Tab in Test Settings helps you to do this.
You need to navigate to File > Settings > Test Settings > Resources.
Here we will look at the various options available for user to set under resources for QTP while running a
test.
Here you can associate function libraries to QTP test by clicking the + sign and select the location from
where you want to add. In order to delete a library file select that file from the list and click the Delete
button i.e X button. You can arrange the function library files by using the up and Down key.
It also provides a means to check the syntax of the files associated by clicking the Check syntax Button.
There is a means to associate a data table from other location i.e Excel sheet for passing values as
parameters to the test from default location or from any other location.
Visit QTP Tutorials
Visit QTP Tutorials
File > Settings > Test Settings > Environment
Environment Variables in QTP are the utility objects of QTP which enables us to work with Environment
Variables. Here in this tab you have two settings one is Built in and user Defined.
You need to Navigate to File > Settings > Test Settings > Environment
Built in Environment Variables:
Built in environment is where you will be shown a list of all built in environment variables of QTP and their
description. These are read only.
Visit QTP Tutorials
Visit QTP Tutorials
User Defined Environment Variables
Environment Variables in QTP are the utility objects of QTP which enables us to work with Environment
Variables. In the Test Settings we can add user defined Environment Variables for a particular test or can
also load an environment XML file to a test.
You need to Navigate to File > Settings > Test Settings > Environment
User defined variables are of two types Internal and External. Internal Environment variables can be
modified or deleted while External Environment variables are Read only.
In this setting we can add environment variables by clicking the + button which pops up a dialog box where
in you can enter the name of the variable and the value of the variable and will be displayed in Black color
and the type would be displayed as Internal and you have full control over these kinds of variables. You can
modify or delete these variables.
You can create an external xml file of all the user defined environment variables to an XML file listed in the
pane by clicking the export button.
In order to load environment variables from an external XML file you need to check the check button of
Load variables and values from external file and click the browse button of the File Text Box and select the
XML file from the desired location. All the environment variable will be listed and will be in Blue color and
are read only.
Visit QTP Tutorials
Visit QTP Tutorials
File > Settings > Test Settings > Recovery
Recovery scenario comes into picture when you want to handle some exception in the test by creating a
Recovery scenario. Now to add this recovery scenario to a test we need to associate it in the test Settings.
You need to navigate to File > Setting > Test Settings >Resources.
You can add the recovery scenario file .qrs by clicking the + button and checking the check button in the list
pane for a particular recovery file and also can activate the recovery scenario for which you want like
Never, On every Step or On error.
You can also edit the recovery scenario by clicking the edit button.