|
Introduction
In general, a test validation function is a way of stating (and recording) what is expected to be true
at playback time, based on what is seen at record time.
eValid has many powerful types of content validation to
assure the quality of individual pages in a WebSite.
Access Via Pull Down Menus
Validation functions are all reached from the eValid pulldown menu during test recording
using the pulldown sequence below.
Validation functions can also be edited into a script for special purposes.
Record > Validate > Class > Object
VALIDATION DESCRIPTION | ||
Validation Class | Validation Object |
Explanation |
Document | URL | Record > Validate > Document > URL
The exact URL for the page is recorded in the script file. If the URL during playback differs from the one arrived at during recording an Error Message is issued. |
Title | Record > Validate > Document > Title
The title of the document is recorded in the script. If the title of the document during playback differs from the one recorded, a Warning Message is issued. |
|
Elements | Record > Validate > Document > Elements
The element count of the current page is recorded. If the element count of the page differs during playback from what was recorded an Error Message is issued. |
|
Byte Size | Record > Validate > Document > Byte Size
The size of the WebPage in bytes is recorded. If the byte size of the base page differs during playback from the size of the document recorded an Error Message is issued. See Note |
|
Last Modified Date |
Record > Validate > Document > Last
Modified Date
The date of last modification of the page is recorded. If the date of last modification of the page differs during playback from the date of last modification of the document recorded an Error Message is issued. |
|
Checksum | Record > Validate > Document > Checksum
The checksum of the selected page is recorded. If the checksum of the page differs during playback from the checksum of the document recorded an Error Message is issued. |
|
All Document Properties | Record > Validate > Document > All Document
Properties
All of the available document properties will be recorded in the script. If any of the document properties of the base page differs during playback from the properties of the document recorded an Error or Warning Message is issued. |
|
Selected | Text |
Record > Validate > Selected > Text
Use this feature to choose a WebPage text fragment -- either a complete HTML element (or block) or just a single character -- to record that you expect to be present during playback. If during playback the actual text differs from what was expected an Error Message is issued. |
Image |
Record > Validate > Selected > Image
Use this feature to confirm properties of an image on the current page. First make sure than an image is selected. Do this by left-clicking or right-clicking, followed by a mouse drag on the image. You may find that the right-click is the only one that is effective if the left click causes a navigation event. Properties of the selected image are recorded and if these properties differ during playback an Error Message is issued. |
|
Table Cell |
Record > Validate > Selected > Table Cell
Use this feature to confirm the entire contents of a table cell. This actually validates the HTML text (not just the visible text) in a particular cell. HTML text passages that exceed 256 charaters may be truncated. |
|
All | Images | Record > Validate > All > Images
Properties of all images are recorded. If these properties differ during playback an Error Message is issued. |
Applets | Record > Validate > All > Applets
Properties of all applets [if any] are recorded. If these properties differ during playback an Error Message is issued. |
|
Element IDs | Record > Validate > All > Element IDs
Properties of all element IDs [if any are defined] are recorded. |
|
Body Text | Record > Validate > All > Body Text
The entire text contained in the body of the page is validated. On playback, any difference detected by eValid will automatically issue a series of Error Message letting the user know which text did not match. |
|
& Save | Screen Rectangle | Record > Validate > & Save > Screen
Rectangle
During recording the user selects an area in the screen which will be saved, validated and compared to the screen rectangle saved during playback. eValid compares the base and response files and issues an Error Message if the files differ before continuing playback. An Error Message is generated if the Base and Response Files Differ. |
Window Face |
Record > Validate > & Save > Window Face
During recording eValid can save the current window face which has focus and compare it with the response file that is generated during playback. An Error Message is generated if the Base and Response Files Differ. |
|
Window |
Record > Validate > & Save > Window
During recording eValid can save the current window selected and compares it with the response file that is generated during playback. An Error Message is generated if the Base and Response Files Differ. |
|
& Synchronize | Screen Rectangle |
Record > Validate > & Synchronize > Screen
Rectangle
During recording the user clicks at two locations within the rendering of the current page on the browser screen to identify a check rectangle. This checked area is outlined in black, a checksum of the contents is generated and the value of the checksum is stored in the in the script. On playback the same area of the page has a checksum generated and compared with the value in the script. An Error Message is generated if the checksums differ. |
Text String |
Record > Validate > & Synchronize > Text String
During recording the user selects a phrase from the screen. During playback eValid waits until this particular phrase appears on the screen before continuing playback. |
|
Clipboard Text |
This Feature Operates Only in Application Mode | Record > Validate > Clipboard Text
Assuming you are making an Application Mode recording, any highlighted section of text in the application can be copied and pasted into the recording for later confirmation during playback. |
Access Via Script Editing
These validation modes are achieved with script editing.
VALIDATION DESCRIPTION | ||
Validation Class | Validation Object |
Explanation |
Value Range |
Available Via Script Edit Only
Validates that the value extracted from the screen at a particular location falls within a specified range. eValid Command: ValidateSelectedValueRange | |
Value Percent |
Available Via Script Edit Only
Validates that the value extracted from the screen at a particular location falls within a specified percentage of a given value. eValid Command: ValidateSelectedValuePercent |
Note: Validating Document Byte Size:
If the WebPage refreshes automatically with new images (e.g. rotating banners),
the byte size of the WebPage will also be dynamic.
To validate the different byte counts,
insert a Wait command in the script equal to the amount of time of the dynamic interval.
Then recheck the byte count.