|
Summary
Using eValid to provide basic monitoring of a particular
WebSite feature involves use of record/play, alarms, email alert capabilities,
and scheduler interaction.
This page outlines the basic steps in setting up an eValid Monitor Function.
Step 1: Create an eValid Script
Using eValid, navigate to the site you would like to monitor and
perform the series of interactions with the part of the site to be monitored.
Your test script can be as lengthy as you like.
Step 2: Choose Limits and Alarms
During record mode, carefully select the parts of the script to be monitored by inserting timer commands available from eValid to be able to properly monitor each command. The order of the command to be inserted are as follows:
# Recording by eValid # (c) Copyright 2013 by Software Research, Inc. # # This script is a typical example of basic monitoring of a site using timers to # automatically send an alarm to the user in the case that a specific page being # monitored takes more than the specifed threshold amount of time. ProjectID "Project" GroupID "Group" TestID "Monitoring Demo" LogID "AUTO" ScreenSize 1280 1024 FontSize 2 OnAlarmEmail "user@email.com" "ALARM" "Overtime!! Navigation > 1000 ms!" "" ResetTimer InitLink "http://www.mysite.com" ElapsedTime OvertimeAlarm 1000 "" "http://www.e-valid.com/Cgi-Bin/evalid.alarm.cgi" "" 2 # End of script. |
This script illustrates that prior to navigating to
http://www.mysite.com site, declare an OnAlarm... script command action,
and a ResetTimer command is inserted in for all the internal timers of
eValid to be reset to 0.0.
The navigation is then executed. Once the page is fully rendered, the ElapsedTime command reads the total time it took to navigate to the site from the ResetTimer command until the ElapsedTime command.
Finally, the OvertimeAlarm command ("Record > Timer > Set Alarm" or "Ctrl + A") contains the instructions to follow during an OvertimeAlarm. Along with eValid's available "OnAlarm..." script commands, the user has an option to Stop, Pause, or Continue playback as well as setting the threshold for the OvertimeAlarm which also includes (Optionally, the Message and/or the location of the CGI-Bin containing a .cgi with actions such as the email/displaying banner webpage, etc.) to which the ..ALARM.. triggers.
Step 3: Creating a Batch File
In your text editor
add the batch command line interface to invoke
eValid along with the corresponding arguments.
For example, here is the file eValid.bat:
@ECHO OFF REM REM Batch file to have eValid play back a script that navigates REM a site and sends an alarm if navigation exceeds 1000 ms. evalid -B "Monitoring Demo.evs" -FF -CK |
The example launches eValid to play back the script Monitoring Demo.evs, with Dynamic Log Naming turned on, and with Empty Cache Before Playback turned on.
An available list of available command line options is available from Command Line Interface.
The command line switch definitions are also available within the product documentation by clicking Help > Documentation > User Manual > Technical > Details > Command Line
Save the file with a *.bat extension.
Step 3: Set-Up Windows Scheduler
Once the batch file has been completed, it must now be used in conjunction with the Windows Scheduler to create a true Monitoring Engine.
Here are some simple steps to follow
when adding a batch file as a scheduled task in the scheduler:
Detailed instructions on how to add a batch file to the windows scheduler is available at the Windows NT Scheduler page.