Sunday, September 13, 2009

Data Assignment methods

Data Assignment methods: In Vugen we have the option of selecting how to assign the value to the parameter. This is applicable for file and table type. Three methods are available:
  • Sequential
  • Random
  • Unique
The above data assignment methods along with update method will decide what values vuser use to substitute parameters during the execution. We will discuss how these work in detail:

If the above table is not clear lets discuss taking an example:Lets consider table file with the following values:QQ, AA, ZZ, WW, SS, XX

Sequential:

If there are not enough values in the data table, VuGen returns to the first value in the table, continuing in a loop until the end of the test.

Unique :

When out of values we have the below options to choose:

  • Abort Vuser : Vuser stops running when there are no unique values
  • Continue with Last Value: Vuser uses the last value for all the remaining iterations when it runs out of unique values.
  • Continue in cyclic manner: Vuser uses the values again from top for all the remaining iterations when it reaches the last unique value.

Note : Vuser Doesn’t really identify unique values, like for eg for unique you can have values like 1 2 3 4 2 6 7 4 Unique allocation in terms of blocks. See example below:

Number BlockNumber

1 1

2 2

1 3

2 4

5 5

6 6

If u have 2 Vuser and running for 3 iteration then

1st Vuser ( will be allocated block number from 1 to 3 irrespective of the values present)

2nd Vuser (will be allocated block number from 4 to 6 irrespective of the values present)

We can allocate Block size automatically or you can specify how many values have to be used for each vuser. This is applicable for only Unique type.

Note : Make sure you have enough values when you choose unique else you will end up getting “ No more unique values” error during executions.

No comments:

Post a Comment