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 -- Script String/Parameter Substitution
eValid Home

Summary
eValid performs parameter string substitutions within parameterized scripts in several modes:

Example
The eValid string substitution process works both in regular scripts (via CallScript commands) AND in LoadTest scripts, where string substituion is also commonly applied.

In a typical LoadTest script such as shown below, you can see how the $Name=value feature is used to automatically modify playback scripts to account for minor variations between individual playbacks (Special Character Treatment).

   
    #
    #  Sample scenario script for eValid
    #
    ProjectID "Test"
    GroupID "Load"
    TestID "Scenario_01"

    _eValid "script1.evs" "Simplest"      60   "$LOGIN=jones $PASSWD=bill" "-pm 0.9"
    _eValid "script2.evs" "Not So Simple" 90   "$ACCT=Smith $PASSWD=Any"   ""
    _eValid "script3.evs" "Type A User"   50   "$USERID=Andrew"            ""
    _eValid "script3.evs" "Fast Type A"   1200 "$USERID=Jane"              "-pm 0.5"  
    _eValid "script3.evs" "Type A User"   80   "$USERID=Eddy"              ""

    _eValid "script3.evs" "Slow Type A"   40   ""                          "-pm 2.25"
    _eValid "script4.evs" "Type B User"   70   ""                          "-pm 1.0" 
    _eValid "script5.evs" "Type C Buyer"  100  "$ACCT=smith"               "-pm 1.0"
    _eValid "script5.evs" "Type C Buyer"  150  "$ACCT=jones"               "-pm 0.2"
    _eValid "script6.evs" "Background"    300  ""                          ""
  

In this example LoadTest scenario, the script script1.evs has the value jones substituted for instances of $LOGIN that have been included in it. Later on, the script script5.evs has the name smith substituted for all instances of the string parameter $ACCT.

Usage and Limitations
Here are the syntax and semantics rules for string/parameter substitution in eValid.