(4), use the verification point to create the verification point task Create a verification point Select Test Object Select Check Method Select Verification Method to Use Data in Data Grid View Baseline File Copy Vertical Point Rename Ramper Point Remove Vertical Point ( 5) How to use DataPools How to understand DataPools
DataPool is a test data set. It provides data values to script variables for scripting playback.
DataPool allows you to automatically automatically in the case of big data (potential to include thousands of transactions) to extract test data to virtual testers.
DataPool effect:
1. Each virtual tester can send actual data (uniform data) to the server at the script.
2. Single virtual testers perform the same transactions multiple times and can send actual data to the server each time the transaction.
If you do not need a data source during playback scripts, each virtual tester will send the same data to the server (this data is the data under the recording script).
For example: If you send a command number 53328 to the database server when you record the VU script, if there is 100 virtual testers run this script, the number of commands 53328 will send 100 times to the server. If you use DataPool, each virtual tester will send different command numbers to the server.
DataPool structure:
DataPool extension the file with .csv, this file has the following characteristics:
1, each line contains a record.
2, each record contains the DataPool value domain defined by the Separetor Character, Icology (,)
3, the DataPool value domain can contain scripts.
4, each column of the DataPool file contains a list of DataPool values.
5. If the value is within the attached dual quotation, this single value contains a Separetor Character domain, such as "Jones, Robert" is a single value in the record, not two. The value is stored in the DataPool file. Quotation marks are not part of the value supplied to the application.
6, a single value can contain bundles. For example: "Jones, Robert" Bob "is a single value of records, not two.
.CSV and .SPC are in the DataPool directory stored in the Robot project.
Below is a case of a DataPool file with three rows of data:
John, Sullivan, 238 Tuckerman St, Andover, MA, 01810
Peter, Hahn, 512 Lewiston Rd, Malden, MA, 02148
Sally, Sutherland, 8 Upper Woodland Highway, Revere, MA, 02151
Note: If DataPool contains complex values (such as, the DataPoo value contains Field Separator Characters), you should observe (or other text editor such as Microsoft Excel) and make it a exact DataPool ColumnS you expect.
DataPool Editor:
When the Robot edits the DataPool value, use the Configure DataPool In Script dialog.
Observe or edit existing DataPool:
1. If DataPool will open the script of the editor, click File --Open --- Script Open
2. Hit Edit --DataPool Information Opens the DataPool settings on the pin dialog.
3, accept the DataPool default settings of the foot dialog, you can also do some adjustments. View help. 4, complete the setting, press OK.
5, press Edit EXISTING DATA.
6. Calibrate the DataPool value appropriately at the DataPool Edit dialog box.
7. Complete the correction of the DataPool value, press saving, close.
How to use DataPools
1. Add the DataPool command in the GUI script:
When the session is recorded, the application is set to the application. After the record is completed, the script is edited and the following basic operations are performed.
1) Refer to the Sqautil.SBH header file;
2) replace variables when using the records;
3) Increasing the DataPool command to open DataPool, take a row of data from DataPool, locate the individual value from the row, and assign each value to the script variable.
2, establish and synthesize DataPool:
1) Click on Menu File → Open → Script to open the script
2) Click Menu EDIT → DataPool Information to open the DataPool configuration option in the script dialog;
3) Use default configurations or make appropriate changes. Need to help click on the top of the dialog, then click on the entries you need to help;
4) Click on the button after the modification;
5) Do one of the following:
- Create definition and make up a new DataPool, the DataPool Specification dialog box appears, if DataPool already exists, there is no CREATE button, but the Edit Specification button;
- If you don't want to define the generation of DataPool, click Close;
6) In the DataPool Specification dialog, define the DataPool column with the DataPool field;
7) Insert the new column to DataPool:
a, click on the DataPool column you want to insert;
B. Click Insert Before or Insert After according to the DataPool column to be inserted;
c, enter the name of the new column (maximum 40 characters);
D, the new DataPool column gives the data type.
8) After defining the DataPool column, in No. of Records to Generate.
Enter a number;
9) Click Generate Data to generate data;
10) Click Yes to see a summary of the generated data.
3, edit the column defined by DataPool:
Operating basic same 2, difference: Step 5 To click Edit Specification to open the DataPool Specification dialog, you can modify the definition of the DataPool column. None 6);
4, edit the DataPool value:
1) Click on Menu File → Open → Script to open the script;
2) Click on Menu Edit → DataPool Information to open the Configure DataPool In Script dialog;
3) Use default configurations or make appropriate changes. Need to help click on the top of the dialog, then click on the entries you need to help;
4) Click Save after the modification;
5) Click Edit EXISTING DATA;
6) In the Edit DataPool dialog, modify the value of DataPool; 7) After editing, click Save, and then click Close.
5, edit DataPool configuration
1) Click on Menu File → Open → Script to open the script;
2) Click on Menu Edit → DataPool Information to open the Configure DataPool In Script dialog;
3) Modify fields and columns in the Configure DataPool In Script dialog;
4) Click Save after the modification;
5) Do one of the following:
- Click Create Defining to make a new DataPool;
- Click Edit Specification to modify the column definition of DataPool;
- Click Edit EXISTING DATA to modify the value of DataPool;
- Click Close.
6, set the DataPool pointer
1) Tap Menu File → Open → Script Open the script;
2) Click on Menu Edit → DataPool Information to open the Configure DataPool In Script dialog;
3) Select the Persistent check box to set the Access ORDER to Sequential or Shuffle;
4) Specify the DataPool line to be accessed for the first time when the Row Number is specified;
5) Click on Set Cursor.
7, generate and retrieve the unique value
At least a column unique data
Generate enough DataPool line
Can't hide pointers
Use an ordered or confusing access order
Cannot pointer when testing