|
Summary
This page describes the steps to set up a load test with [for this example]
five user accounts.
Later, during the eValid load test run, instances of these parameters in the functional test script (shown in bold for clarity) will be filled in with values assigned to them in the LoadTest script file (shown in bold for clarity), as illustrated below.
Functional Test Script: login.evs |
# Recording by eValid(TM) V9 # Recording made on: Microsoft Windows 2000 ProjectID "Sample" GroupID "Group" TestID "Login" LogID "AUTO" ScreenSize 1280 1024 FontSize 2 DeleteCache DeleteCookies InitLink "http://www.MYSITE.com/index.html" Wait 19528 ElementClick 0 208 "" "» Login to MYSITE" "" Wait 8112 # Original recorded command is here. The parameterized command is below it. # InputValue 0 222 "TEXT" "txtUserName" "tech1" "" "" InputValue 0 222 "TEXT" "txtUserName" "$NAME" "" "" Wait 5258 # Original recorded command is here. The parameterized command is below it. # InputValue 0 226 "TEXT" "txtPassword" "grants" "" "" InputValue 0 226 "TEXT" "txtPassword" "$PASS" "" "" Wait 170 SubmitClick 0 229 "" "LOGIN" "" NAV Wait 12345 ...rest of script... # End of script. |
In the eValid singleton functional test script above:
LoadTest Script: LoadTest_5.evl |
# eValid(TM) V9 # (c) Copyright 2012 by Software Research, Inc. # LoadTest Scenario created on: Microsoft Windows 2000 Service Pack 3 ProjectID "Illustrations" GroupID "Group" TestID "LoadTest_5" LogID "AUTO" Serve FULL LoadType FULL _eValid "login.evs" "" 8 "$NAME=username-1 $PASS=password-1" "-pm 1.0" 1 Wait 1000 _eValid "login.evs" "" 8 "$NAME=username-2 $PASS=password-2" "-pm 1.0" 1 Wait 1000 _eValid "login.evs" "" 8 "$NAME=username-3 $PASS=password-3" "-pm 1.0" 1 Wait 1000 _eValid "login.evs" "" 8 "$NAME=username-4 $PASS=password-4" "-pm 1.0" 1 Wait 1000 _eValid "login.evs" "" 8 "$NAME=username-5 $PASS=password-5" "-pm 1.0" 1 Wait 1000 # End of script... |
In the above LoadTest script: