|
eValid -- Automated Web Quality Solution
Browser-Based, Client-Side, Functional Testing & Validation,
Load & Performance Tuning, Page Timing, Website Analysis,
and Rich Internet Application Monitoring.
|
|
Variable Fidelity Playback in eValid LoadTest Operations
eValid Home
Introduction
eValid allows the user to produce scripts which can produce a
dynamically variable playback realism in LoadTest mode by using the
powerful yet flexible commands in eValid. To create a load test script with variable fidelity, follow the simple steps outlined below.
Record Individual Tests
The functional tests (*.evs) that the user records from the website make up the load test scenario. Listed below is a few examples of functional tests that can be used to create a load test script.
- Transaction - Record a script which performs a transaction such
as log-ins, filling in forms, etc. in the web site. This will
help in identifying the load limits of the transactions on the
web.
- Long Test - Record a lengthy script which performs navigation
commands and a series of waits.
- Short Test - Record a short script which performs navigation
commands or validation functions with minimal wait times.
- Navigation - Record a script which performs only navigation
commands to create background activity within the site.
Fidelity and LoadTypes
To create tests with varying fidelity, add the "Serve TYPE"
command in the load test script file to produce a special effect on
the script line where the "Serve" type has been changed.
Depending on the type specified,
the user can use the "Serve FULL" and "Serve TEXT" command
in conjunction with the "LoadType MODE" command that
allows the user to designate the FULL, THIN, or LITE version of the
eValid playback engine.
Type of Service
| LoadType FULL
| LoadType THIN
| LoadType LITE
|
Serve FULL
| Yes
| Yes
| No
|
Serve TEXT
| Yes
| Yes
| No
|
Serve URL*
| Yes*
| Yes*
| Yes**
|
* Note: The "Serve URL" command can only be added to the evs scripts
since it processes URLs only. For more information on fidelity and load types, please see the
eValid documentation.
** Note: The eValid LITE key enables the Serve-URL-only playback mode
for up to 1000 simultaneous users per instance.
Creating and editing the LoadTest Script
As an example, we will use all of the possible Serve & LoadType
combinations in our LoadTest script.
- Create a new LoadTest with the individual scripts (*.evs)
created.
- Create 5 instances of the transaction script from the LoadTest
Script Form. We will run these scripts using the default value
of the LoadType (FULL) and the Serve (FULL) commands.
- Insert the "Serve FULL" and "LoadType THIN" command to load the
next instance of eValid as a thin client.
- Create 5 instances of the long test script from the LoadTest
Script Form.
- Insert the "Serve TEXT" and "LoadType FULL" command to render
the pages without any images using the full eValid browser.
- Create 2 instances of the short test script from the LoadTest
Script Form.
- Insert the "Serve TEXT" and "LoadType THIN" command to render
the pages without any images using the eValid thin client.
- Create 3 instances of the short test script from the LoadTest
Script Form.
- Insert the "LoadType LITE" command to playback the script using
the eVLite Agent.
- Create 1 instance of the navigation script, adding n (where n
is the number of virtual users and has a maximum of 1000 users
per eVLite playback) number at the end of the line as a
parameter for the eVLite playback.
- Save and load the script (*.evl) created.
The final load test script should look something like this:
ProjectID "Project"
GroupID "Group"
TestID "Variable_Load"
LogID "DEFAULT"
# The first 5 tests will use the default (FULL) values of the
# LoadType and Serve commands
_eValid "Transaction.evs" "Transaction_001" "5" "" "-pm 1 -CI"
_eValid "Transaction.evs" "Transaction_002" "5" "" "-pm 1 -CI"
_eValid "Transaction.evs" "Transaction_003" "5" "" "-pm 1 -CI"
_eValid "Transaction.evs" "Transaction_004" "5" "" "-pm 1 -CI"
_eValid "Transaction.evs" "Transaction_005" "5" "" "-pm 1 -CI"
Serve FULL
LoadType THIN
_eValid "Long.evs" "Long_001" "5" "" "-pm 1 -CI"
_eValid "Long.evs" "Long_002" "5" "" "-pm 1 -CI"
_eValid "Long.evs" "Long_003" "5" "" "-pm 1 -CI"
_eValid "Long.evs" "Long_004" "5" "" "-pm 1 -CI"
_eValid "Long.evs" "Long_005" "5" "" "-pm 1 -CI"
Serve TEXT
LoadType FULL
_eValid "Short.evs" "Short_001" "5" "" "-pm 1 -CI"
_eValid "Short.evs" "Short_002" "5" "" "-pm 1 -CI"
Serve TEXT
LoadType THIN
_eValid "Short.evs" "Short_001" "5" "" "-pm 1 -CI"
_eValid "Short.evs" "Short_002" "5" "" "-pm 1 -CI"
_eValid "Short.evs" "Short_003" "5" "" "-pm 1 -CI"
# eVLite Agent to simulate 500 users
LoadType LITE
_eValid "Navigation.evs" "Long_003" "5" "" "-pm 1 -CI" 500
# End of Script
|
- Play back your script.
Parameter definition:
Here are the definitions of the components of a single line in a LoadTest Script (*.evl).
- _evalid - Command to launch an instance of the eValid Engine.
- *.evs" - Name of the selected test script.
- "Field_3" - Command identifier to track each load test line.
- "5" - Number of repetitions per test / loadtest line.
- "-pm 1" - Sets the playback multiplier to a 1 sec resolution.
- "-CI" - Ignores the cache and deletes the entries as they
accumulate during playback.
- "500" - An extra eVLite parameter which simulates the number
of "Virtual Users" running.
Note: See eValid documentation for additional parameters. The web site under test should now have a varying and realistic
type of load test generated from a single application.