Settings Functions Reference

Silk Performer provides a number of settings functions to allow you to specify in your test script any of the Web-related settings you can specify in the Silk Performer interface. This allows you to specify Web settings individually for each test script and change settings within a single script.

注: For nearly every WebSet function used to specify a setting, there is a parallel WebGet function to get the current specification.

Most of the WebSet functions wait until all threads have returned. Threads are started by low-level web function calls. The Web settings in the workbench can then be overridden by WebSet function calls.

Example

dcltrans
  transaction TInit
  begin
    WebSetUserAgent("Mozilla 2.0 compatible (Selfmade Browser)");
  end TInit;