Your e-Business Quality Partner 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 -- Interactive Mode Example Structure
eValid Home

Introduction
eValid's Interactive Mode provides the ability to operate eValid from within an outside scripting language.

Pseudocode
The general structure of the scripting language script is shown below. This example executes an eValid script file line by line and accumulates logfile results. At the end of playback this results in logfiles that are the equivalent to having run the test script directly with eValid.

This pseudocode shown below outlines reading and playing back an existing script file one line at a time. However, the file can contain multiple lines -- or even a complete script -- if desired. In any case the total effect of a script playback is the same as a normal playback, except that it is done entirely from the scripting context.

Any scripting language will suffice: C/C++, PERL, PYTHON, tcl, VB, etc. are all possibilities. Here is the example structure expressed as a C/C++ Scripting Example.

Startup Operations
	(local resources, settings, controls)

Create input file

Launch eValid in Interactive Mode 
	(establishes input file, names output log files)

Open script file

While (script lines remain to be processed)

	Read one script line
	Wait for eValid to yield control of input file.

	Write eValid command into input file.
	Release input file handle to eValid.

	(eValid is polling the input file and takes the handle
	as soon as it is available.  eValid keeps the handle
	until it has completed the command and all log files
	are updated.)

	Analyze resulting logfiles (optional).

End while	

Close script file

Close eValid with ExitNow command.