Filters and Filter Groups
Filters
are enhancements made to a pre-recorded
script, which allow the script to behave more like a real user. Filters enable the script to be more dynamic, where it can behave a certain way when certain conditions are met.
Filters can add functions
, thinktime
, and change script behavior, etc.
Filter Groups
are created to contain multiple filters that are unique to that group. For e.g, A TTO Production
Filter group will have only filters that are unique to that type of user.
When uploading a script, you will be given the option to choose the filters and groups you want to process the script with.
Selecting a group will select all the filters associated with that group automatically by default. You may choose to remove those that are not required.
Creating a Filter
-
Click on the
New Filter
icon to open theNew Script Filter
form. -
A filter can be
internal
orexternal
(Javascript
). Select the type on the radio button and the form will change depending on the mode.-
Internal Filters
- Internal filters consist of one of more Conditions and one or more Actions . Conditions determine if this filter matches a particular request and Actions define the transformation to apply when the conditions match.
- Set the
Name
,Product
and whether the conditions arematch all
ormatch any
. - Click on
Add Condition
andAdd Action
and set the properties appropriately.
-
External Filters
- External filters consist of a reference to an external javascript file.
- Set the Name, Product and Script.
-
Creating a Filter Group
- Click on the
New Filter Group
icon to open theFilter Group
selection form. -
Give the Filter Group a unique
name
, select theProduct
, and select from the list offilters
that belong to that group.