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.

> Reserved Variables Feature

  The reserved variables feature of eValid lets a user insert
  certain "meta variables" into a script file to allow importation
  of runtime environment variables.  This feature aids the user in
  using the current environment settings and other features within
  the current script file.

  Reserved variables in a script file have their value replaced
  during execution through DataSynthesis or batch mode operation.
  This makes it possible to produce scripts that can run
  successfully on different machines and/or with different contexts.

  Reserved variables always have the syntax "$_name", where name
  describes the variable value to be used at script playback time.

  To insert a reserved variable in the script, follow these simple
  steps:

  (1) Create or edit an eValid script file.

  (2) Identify the fields to be replaced with the reserved
      variables.

  (3) Replace the fields with the appropriate reserved variable
      name.

      For example, here are the "before" and "after" versions of a
      script passage;

          # Before...
          # Enter the current hostname
          InputValue 0 99 "TEXT" "p" "hostname#1" "" ""
          # Enters a date string in the textbox
          InputValue 0 58 "TEXT" "p" "January 1 2000" "" ""

          # After editing...
          # Enter the current hostname
          InputValue 0 99 "TEXT" "p" "$_HostName" "" ""
          # Enters a date string in the textbox
          InputValue 0 58 "TEXT" "p" "$_MonthFull $_Date $_Year" "" ""

      In this example "$_HostName" refers to the Host Name of the
      local machine (on which eValid is executing).

  (4) Save and run the script using the "Run Synthesized" command
      option, or with a command line invocation.

  As the command is executed eValid substitutes the fields in the
  script based on the current values as specified within the
  environment, such as the current hostname and date data, as used
  in the above example.

  For more information on other reserved variables, please refer to:
  Reserved Variables