|
Summary
This page specifies the standard eValid recording, editing, and
playback interface.
Each recording is a simple, intuitive, program sequence
that embodies a single test composed of a sequence of activities
that have specific outcomes.
As an eValid script runs the Error Flag, the Alarm Flag or
the Warning Flag could be set by one or more commands.
This state can be sensed during playback.
Intrinsic and Extrinsic Commands
Some command definitions listed below do not occur during the making
of recordings; they are called extrinsic commands.
Such commands are provided so an eValid user can edit a script to
produce special effects or results.
Table Organization
In the table of script definitions below these definitions apply.
There is a complete
Alphabetic Index of Commands available
for easy access to
the ~235 commands that eValid recognizes.
eValid Script Group | Minimum Required Feature Key |
Prolog and Postlog | STAN |
Script Identification & Naming | STAN |
Navigation | STAN |
Timing & StopWatch | STAN |
License and Version Options | STAN |
Cache Management | STAN |
Wait Time/Date Manipulation | STAN |
Synchronization Support | PROF |
Playback Oriented | STAN, PROF |
Element-Oriented Events | PROF |
Link Check Wizard | PROF |
Validation | PROF |
String Matching | PROF |
Monitoring Support | PROF |
Flag Processing | PROF |
Dom-Based Sync Support | PAGEMAP |
Extracting DOM, Page, and Screen Content | PAGEMAP |
Index Motion Commands | PAGEMAP |
DOM Manipulation Commands | PAGEMAP |
Applet Support | PROF |
Absolute Position | PROF |
Modal Dialog | PROF |
Window Management | STAN, PROF |
Keyboard & Desktop Operations | PROF |
External File Processing | PROF |
Script Manipulation and Annotation | PROF |
Server Loading | LOAD |
eV.Generate Operation | GEN |
Site Analysis Support | SITEMAP |
Errors, Warnings, or Notes of various kinds are issued to the message
area during playback if problems are detected.
|
Playback Oriented |
||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
PROF | Adaptive [ "ON" | "OFF" ] | Edit | Turns the Adaptive Playback feature "ON" or "OFF". When "ON" the eValid playback engine behaves as intelligently as it can when encountering objects that have moved to a new location on the page, or have changed names or both. | |
PROF | Breakpoint "Message-Text" | Edit | Pauses Playback;
puts message in Log with message "Message-Text".
Playback must be resumed by user by using the F8 key or clicking "Play". |
Because of the manual intervention required, this command should not be used for scripts that are run from the Scheduler in Batch Mode. |
PROF | PlayValue "key" value | Edit | Click here for more information on PlayValue. | |
STAN | MessageBox "message" | Edit Desktop |
Pops up a modal dialog box of a automatically determined size based on the
message text saying:
[eValid Modal Popup] "message" Click OK to Continue [OK]Everything stops pending the user clicking on OK. |
|
STAN | MessageWindow "message" [time [ x y w h ]] | Edit Desktop |
Pops up a window containing the "message". If time is specified then the window persists for the specified length of time (in seconds). If in addition the sizes are specified then the window will be of the specified width w and height h at location x y. | Note: The popup window generated by this command is a sub-browser so it accepts HTML in the message text. |
PROF | SecureDataID "name" | Record Edit Security |
Declaring the name of a SecureDataID enables eValid to maintain state when in secure sessions. This command must directly follow EnterSecureZone. More than one can be entered, but each command has only a single parameter. Secure Data ID's will remain valid until an ExitSecureZone. If another EnterSecureZone is called before exiting the first secure zone, the SecureDataID(s) need to be respecified (or different ones need to be specified). | |
STAN | AuthenticateUser wid "username" "password" | Record Edit Security |
This command is used to handle the
Client Authentication
processes.
During browsing and recording, eValid displays its own dialog with simple explanations of the problem encountered. During playback of scripts and during site analysis runs this dialog is not displayed, but encounters with Client Authentications are recorded as MESSAGEs. Note that the first occurring Client Authentication command in a current script is the one that applies; second and subsequent instances in the same script are ignored. Modal popup suppression preferences do not apply to Client Authentication processes. | |
PROF |
EnterSecureZone
ExitSecureZone |
Record Edit Security |
During recording of a session that on
playback will require processing of URL modifiers, the user can signal
entry or exit from the "secure zone" by clicking on the corresponding eValid
menu items or editing these commands into the script.
The initial state of "secure zone" processing is OFF. |
Extra Precaution: Generally not required because eValid will handle most security issues implicitly. |
PROF | SetUserAgent "user-agent-string" | Edit | If the string specified user-agent-string is non-blank, sets that string value as the user agent for eValid. |
Once set the user agent string setting persists until
eValid is re-launched.
See also the detailed Command Explanation. |
STAN | WaitRedirect wid "url" "frame_path" | Record Edit eVlite Synchronization |
When eValid detects a redirection, a WaitRedirect script command is inserted rather than a GotoLink command. | Adaptive Playback is available for this command. |
STAN | WaitClick delay | Edit Synchronization |
Waits the specified amount of time (in milliseconds) and then issues a click at (0,0) on the screen (desktop). | This command uses a special eVclick.exe Utility that runs outside eValid as a separate invoked process. |
Element-Oriented Events |
||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
PAGEMAP | ElementClick wid idx [x y] "id" "visible_text" "frame_path" [NAV] | Record Edit Adaptive |
Clicks on specified element. The optional x and y values specified are offsets within the object that are supplied by the DOM. | eValid will record these script commands if the user clicks on an HTML element that uses these events. |
PAGEMAP | ElementDblClick wid idx [x y] "id" "visible_text" "frame_path" [NAV] | Record Edit Adaptive |
Records double click on specified element. The x and y values specified are offsets within the object that are supplied by the DOM. | eValid will record these script commands if the user clicks on an HTML element that uses these events. |
PAGEMAP | ElementBlur wid idx "id" "visible_text" "frame_path" [NAV] | Record Edit Adaptive |
Sends an elementBlur event to the HTML element. | eValid will record these script commands if the user mouses out of an HTML element for which focus is sensitive to this event. |
PAGEMAP | ElementFocus wid idx "id" "visible_text" "frame_path" [NAV] | Record Edit Adaptive |
Sends an elementFocus event to the HTML element. | eValid will record these script commands if the user mouses over an HTML element for which focus is sensitive to this event. |
PAGEMAP | ElementMouseDown wid idx [x y] "id" "visible_text" "frame_path" [NAV] | Record Edit Adaptive |
Sends an onmouseDown event to the HTML element. Uses the NAV parameter if the event is expected to perform a navigation. | eValid will record these script commands if the user clicks on an HTML element that uses these events. |
PAGEMAP | ElementMouseUp wid idx [x y] "id" "visible_text" "frame_path" [NAV] | Record Edit Adaptive |
Sends an onmouseUP event to the HTML element. Uses the NAV parameter if the event is expected to perform a navigation. | Will record these script commands if the user clicks on an HTML element that uses these events. |
PAGEMAP | ElementMouseOver wid idx x y "id" "frame_path" [NAV] | Record Edit Adaptive |
Sends an onmouseover event to the HTML element. Uses the NAV parameter if the event is expected to perform a navigation. The x and y values specified are offsets within the object that are supplied by the DOM. | |
PAGEMAP | ElementMouseOut wid idx x y "id" "frame_path" [NAV] | Record Edit Adaptive Synchronization |
Sends an onmouseout event to the HTML element. Uses the NAV parameter if the event is expected to perform a navigation. The x and y values specified are offsets within the object that are supplied by the DOM. | |
PROF | ButtonClick wid idx "id" "name" "label" "frame_path" | Record Edit Wizard Adaptive Synchronization |
A FORM's radio button is pushed and its current status value is recorded.
The Adaptive search looks for the first element whose name matches the string specified in the script file. If the specified name is empty, as is the case for many of these elements, then the label is searched instead. |
A Warning is issued if label differs on playback from what was recorded.
Adaptive Playback is available for this command. |
PROF | GotoLinkSubmit wid "URL?DATA" "frame_path" | Record Edit eVlite Synchronization |
Same as GotoLink but includes "?" (Get) Data | |
PROF | InputImageClick wid idx "source-url" "alt-text" "frame_path" | Record Edit Adaptive Synchronization |
An input Image is clicked and its properties are recorded. | A Warning is issued if the image properties differs on playback from what found during recording. |
PROF | ResetClick wid idx "id" "name" "label" "frame_path" | Record Edit Wizard Adaptive |
The reset-form button and visible_text associated with it is recorded.
The Adaptive search looks for the first element whose name matches the string specified in the script file. If the specified name is empty, as is the case for many of these elements then the label is searched instead. |
|
PROF | SubmitClick wid idx "id-value" "name-value" "visible-label" "frame_path" [NO_NAV] | Record Edit Wizard Adaptive Synchronization |
In this command, in window wid and at element idx,
id-value is the value of the id attribute,
name-value is the value of the name attribute,
and visible-label is the text on the screen of the submit element that is to be clicked.
The Adaptive Playback search, if invoked, looks for the first element whose id value matches the id-value string specified in the script file. If the specified name is empty, as is the case for many of these elements then the label is searched instead. |
A Warning is issued if visible_text differs on playback from what is
recorded.
The optional NO_NAV may be needed if the particular element being clicked requires it. |
STAN | InputValue wid idx "type" "id" "name" "extra-1" "extra-2" "frame_path" | Record Edit Adaptive |
For extra information concerning the Type, Extra-1, and Extra-2 parameter please see table below. | Please see the detailed explanation at: InputValue Processing in Playback. |
|
Monitoring Support Commands | ||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
PAGEMAP | SaveRecord File "Formatted String" [OVERWRITE] | Edit | Writes information to the named file based on the
contents of the "Formatted String".
If the optional tag OVERWRITE is present, the named file is deleted (if it exists) and THIS is the first record in the new file. | Complete Command Explanation |
Meaning of Parameters in Formatted String
|
||||
PROF | TimeStamp File "ID-Tag" "Message-Text" [OVERWRITE] | Edit | Writes a standard one-line current timestamp record
to the named file.
This line includes the specified "ID-Tag" and
and includes the "Message-Text" at the end of the line.
If the optional tag OVERWRITE is present, the named file is deleted (if it exists) and THIS is the first record in the new file. | Detailed Explanation |
Flag Processing Commands |
||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
PROF | OnAlarmEmail "email-address" "subject" "message" "attachment-path" | Edit Flag | If an ALARM is issued during a script playback, eValid will immediately send an e-mail. Refer to Email for more information. | Refer to Email for more information. |
PROF | OnAlarmGoScript "[PATH]script-name" | Edit Flag | If an ALARM is issued during a script playback, eValid will immediately open a new script file and continue to play back with the new script. | Note: Alarm STOP will override OnAlarmGoScript, but Alarm PAUSE will not.
After called script has finished playback, eValid will NOT return to the original script. |
PROF | OnAlarmSendFile "email-address" "subject" "filename" | Edit Flag | If an ALARM is issued during a script playback, eValid will immediately send the named file to the indicated email address. | Refer to SendFile for more information. |
PROF | OnErrorEmail "email-address" "subject" "message" "attachment-path" | Edit Flag | If an ERROR is issued during a script playback, eValid will immediately send an e-mail. Refer to Email for more information. | Refer to Email for more information. |
PROF | OnErrorGoScript "[PATH]script-name" | Edit Flag |
If an ERROR is issued during script playback eValid will immediately open the named script file and continue playback with that script. | After called script has finished playback, eValid will NOT return to the original script. |
PROF | OnErrorSendFile "email-address" "subject" "filename" | Edit Flag | If an ERROR is issued during a script playback, eValid will immediately send the named file to the indicated email address. | Refer to SendFile for more information. |
PROF | OnTimeoutEmail "email-address" "subject" "message" "attachment-path" | Edit Flag | If a TIMEOUT is issued during a script playback, eValid will immediately send an e-mail. Refer to Email for more information. | Refer to Email for more information. |
PROF | OnTimeoutGoScript "[PATH]script-name" | Edit Flag |
If a TIMEOUT is issued during a script playback, eValid will immediately open a new script file and continue to play back with the new script. | After called script has finished playback, eValid will NOT return to the original script. |
PROF | OnTimeoutSendFile "email-address" "subject" "filename" | Edit Flag | If a TIMEOUT is issued during a script playback, eValid will immediately send the named file to the indicated email address. | Refer to SendFile for more information. |
PROF | OnWarningEmail "email-address" "subject" "message" "attachment-path" | Edit Flag | If a WARNING is issued during a script playback, eValid will immediately send an e-mail. Refer to Email for more information. | Refer to Email for more information. |
PROF | OnWarningGoScript "[PATH]script-name" | Edit Flag |
If a WARNING is issued during script playback eValid will immediately open the named script file and continue playback with that script. | After called script has finished playback, eValid will NOT return to the original script. |
PROF | OnWarningSendFile "email-address" "subject" "filename" | Edit Flag | If a WARNING is issued during a script playback, eValid will immediately send the named file to the indicated email address. | Refer to SendFile for more information. |
PROF | OvertimeAlarm msec "text" "URL" "email" action | Record
Edit Flag |
Available from the GUI during recording or editable,
the user can establish a maximum time,
specify an alarm message text,
declare a URL to invoke on playback,
and specify the action to be taken
in case the alarm flag is thrown.
The variables in the command are as follows:
|
Dom-Based Sync Support | ||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
Strong Synchronization Commands (With Adaptive Playback) | ||||
PAGEMAP |
SyncOnSelectedObjProperty wid idx [["id_name"] "id_value"] DOM_name DOM_value "frame_path"
[1] SyncOnSelectedObjProperty wid idx DOM_name DOM_value "frame_path" [2] SyncOnSelectedObjProperty wid idx "id_value" DOM_name DOM_value "frame_path" [3] SyncOnSelectedObjProperty wid idx "id_name" "id_value" DOM_name DOM_value "frame_path" | Record Edit Adaptive Synchronization DOM |
Waits for the value of the
specified DOM_name property at index idx
to take on the specified DOM_value.
This command uses the Retry Interval and respects the Maximum Retry Time settings values. Playback resumes as soon as the match occurs, or after the maximum retry time has passed. Please see the Complete Command Behavior Explanation. |
Adaptive playback is applicable to this command,
unless adaptive playback is turned OFF, only in formats [2] and [3].
For format [1] there is nothing upon which adaptive playback can pivot.
When adaptive playback is ON, then if the object at idx does not have an element with DOM_name, eValid will look elsewhere in the DOM tree for an object with the [unique] DOM_name, and then wait for the DOM_name'd element to take on the required DOM_value. |
PAGEMAP |
SyncNotOnSelectedObjProperty wid idx [["id_name"] "id_value"] DOM_name DOM_value "frame_path"
[1] SyncNotOnSelectedObjProperty wid idx DOM_name DOM_value "frame_path" [2] SyncNotOnSelectedObjProperty wid idx "id_value" DOM_name DOM_value "frame_path" [3] SyncNotOnSelectedObjProperty wid idx "id_name" "id_value" DOM_name DOM_value "frame_path" | Edit Adaptive Synchronization DOM |
Performs the reverse of the above command, and playback continues when the first
instance is found when the specified information is NOT true.
This command uses the Retry Interval and respects the Maximum Retry Time settings values. Please see the Complete Command Behavior Explanation. |
Adaptive playback is applicable to this command,
unless adaptive playback is turned OFF.
When adaptive playback is ON, then if the object at idx does not have an element with DOM_name, eValid will look elsewhere in the DOM tree for an object with the [unique] DOM_name, and then wait for that named element to take on the required DOM_value. |
Standard Synchronization Commands (Without Adaptive Playback) | ||||
PAGEMAP | SyncOnElementProperty wid "name" "value" "frame_path" | Edit Adaptive Synchronization DOM |
Waits for a named element atrribute/property
to have a specified value.
Playback continues when any element's
specified property name has the required value (OK), or after eValid
completes the scan without finding a match (ERROR).
Applies to ANY property of ANY element ANYwhere in the DOM.
Please see the Complete Command Behavior Explanation. | Adaptive playback does not apply. |
PAGEMAP | SyncNotOnElementProperty wid "name" "Value" "frame_path" | Edit Adaptive Synchronization DOM |
Waits for a named element property and value to NOT be found
-- anywhere in the DOM.
Playback continues the first time that any element
has the required property not equal to the required value.
Please see the Complete Command Behavior Explanation. |
Applies to any property of any element anywhere in the DOM.
Adaptive playback does not apply. |
Index Motion Commands |
Working Assumptions About These Commands:
| |||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
PROF & PAGEMAP | IndexElementClick wid "frame_path" [NAV] | Edit DOM |
Similar to the Element Click command, this
command issues a click
at the current sourceIndex as set
by a preceding IndexSet, IndexMove, or IndexFindElement
command
The optional NAV parameter implies to expect navigation, and follows eValid's regular rules about how to handle NAVs. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
This command usually follows a search process,
and sends a click to what is assumed to
be an element that accepts a click meaningfully.
No adaptive playback activity is performed for this command. |
PAGEMAP |
IndexElementEvent wid "event_name"
"property_name" "property_value"
[ "property_name" "property_value" ] ... "frame_path" [NAV] | Edit |
This command involves specifying
an event_name
and a sequence of
"property_name" "property_value"
in pairs.
Complete details on how these parameters work are provided in the IndexElementEvent command description. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
No adaptive playback activity is performed.
Use the PageMap to identify index values and attribute names. |
PROF & PAGEMAP | IndexFindElement wid { UP | DOWN } "property_name" ["property_value"] "frame_path" | Edit DOM |
Starting from the current sourceIndex,
this command moves up or down in the DOM element
index number sequence
until eValid reaches the next element
with a property of the specified "property_name"
[or until it reaches the next element
with a property of the specified "property_name"
which has the specified "property_value"],
or until eValid reaches the end [or beginning] of the page.
The index movement is either UP (decreasing index numbers from the bottom) initial index is positive or zero. of DOWN (increasing index numbers from the top). When a match if found this command leaves the sourceIndex set to the index of the matching HTML element, if found. If no match is found, the sourceIndex will remain unchanged. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. For a complete explanation please see the Detailed Command Explanation. |
This is a primary command in the
Index Motion/Manipulation set.
Use it to find where to take an action.
Adaptive playback activity is not active for this command. |
PROF & PAGEMAP | IndexFindElementEx wid { UP | DOWN } "string" [ "string" ] ... "frame_path" | Edit | Starting from the current sourceIndex,
this command moves up or down in the DOM element
index number sequence searching for a
Regular Expression match.
For a complete explanation please see the Detailed Command Explanation. | This is a primary command in the
Index Motion/Manipulation set.
Use it to find where to take an action.
No adaptive playback activity is performed for this command. |
PROF & PAGEMAP | IndexFollowLink wid "frame_path" [NO_NAV] | Edit DOM |
Similar to the FollowLink script command,
IndexFollowLink employs the sourceIndex
command issues a click
at the current sourceIndex as set
by a preceding IndexSet, IndexMove, or IndexFindElement
command
Like the FollowLink command, a NAV is expected, hence there is only an optional NO_NAV parameter. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
This command usually follows a search process,
and sends a click to what is assumed to
be an element that accepts a click meaningfully.
No adaptive playback activity is performed for this command. |
PAGEMAP | IndexMove number | Edit DOM |
Moves forward (positive number)
or backward (negative number)
the specified number of source index positions,
possibly resulting in arriving at the top or bottom of page (but
NOT wrapping around).
If an IndexMove command attempts to reach beyond the end of the page, or above the beginning of the page, the current index will be set to 0 and a Warning will be issued to the Event Log. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands |
You will probably have to have a good idea of
where your target is, or you may want to
run an additional IndexFindElement command
to reposition the current source
index.
No adaptive playback activity is performed for this command. |
PAGEMAP | IndexSet idx | Edit DOM |
Moves the internally remembered current index
to idx.
An illegal value is corrected to 0 and a message is issued to the Event Log. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
Subsequent commands can be based on this starting index. |
PAGEMAP | IndexSetEnd wid "frame_path" | Edit | Moves the internally remembered current sourceIndex
to the last (largest currently available)
index in the frame of the specified window.
Note: If the page and frame changes the sourceIndex then may either be out of range or may not be the last one on the page. On a page with multiple frames specifying the exact frame_path is necessary because the number of the last element varies with each frame. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
Subsequent commands can be based on this starting index. |
PAGEMAP | IndexSubmitClick wid "frame_path" | Edit DOM |
Similar to SubmitClick command,
with same parameters and meaning.
Clicks the button pointed to by the SourceIndex. A navigation is expected to occur. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
No adaptive playback activity is performed for this command. |
PROF & PAGEMAP | IndexInputValue wid "type" "extra-1" "extra-2" "frame_path" [NAV] | Edit DOM |
This is the "Index" version of the InputValue command.
Behavior is similar to the InputValue command,
with same parameters and meanings.
An optional NAV parameter specifies whether or not to expect navigation. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
No adaptive playback activity is performed
for this command.
For a complete explanation of the extra-1 and extra-2 parameters please check the detailed explanation at: InputValue Processing in Playback. |
PAGEMAP | IndexValidateObjProperty wid "property-name" "expected-value" "frame_path" | Edit |
Validates that on the current sourceIndex the property named takes on the specified value.
If the validation fails then an ERROR is logged in the EventLog. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
No adaptive playback activity is performed for this command. |
PAGEMAP | IndexSaveObjProperty wid "property-name" "filename" "frame_path" [APPEND] | Edit |
On the current sourceIndex in the page, saves the
the named property named to the specified filename.
If the property does not exist, no action is taken.
If the optional APPEND argument appears the data is written to the end of the named file. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. |
No adaptive playback activity is performed for this command. |
PAGEMAP | IndexElementMouseOver wid x y "frame_path" [NAV] | Edit | At the current sourceIndex, executes
a left-button MouseOver command.
The "x y" values specified are offsets within the object supplied by the DOM. The optional NAV parameter needs to be specified if the action is expected to generate a navigation action. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. | No adaptive playback activity is performed for this command. |
PROF & PAGEMAP | IndexElementMouseDown wid [x y] "frame_path" [NAV] | Edit | At the current sourceIndex, executes
a left-button MouseDown command.
The optional [x y] values specified are offsets within the object that are supplied by the DOM. The optional NAV parameter needs to be specified if the action is expected to generate a navigation action. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. | No adaptive playback activity is performed for this command. |
PROF & PAGEMAP | IndexElementMouseUp wid [x y] "frame_path" [NAV] | Edit | At the current sourceIndex, executes
a left-button MouseUp command.
The optional [x y] values specified are offsets within the object that are supplied by the DOM. The optional NAV parameter needs to be specified if the action is expected to generate a navigation action. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. | No adaptive playback activity is performed for this command. |
PROF & PAGEMAP | IndexElementMouseOut wid x y "frame_path" [NAV] | Edit | At the current sourceIndex, executes
a left-button MouseOut command.
The "x y" values specified are offsets within the object supplied by the DOM. The optional NAV parameter needs to be specified if the action is expected to generate a navigation action. See the complete documentation of these commands at DOM Element Manipulation/Motion Commands. | No adaptive playback activity is performed for this command. |
DOM Manipulation Commands |
||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
PAGEMAP | ValueSet value | Edit | Sets the elementValue to the specified value. | The initial elementValue is blank.
Please see the DOM Value Manipulation Command Documentation. |
PAGEMAP | ValueGetElement wid name "frame_path" | Edit | Gets the value of the named element at sourceIndex and saves it in elementValue.
Details of the available names are usually found using the eValid PageMap facility. If the object found at sourceIndex does not have the given name, or if name is correct and the value the name currently has is incorrect, or if name is not found, an ERROR results. |
Please see the DOM Value Manipulation Command Documentation. |
PAGEMAP | ValuePutElement wid name "frame_path" | Edit | Inserts the current elementValue into the specific attribute of the described DOM object
in the indicated frame (as specified by the frame_path).
Details of the available names are usually found using the eValid PageMap facility. |
Please see the DOM Value Manipulation Command Documentation. |
PAGEMAP | IndexSave "filename" [APPEND] | Edit | Saves the sourceIndex into the specified filename.
If APPEND appears then the data is written to the end of the file. | Please see the DOM Input/Output Operations Documentation. |
PAGEMAP | IndexRead "filename" [END] | Edit | Reads the sourceIndex from the specified filename.
If the END modifier appears then the data is read from the last line of the file (this will be the one most-recently written into the file). | If the file is empty, the sourceIndex is set to zero.
Please see the DOM Input/Output Operations Documentation. |
PAGEMAP | ValueSave "filename" [APPEND] | Edit | Saves the elementValue into the specified filename.
If APPEND appears then the data is written to the end of the file. | Please see the DOM Input/Output Operations Documentation. |
PAGEMAP | ValueRead "filename" [END] | Edit | Reads the elementValue from the specified filename.
If the END modifier appears then the data is read from the last line of the file (this will be the one most-recently written into the file). | If the file is empty, the elementValue is set to blank.
Please see the DOM Input/Output Operations Documentation. |
External File Processing | ||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
STAN | CopyFile "source" "target" overwrite-key | Edit | Copies indicated source file to indicated target file.
Set overwrite-key to 1 to overwrite an existing target file.
Otherwise set overwrite-key to 0.
The current working folder is assumed if no path is provided. Stopping playback while a file is being copied cancels the operation. | A Fail message is issued if eValid is unable to copy the source file. |
PROF | DataSynthesisFile "Filename" | Edit | Performs data substitution on the current script using
the values from the specified text file.
Each line in the specified data synthesis file consists of
variable declarations and its definitions for one playback in the script.
Variable declarations begin with a dollar sign ($) and
variable definitions begin with an equal sign (=).
For example, the line $first=john $last=doe defines two variables, $first and $last, with the values john and doe, respectively. Upon playback in "Synthesized Mode", any occurrences of the script $first will be replaced with the string john, and any occurrences of the script $last will be replaced with the string doe. | Full technical details. |
PROF | EnvironmentVariableFile "Filename" | Edit | Performs data substitution on the current script using
the values from the specified text file.
The specified environment variables file consists of
variable declarations and definitions that are to be applied to the script.
Variable declarations begin with a dollar sign ($) and
variable definitions begin with an equal sign (=) and end with a blank.
For example $first=john $last=doe defines two variables, $first and $last, with the values john and doe, respectively. At playback time all instances of $first are replaced with john and all instances of $last are replaced with doe. | Full technical details. |
PROF | Email "email-address" "subject" "message" "attachment-path" | Edit | Sends the indicated message to the indicated email address. Attachment-path denotes the path of the file you want attached to the email. Leave it blank if no file is to be attached. You must configure your Email settings in the eValid Preferences before using this script command. | Error message is issued if problems occur connecting to the mail server, or if the e-mail was not sent successfully. |
STAN | GetURL "URL" | Playback Edit |
Used to drive HTTP directly. Must be used with Serve URL; otherwise ignored. This command is also used in eVlite runs. | NOTE: The recording process from prior version has been modified to not use this command directly. The command remains available for use in eValid if needed. |
STAN | PostURL "URL" "Value" | Playback Edit |
Used to drive HTTP directly. Must be used with Serve URL; otherwise ignored. | NOTE: The recording process from prior version has been modified to not use this command directly. The command remains available for use in eValid if needed. |
STAN | RemoveFile "filename" | Edit | Removes the named file if it exists. The current working folder is assumed if no path is specified. | An Error message is issued if eValid is unable to delete the file. |
PROF | SendFile "email-address" "subject" "filename" | Edit | Creates an email message with the indicated subject, containing the contents
of the named ASCII file, and sends it to the indicated email address.
This command can be used to collect results, e.g. logfiles, from remotely controlled tests in a common location, e.g. at the end of script playback. | Error message is issued if problems occur connecting to the mail server, or if the e-mail was not sent successfully. |
STAN |
!filename
!filename|line |
Edit | This syntax can appear in those commands where a $NAME=value
parameter can appear, namely:
CallScript;
GoScript; and
_eValid commands.
In addition the !filename construction can appear as the argument of a -DATA switch in the command line interface. The purpose of this structure is to pass values from the named file into the current command line. The initial "!" distinguishes this structure from a $NAME=value structure. This structure is used when there are many $NAME=value parameters to assign, or if the $NAME=value parameters are arranged in a table of lines e.g. from a spreadsheet.
The !file[|line] structure cannot have unescaped blank characters; if blanks are required they must be enclosed in "'s. The content of the material placed in the script is NOT checked for syntactic correctness. So it will be prudent to make certain that the material instantiated be syntactically clean. |
Error messages are issued if:
the named file is not found;
or if the required line in the file does not exist.
When errors are detected empty strings are returned as the value of the construct. |
Server Loading |
||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
LOAD | _eValid "script-file" "User-Class" repeat-count "parametric-substitution" "extra-switches" [N] | Edit | See additional information about Load Testing .
Each line in a LoadTest file where _eValid appears causes an additional eValid browser to be launched. "LoadType FULL" is the mode assumed at the start of playback, but the command "LoadType THIN" will switch the browser in subsequent invocations to the THIN version. Using instances of "LoadType LITE" causes subsequent _eValid's to launch instances of eVlite, for which the additional parameter N specifies the total number of parallel playbacks to use. |
|
LOAD | LoadType [ FULL | THIN | LITE ] | Edit | Allows the user to specify the type and fidelity
that eValid's playback engine is to use during LoadTest runs:
LoadType FULL (Default Setting) -- Using full featured eValids to run the LoadTest. LoadType THIN -- A stripped down version of eValid which can maximize the number of browsers that can run on a single machine by using a minimal footprint.
LoadType LITE --
eVlite is an alternative playback engine
within eValid that plays back any eValid script with limited fidelity.
eVlite is capable of playing back one script in a single or multiple (up to 1000) threads.
|
|
LOAD | Serve [FULL | TEXT | URL] | Edit | Modifies the HTTP requests to indicated display type.
The options are:
NOTE: Changing the Serve value in a script will affect eValid and Internet Explorer. |
eV.Generate Operation | ||||
KEY | COMMAND SYNTAX | PROPERTIES | EXPLANATION | COMMENTS |
GEN | eVgenRand [*.evt] [*.data] [n] | Edit | Send a command to run eVgen in Random mode. e.g. eVgenRand *.evt *.data | |
GEN | eVgenSeq [*.evt] [*.data] [n] | Edit | Send a command to run eVgen in Sequential mode. e.g. eVgenSeq *.evt *.data | |
GEN | eVgenReset [*.evt] [*.data] | Edit | Reset's the counter from which the sequential selection mode is being run from. | |
GEN |
!filename
!filename|line |
Edit | In certain commands, extracts the entire file or the named line number from the file into the current input. | The complete documentation for this command is found at Value Extraction Command Explanation. |
All eValid commands described in the table above are listed (and linked) here. Commands are in alphabetic order.