Immediately Saving Updated ActiveData in a Visual Test

Any ActiveData that is updated in an expression during visual test playback is automatically saved back to the ActiveData file when playback successfully completes. If data from various cells in an ActiveData file has been changed, Silk Test Workbench saves the updated data back to the same cells unless other cells are specified.

Rather than waiting for successful playback to save data automatically back to the ActiveData file, you can create a step to immediately save specific updated data. The step only saves selected ActiveData that has been updated to that point in the visual test. ActiveData that is updated after the step executes is saved upon successful playback, unless the automatic save is cancelled.

  1. In the visual test, create any local variables to be used in the expression to be created.
  2. In the visual test, associate ActiveData assets whose data columns you want available for use in the expression to be created.
  3. Create expressions that update data in an ActiveData file and store the updates back to the original cells.
  4. Select the last Expression: step in the visual test that updates data that you want to save immediately.
  5. Choose Insert > ActiveData > Save Now. Silk Test Workbench inserts a Save values immediately to ActiveData file step below the selected step.
  6. Select the Save values immediately to ActiveData file step that you just created. Properties for the step appear in the Properties pane.
  7. Set the ActiveData category properties to specify the ActiveData asset containing the data file whose updated values are to be saved immediately.
Tip: Use ActiveData properties for the Save values immediately to ActiveData file step to change the save option or ActiveData to be saved if necessary.