|
eValid -- Automated Web Quality Solution
Browser-Based, Client-Side, Functional Testing & Validation,
Load & Performance Tuning, Page Timing, Website Analysis,
and Rich Internet Application Monitoring.
|
|
eValid -- Morfik Recording Protocol
eValid Home
Background
This page documents the protocol for making recordings on the Morfik site.
This AJAX application is very sophisticated and uses a variety of kinds of objects,
JavaScript events, pulldowns, active links, etc.
If this recording protocol is used there is a high likelihood that the resulting
recording will play to "green screen" without problems.
This website is made more complex by the fact that it is AJAX,
and as a result recorded commands may be in fact correct, but may fail on playback
if the synchronization is not handled correctly.
Protocol Description
This website is a Class B Website.
- Recording Protocol
The protocol to use varies with the type of object on the site.
- Pulldowns That Navigate on Morfik Top Page
Here is how to do this, using the SUPPORT > > Morfik Labs as as example.
They will all be the same.
The procedure is:
- Wait until the page is fully loaded (see sync below).
- Move the cursor "near" SUPPORT text (but not on it);
you want to be able to move directly ONTO it without generating any Element Mouseovers
after turning that feature ON.
- Ctrl-F11 to toggle Element Mouseovers to ON.
This enablement allows eValid to make the pulldown active at playback time.
- Move the cursor over SUPPORT,
and wait for the Hourglass to complete its processing and return to being a cursor.
If you see a cursor immediately when hovering on SUPPORT you can proceed to the next step.
- Move the cursor so it is over Morfik Labs.
- Left click on Morfik Labs.
- Ctrl-F11 to toggle Element Mouseovers to OFF.
- Note About Mouseover/Mouseout Sequences and Timing
During recording what you see may not be enough
on the screen for eValid to record the correct action.
This occurs with JavaScript responses to Mouseover and Mouseout events.
As a sequence of Mouseover and Mouseout events is being recorded,
if a navigation is sensed to have happened,
eValid appends a NAV modifier to the most recent command
recorded so that, at playback time,
eValid will enter a Navigation Synchronization sequence.
There is a slight chance that, due to pilot error
(timing during recording is not handled correctly),
evalid will postpend the NAV to the wrong command,
resulting in incorrect playback.
- Recording Time Management Principle
On this site in most cases
you need to wait until the application stabilizes before taking an action.
- Playback Synchronization
-
Most scripts constructed with these rules will play OK if you
use the Morfik-supplied synchronization logic.
The command for this for main Morfik pages (but not all of them) is the following:
SyncOnSelectedObjProperty 0 0 "externalsynch" "READY" "id" "xfrmXappMain" ""
- You may need to manipulate the playback Wait time processing to assure that
in-page manipulations have enough time to succeed.
Sample Script Passage
# Recording by eValid V8 Build #264, Build Date: (Mar 27 2008)
# Copyright © 2008 by Software Research, Inc.
# Recording made on: Microsoft Windows XP Service Pack 2
ProjectID "Support"
GroupID "Morfik"
TestID "menu"
LogID "AUTO"
ScreenSize 1680 1050
FontSize 0
DeleteCache
DeleteCookies
InitLink "http://www.morfik.com/"
# Wait 24500
SyncOnSelectedObjProperty 0 0 "externalsynch" "READY" "id" "xfrmXappMain" ""
ElementMouseOver 0 55 33 6 "R_SUPPORT" ""
Wait 3172
ElementMouseOut 0 61 21 74 "R_SUPPORT" ""
ElementMouseOver 0 49 21 8 "" ""
Wait 2625
ElementClick 0 49 202 172 "" "Morfik Labs" "" NAV
# Recording ends.
|