This documentation supports the 9.0 version of Remedy Action Request System.

To view the latest version, select the version from the Product version menu.

Basic scripting and replaying

In this section, you learn how to record and replay a basic SilkPerformer script.

  1. Open SilkPerformer.
  2. Choose File > New Project.
    A Workflow - Outline Project dialog appears (see the following figure).
    SilkPerformer Workflow - Project dialog box
    (Click the image to expand it.)
  3. Enter a project name and description.
  4. For application type, select ERP/CRM > Remedy > Remedy 8.1.
    This enables you to use the special SilkPerformer add-on that Micro Focus made for BMC Remedy Mid Tier. If you are not recording a BMC Remedy application, the plug-in can record actions in other HTML-based or HTTP-based applications. You do not need to specify any configuration settings in SilkPerformer to record browser-based applications.
  5. Click OK.
  6. Click the Model Script icon, or choose Record > Recorder.
    The Workflow - Model Script dialog box appears (see the following figure).
    SilkPerformer Workflow - Model Script dialog box
    (Click the image to expand it.)
  7. In the Model Script dialog box, enter the URL of the web application or page you want to record.
  8. Click OK to start recording.
    SilkPerformer opens the specified URL in your default browser. (The example shown in the above figure opens the Google website.) After the browser is opened, a SilkPerformer Recorder dialog box appears on top of the browser in the upper right corner. As you record actions in the application, you use this dialog box to add comments, pause recording, stop recording, and so on.
    Note: Add comments before each action so that the actions are easier to understand after the script is recorded. To add comments, click the comment button in the toolbar. See the following figure.
    SilkPerformer Recorder dialog box
    (Click the image to expand it.)

    You can add an unlimited number of comments. To add a comment, follow this example:
    1. Add the comment in the SilkPerformer Recorder dialog box.
    2. Click the more link on the Google home page.
    3. Close the browser.
  9. Click the Stop button in the SilkPerformer Recorder dialog box (see the following figure).
  10. In the confirmation message, click Yes. The SilkPerformer script appears.
    SilkPerformer Recorder close confirmation message

    Scripts are stored in the new project's folder. By default, the project folder is in this directory:
    C:\Program Files\Silk\SilkPerformer 2010 R2\Working\Projects* *<yourProjectNameDirectory>
    After a script is recorded, SilkPerformer creates several important files. These files help parameterize your scripts:
    • <yourScriptName>.record.bdf — Original recorded script.
    • <yourScriptName>.bdf — Script you modify. To replay this script, click the TryScript icon or choose Run > TryScript.
      Note: Usually, when you record a BMC Remedy script, you cannot replay it without first modifying it.
      When you select the Animated option in the TryScript dialog, you can see the script execute each HTTP request. The results look very similar to the recorded XLG file. (You are not running a workload. Workloads will be discussed later.) TryScript is to debug your script.
    • <yourScriptName>.record.xlg — Play-by-play GUI output. The following figure shows the google.record.xlg GUI output file. This file shows the HTTP request and the response for each call, which is very useful when you need to parse one HTTP response to give to another HTTP request.
  11. To open a file in Silk TrueLog Explorer, double-click the file name.
    Silk TrueLog Explorer
    (Click the image to expand it.)

Basic script structure

This example shows a basic performance script structure:

benchmark SilkPerformerRecorder

use "WebAPI.bdh"
use "Remedy.bdh"
use "nameOfYourHeaderFile.bdh"

TInit : begin;
TransactionName : 1;
TFinish : end;


nNumber : number;
sString : string;
bBoolean : boolean;

rChooseTier : RndUniN(2..3);

function Function1
end Function1;

transaction TransactionName
end TransactionName;

"elem1" := "Value1",
"elem2" := "Value2";

When creating scripts, follow the format of this example, using the keywords listed in the following table.

SilkPerformer script keywords




Denotes a benchmark script. Keep at top of script.


Specifies any additional files that the script references. SilkPerformer header files end in the extension BDH.


Specifies the users to simulate and define in the workload section of a test script. A user is described by the transactions that are called and by the frequency of those transactions.


Specifies the section where you define constants.


Specifies the variables that are used in a load test. They can be defined in the global section or within a transaction. Prefacing a global variable with the letter "g" is a good practice.


Specifies the random variables used in the script. Random variables are used for generating random input values, specifying random user times, and so on.


Specifies the section where you define functions. Use functions to give your script more structure.


Specifies the section where your virtual user's transactions are defined. This is the meat of the script.


Specifies the section where web forms are defined. Web forms are the most important interface for exchanging data with the web server. The BackChannel parameters are defined in this section.

See Sample SilkPerformer script to refer a complete SilkPerformer script. For information about SilkPerformer types, see the SilkPerformer Help.

Was this page helpful? Yes No Submitting... Thank you