Your e-Business Quality Partner eValid™ -- The Web Quality Suite
Browser-Based Client-Side Functional Testing and Validation Page Timing/Tuning Transaction Monitoring. WebSite Spidering & Analysis and Realistic Server Loading.
© Copyright 2000-2011 by Software Research, Inc.

eValid -- Power User Tips & Tricks
Prior   |   Catalog   |   eValid Home   |   Search   |   Next

Become an eValid Power User!
eValid Power User's Tips and Tricks can help you use eValid to get better results, quicker, and easier. Each Tips and Tricks item addresss one or two issues that will help you to increase your effectiveness with eValid.

> Achieving Synchronization on Pages with Javascript Components

  Background...

  Certain Javascript components, when loaded in a page, do not
  instantaneously appear even when the status indicator of the
  browser displays the "Done" message.  For example, some menu-based
  navigation schemes or complicated form or manipulation passages
  can take a non-trivial amount of time to complete.

  Technical Explanation...

  When downloading and rendering a page, eValid has an internal
  "Page Complete" signal which tells the eValid browser that all
  components have been successfully downloaded.  In the case of
  Javascript files and passages, however, all of the page components
  have already been downloaded and "Page Complete" does not
  necessarily mean that all of the Javascript work has been
  completed.  While the page may appear complete on the screen,
  until the Javascript work is done any playback action with the
  page may cause synchronization issues during playback.

  Solution...

  To ensure reliable playback of scripts in eValid, it is best to
  add validation & synchronization steps in the script.

  For example, a Validate and Synchronize command based on
  appearance of some text string or image that is produced by
  Javascript will work fine to assure synchronized playback.

  The other method is to impose slight delays to allow the
  Javascript work to complete.  These delays can be inter-command
  delays, or increases in the wait times in between the script
  commands.  The extra time allows large Javascript components to
  load and render on the screen, making a script playback fully
  reliable.