Options (Capture/Replay)
Settings on the Options tab allow you to apply scaling to the user scenarios (transactions) for a particular test.
To apply scaling to user scenarios
- In the Edit Job or New Job Wizard, select a test under Workload in the left pane.
- From the Test Options tab, select the Options tab.
-
Modify options. Review the following for additional information:
Enable Userload scaling (simulation) |
Select to enable scaling for all user scenarios in the selected test.
- Move the slider to the right to scale up userload for all scenarios (transactions) during playback.
- You can also specify the number of users per scenario in the Transactions tab. See Transactions Tab for more information.
|
Execute by time |
Sets the time and length of the capture replay test. |
Add SQL Transactions
The Add SQL Transactions function allows you to add a SQL statement transaction to a test in the Job workload.
To add a SQL statement transaction to a test
- In the Edit Job or New Job Wizard, select a test under Workload in the left pane.
- From the Test Options tab, select the Transactions tab.
- Select Add SQL Transactions from the Add SQL Transactions drop-down list.
- Or select a user scenario and click
to open the list of SQL transactions. Then select Add SQL Transactions.
- The Add SQL Transaction dialog opens. Do one of the following:
-
Modify the remaining options on the SQL Statement tab. Review the following for additional information:
Statement Name |
Enter a name for the statement, or use the default. |
Execution Method |
Select an execution method for the SQL statement.
- Prepare and Execute SQL—Prepare the SQL and execute immediately after preparation.
- Prepare SQL Only—Prepare SQL without executing.
- Execute already prepared SQL—These transactions will run the SQL statement contained with the reference prepared SQL when called. If the statement has not been prepared, an error will generate.
|
|
Click to execute the SQL statement. See Run SQL Preview for more information. |
|
Click to add a bind variable.
- Select the Bind Parameters tab and then click
or double-click within the Bind Parameters window to add a bind variable and value. |
- Select the Latency tab to specify latency values for the SQL transaction. See About Latency for more information.
- Click OK in the Add SQL Transaction dialog to the save the SQL statement and add it to the test.
Use BFScript Wizard
Note: Controls with yellow background can be scripted.
Benchmark Factory scripting allows you to randomize the load testing process. Scripting can be utilized by selecting the SQL Statement node and inserting the script in the properties view. A field has scripting capabilities if its right-click menu contains the Script Wizard option.
The Script Wizard is a quick and easy way to use Benchmark Factory scripts. The Script Wizard consists of a script category and a script function. Each script function has a short description included and if applicable, its parameters.
There are two features within Benchmark Factory that assist you when using scripting capabilities:
Click here for an overview of $BFScripts.
Script Wizard
- Right-click the edit control. A drop-down display.
![](/fr-fr/technical-documents/image/d7779bd9-b614-46c2-88b5-749925048cce)
- Select BFScript Wizard from the drop-down. The Script Wizard displays.
- Select the desired script.
- Some scripts require further parameters settings. For a complete overview of individual script settings, please refer to Scripts Overview.
If scripts require parameters:
- Click Next.
- Enter the required parameters.
- Click Finish. The script and parameters display in the Script Wizard.
Script Assist
- Type in the desired SQL statement. When $BF is typed the Script Assist is activated allowing you to insert the desired script.
![](/fr-fr/technical-documents/image/36753896-720d-4850-9dc2-05d0103d39dd)
- Select the desired script.
- Press Enter. The script displays.
- Type in parameters as required.
Run SQL Preview
SQL Preview allows you to preview the result set of an individual SQL statement when adding or editing a SQL transaction.
To run SQL Preview
- In the SQL Statement tab, click
.
- Select a connection from the drop-down list.
![](/fr-fr/technical-documents/image/749c2a0f-9378-48eb-a916-bd1aefaed315)
- In the Maximum Returned field, enter the maximum number of rows to preview, or select the All option to preview all rows.
- Click OK. The SQL Preview window opens.
- Review the information.
- Click Close.