|
Sequential Log In
The following are basic examples of how to use eVgen with
eValid to generate test data.
First,
create a new script with eValid and add the
following recording to your script:
This script will serve as your template file in which the field names enclosed in the {} will be substituted from the values file.
#
# Recording by eValid V9
# (c) Copyright 2012 by Software Research, Inc.
# Recording made on: Microsoft Windows XP
#
ProjectID "TDGensrc"
GroupID "Debug"
TestID "logintemp"
LogID "AUTO"
InitLink "http://login.yahoo.com/config/login?cjub8dtpvd1ml"
Wait 8112
FollowLink 0 12 "" "http://www.yahoo.com/r/m1" ""
Wait 7891
InputValue 0 72 "TEXT" "login" "{% login}" "" ""
InputValue 0 77 "TEXT" "passwd" "{% pass}" "" ""
InputValue 0 81 "CHECKBOX" ".persistent" "Y" "FALSE" ""
SubmitClick 0 86 "Sign in" "" NAV
ValidateSelectedText 0 9 0 "Welcome evalid33@yahoo.com" "wmailmain"
ValidateSelectedText 0 90 4 "You are using 0% of your 6.0 MB limit" "wmailmain"
Wait 12799
FollowLink 0 25 "Yahoo!" "http://www.yahoo.com/" ""
# End of the script.
Create another script and paste the following :
This script will be used to invoke eVgen and generate the test data using the supplied table and template file from a prior recording which should create another script file called logintemp.evs from the loginout.evt template.
#
# eValid V9
# (c) Copyright 2012 by Software Research, Inc.
# Script created manually on: Microsoft Windows XP
#
ProjectID "TDGensrc"
GroupID "Debug"
TestID "login_seq"
LogID "AUTO"
eVgenSeq "logintemp.evt" "loginval.data"# End of script
To reset the sequential counter, add the eVgenReset ["*.evt"] ["*.data"] to the script.
Screenshot of output of the test conducted: