Getting a Playback Setting Value in a Visual Test

You can get a playback setting by inserting a step in a visual test that returns the current value of an option and stores the value in a local variable. You can then use the local variable in verification or logic steps or to reset a playback setting value back to its original value.

  1. Open the visual test in which you want to get the value of the playback setting.
  2. Create a local variable to store the playback setting value.
  3. Select the step that precedes where you want to insert the playback setting step. Steps that retrieve the value of a setting and set it to a variable must execute sequentially before any steps that use the variable.
  4. Choose Insert > Playback Setting > Get Step. Silk Test Workbench inserts a Get playback setting step after the selected step. Properties for the Get playback setting step display in the Properties pane.
  5. Select the newly created step to display its properties in the Properties pane.
  6. Select the appropriate setting and assign its value to a variable. The following settings are available:
    • All options under Tools > Options > Advanced, with the exception of the options under Tools > Options > Advanced > ActiveData.
    • All options under Tools > Options > Playback > General.
    • All options under Tools > Options > Playback > Timing.
    • All options under Tools > Options > Playback > xBrowser.
    • All options under Tools > Options > Playback > Close.
    • All options under Tools > Options > Playback > Playback Status Dialog.

    Silk Test Workbench updates the label of the Get playback setting step as follows:

    Get playback setting '[playback setting name]' and set to '[variable name]'
  7. Repeat the above steps to create other Get playback setting steps as needed.