Run a SilkPerformer loadtest from the command line or from a batch file.
The syntax to run Silk Performer from the command line is :-
PERFORMER [project file [/Automation [refresh rate] [/WL:workloadname] [/StartMonitor]] [/PatrolReport] [/Dev]]
For example: assuming a default installation of Silk Performer 9.5 on the C: drive
"C:\Users\ciaranb\Documents\Silk Performer 9.5\Projects\Demo_Borland_Web\Demo_Borland_Web.ltp" /Automation 30 /WL:"Workload1"
The following is a list of the available parameters and their description:
- project file Name of the project file; that defines the load test to be executed, to open.
- /Automation Automatically start the load test that is defined by the specified project file. If you omit this parameter, SilkPerformer simply opens with the specified project.
- refresh rate Refresh rate, in seconds, at which the Monitor window is to be refreshed. If you omit this parameter, then no refresh will occur.
- /WL:workloadname Name of the workload in the specified project file. If you specify a workload, it will be set as the Active Workload in the project file.
- /StartMonitor Start monitoring facility of the Performance Explorer when running the test.
- /PatrolReport Create a result file, named LoadTestReport.xml, at the end of the load test where all agent summary measurements are stored. Note: You must be licensed for Silk Performer KM in order to use this switch.
- /Dev Specifies to start as SilkPerformer Developer Workbench.
- /Lite Specifies to start as SilkPerformer Lite Workbench.
- /CTE Specifies to start as SilkPerformer Component Workbench.
- /Vision Specifies to start as SilkPerformer Monitor Workbench.
- /? or -? Displays help about the SilkPerformer command line interface.
- /Resultsdir:directory Specifies the directory where the load test results are stored. The directory path can be absolute or relative to the project file.
- The Loadtest MUST be run once from the SilkPerformer workbench before being used as scheduled test. This is to ensure that the workload information is written in to the LTP file.
- Ensure "WL" is in upper case
- Ensure you have named the LTP file correctly and have referenced the path correctly in the batch file.
- Ensure that the command is on a single line in your batch file. Batch files are executed on a line by line basis.
- You need to include quotation marks as shown.
For complete details on the Syntax please refer to the section "Running a load test from the command line" in the Online Help or type the following from a command line : performer -?
Please note, the command line parameter /Resultsdir:directory was only added in Silk Performer 10.0 and is not available in earlier versions.