Please explain the eValid DataSynthesis command

Use and application of the eValid server loading (LoadTest) capability. And in the cloud computing context for monitoring and loading.

Please explain the eValid DataSynthesis command

Postby PHellett » Thu Oct 21, 2021 6:40 am

Morning.

Can you please explain the eValid DataSynthesis Command?

Thanks
PHellett
 
Posts: 1
Joined: Thu Oct 21, 2021 6:35 am

Re: Please explain the eValid DataSynthesis command

Postby eValid » Fri Oct 22, 2021 9:02 am

PHellett wrote:Morning.

Can you please explain the eValid DataSynthesis Command?

Thanks


Thanks for inquiring about that command PHellett.

With the eValid DataSynthesis Command, users have the option for automatic data substitution.

DataSynthesis command differs from the eV.Generate 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" ""

To this 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 (Add URL)


-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Performance/Load Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons