RunOptions Object > Properties > ImageCaptureForTestResults Property
ImageCaptureForTestResults Property
Description
The criteria for when to capture still images for the run results.
Property type
Read-write property
Syntax
Visual Basic
Public Property ImageCaptureForTestResults As String
Return Type
  • Always--Captures images for all steps in the run.
  • OnError--Captures images only for failed steps.
  • OnWarning--Captures images only for steps that return a failed or warning status.
  • Never--Never captures images.
Remarks
Note: This property replaces the CaptureForTestResults property that was available in earlier versions of the UFT automation object model.  The CaptureForTestResults property is supported for backward compatibility only and should be replaced with the ImageCaptureForTestResults property in your existing automation scripts.
Example
See Also