ImageCaptureForTestResults Property


The criteria for when to capture still images for the run results.

Property type

Read-write property


Visual Basic
Public Property ImageCaptureForTestResults As String

Return values

  • 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.


This property replaces the CaptureForTestResults property that was available in earlier versions of the UFT One 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.


Instruct UFT to Capture Still Images During a Test Run

See Also

RunOptions Object