Parameterization:
Static input to the server or vary input to the server.
Note:Which values you enter through keyboard those values should be parameterized. Your script
should not contain any hard coded values.
Parameter Types:
1. File
2. Date & Time
3. Iteration Number
4. Random Number
5. Unique Number
6. VUserID
7. Group Name
8. Load Generator Name
9. Table
10. XML
11. User defect
1. File:
Parameter Properties:
1) Sequential Each Iteration
2) Random Each Iteration
3) Unique Each Iteration
4) Sequential Each Occurrence
5) Random Each Occurrence
6) Unique Each Occurrence
7) Sequential Once
8) Random Once
9) Unique Once
10) Same line as some other parameter.
Sequential Each Iteration:
Sequential - It stands for every user as to pick the “First Data Point”.
Each Iteration - Data point update has to “Update on Every Iteration”.
Random Each Iteration:
Users picks the values randomly.
Unique Each Iteration:
Every user has to pick “First Unused Data point”.
Sequential Each Occurrence:
Value updates on every occurrence.
Sequential Once:
If the user picks any 1 of the data point. We have to continue the same value for
all the iterations & occurrence.
Same line as some other parameter:
In a scenario there is a dependent data (UN & PWD). We have to pick associated
value from second data file. Using same line as some other parameter option. We can
instruct the user to pick same row data point from second data file.
Complex Parameterization:
We can create one “.dat” file with multiple columns for dependent data. Complex
parameterization allow you to handle test data in a proper way.
2. Date & Time:
Using Date & Time parameterization we can pick current date, future date, past date in
require format.
Current Date:
Where you can choose the current date.
Note:
Data will pick from mission date from where it is executing.
Step1: Right click create parameter & choose Date & Time option.
Step2: Choose or create require parameter in parameter properties & click ok.
Future Date:
You can choose the future date from which mission script is executing.
Step1: Right click create parameter & choose Date & Time option.
Step2: Choose or create require parameter in parameter properties & click ok.
Step3: Choose offset date & provide the no. of dates.
Past Date:
Where you can choose the past date.
Step1: Right click create parameter & choose Date & Time option.
Step2: Choose or create require parameter in parameter properties & click ok.
Step3: Choose offset date & provide the no. of dates.
Step4: We have to choose the prior to current date option.
Note:
Using working days option, we can skip weekends.
3. Random Number:
As per the business scenario we have to generate the random number in specified
boundaries in required format.
4. Unique Number:
We can generate the unique number using unique number parameterization by
providing Lower Boundary & Upper Boundary in required format.
Data Wizard: Will allow you to pull the data from database with the help of connection
string and query.
Simulate parameter: It will give an idea how the user will pick the values based on property in controller.
By number: Indicating column number from which column user supposed to pull the data.
By name: Indicating from which column user supposed to pull the data based on column name.
Column Delimiter: Values will be separated based on comma (,) or tab or space.
Note: If your data point contains comma, what is your approach to create .dat file?
Solution 1: Create tab or space based dat file instead of comma delimiter.
Solution 2: Keep the comma (,) in double quotes (“”)
First Data line: Indicating the row number from which row user supposed to start picking the value.
Note: You can load 36000 data points in a script.
When out of values: This option is available for unique-each iteration/each occurrence.
Instructing the user abort the execution or continue in cyclic manner or continue with the last value when there are no unused data points.
Block concepts in parameterization:
Block concepts is available for unique-each iteration/each occurrence property data points will be divided into blocks and allocated to users.
Option 1: Automatically allocate block size
controller itself allocates the block size based on number of user data points.
Static input to the server or vary input to the server.
Note:Which values you enter through keyboard those values should be parameterized. Your script
should not contain any hard coded values.
Parameter Types:
1. File
2. Date & Time
3. Iteration Number
4. Random Number
5. Unique Number
6. VUserID
7. Group Name
8. Load Generator Name
9. Table
10. XML
11. User defect
1. File:
Parameter Properties:
1) Sequential Each Iteration
2) Random Each Iteration
3) Unique Each Iteration
4) Sequential Each Occurrence
5) Random Each Occurrence
6) Unique Each Occurrence
7) Sequential Once
8) Random Once
9) Unique Once
10) Same line as some other parameter.
Sequential Each Iteration:
Sequential - It stands for every user as to pick the “First Data Point”.
Each Iteration - Data point update has to “Update on Every Iteration”.
Random Each Iteration:
Users picks the values randomly.
Unique Each Iteration:
Every user has to pick “First Unused Data point”.
Sequential Each Occurrence:
Value updates on every occurrence.
Sequential Once:
If the user picks any 1 of the data point. We have to continue the same value for
all the iterations & occurrence.
Same line as some other parameter:
In a scenario there is a dependent data (UN & PWD). We have to pick associated
value from second data file. Using same line as some other parameter option. We can
instruct the user to pick same row data point from second data file.
Complex Parameterization:
We can create one “.dat” file with multiple columns for dependent data. Complex
parameterization allow you to handle test data in a proper way.
2. Date & Time:
Using Date & Time parameterization we can pick current date, future date, past date in
require format.
Current Date:
Where you can choose the current date.
Note:
Data will pick from mission date from where it is executing.
Step1: Right click create parameter & choose Date & Time option.
Step2: Choose or create require parameter in parameter properties & click ok.
Future Date:
You can choose the future date from which mission script is executing.
Step1: Right click create parameter & choose Date & Time option.
Step2: Choose or create require parameter in parameter properties & click ok.
Step3: Choose offset date & provide the no. of dates.
Past Date:
Where you can choose the past date.
Step1: Right click create parameter & choose Date & Time option.
Step2: Choose or create require parameter in parameter properties & click ok.
Step3: Choose offset date & provide the no. of dates.
Step4: We have to choose the prior to current date option.
Note:
Using working days option, we can skip weekends.
3. Random Number:
As per the business scenario we have to generate the random number in specified
boundaries in required format.
4. Unique Number:
We can generate the unique number using unique number parameterization by
providing Lower Boundary & Upper Boundary in required format.
Data Wizard: Will allow you to pull the data from database with the help of connection
string and query.
Simulate parameter: It will give an idea how the user will pick the values based on property in controller.
By number: Indicating column number from which column user supposed to pull the data.
By name: Indicating from which column user supposed to pull the data based on column name.
Column Delimiter: Values will be separated based on comma (,) or tab or space.
Note: If your data point contains comma, what is your approach to create .dat file?
Solution 1: Create tab or space based dat file instead of comma delimiter.
Solution 2: Keep the comma (,) in double quotes (“”)
First Data line: Indicating the row number from which row user supposed to start picking the value.
Note: You can load 36000 data points in a script.
When out of values: This option is available for unique-each iteration/each occurrence.
Instructing the user abort the execution or continue in cyclic manner or continue with the last value when there are no unused data points.
Block concepts in parameterization:
Block concepts is available for unique-each iteration/each occurrence property data points will be divided into blocks and allocated to users.
Option 1: Automatically allocate block size
controller itself allocates the block size based on number of user data points.
Option 2: Manually we can calculate and decide the block size.
No comments:
Post a Comment