> DataSynthesis Command:
With the eValid DataSynthesis Command, users have the option for
automatic data substitution. DataSynthesis command differs from
the eVgenerate feature of eValid where a single line in the user
created data file represents a single run.
This command is normally used when a user wants a specific set of
data to be substituted for each run. Follow these simple steps in
order to create a data synthesis file:
(1) Create a text file which contains the data to be substituted
in the script.
For example, here is how this would appear for a typical file
$username=user1 $password=pass1 $address=address1
$username=user2 $password=pass2 $address=address2
$username=user3 $password=pass3 $address=address3
$username=user4 $password=pass4 $address=address4
$username=user5 $password=pass5 $address=address5
(2) Save the data file.
(3) Create a script from the website where the values are to be
substituted. Replace the original values with the fields
specified in the DataSynthesis File.
Here is an example of how this works.
Original Script:
InitLink "http://www.mysite.com"
InputValue 67 "TEXT" "uname" "tester" "" ""
InputValue 78 "TEXT" "pass" "evalid" "" ""
InputValue 83 "TEXT" "address" "1663 Mission" "" ""
SubmitClick 381 "Submit This Form" ""
Modified Script:
InitLink "http://www.mysite.com"
InputValue 67 "TEXT" "uname" "$username" "" ""
InputValue 78 "TEXT" "pass" "$password" "" ""
InputValue 83 "TEXT" "address" "$address" "" ""
SubmitClick 381 "Submit This Form" ""
(4) Insert the DataSynthesis command in the edited script.
DataSynthesisFile "example.txt"
InitLink "http://www.mysite.com"
InputValue 67 "TEXT" "uname" "$username" "" ""
InputValue 78 "TEXT" "pass" "$password" "" ""
InputValue 83 "TEXT" "address" "$address" "" ""
SubmitClick 381 "Submit This Form" ""
(5) Save the script.
(6) Run the script in DataSynthesis Mode by clicking on "eValid >
Playback Mode > Control Playback > Run Synthesized" or by
simply pressing "Ctrl + Alt + F9".
(7) The number of lines in the DataSynthesis Table represents the
number of runs eValid will perform in order to substitute all
the data from the file.
Each run DataSynthesis run will be recorded in the log files
as if each tests was run separately.
For additional information, please visit the DataSynthesis
page on our website:
Test Data Synthesis Playback Mode
|