Record Method

Adds a step to the test.

Remarks

  • Do not record a method unless the custom control has a method with this signature.
  • The test object method is specified by strFunc. The parameters list is passed as an array of values. Pass parameters only of data types that can be stored in a Variant.
  • For some events or messages, it is impossible to know whether to add the step to the test until the next event or message is received. Handle recording logic with the eMode parameter.
  • To use symbolic values known to UFT but not included in this API set, such as micRightBtn, pass the fully qualified symbol as a string. For example, pass "MicScriptConstant::micRightBtn". The quote marks are part of the parameter syntax. If you attempt to use the symbolic values directly, such as micRightBtn they are interpreted as literal strings.

Syntax

Visual Basic (Declaration) 
Overridable Sub Record( _
   ByVal strFunc As String, _
   ByVal eMode As RecordingMode, _
   ByVal ParamArray parameters() As Object _
) 
C# 
virtual void Record( 
   string strFunc,
   RecordingMode eMode,
   params object[] parameters
)

Parameters

strFunc
The name of the test object method to be invoked.
eMode
A value of the RecordingMode Enumeration.
parameters
The function parameters as an array of values that can be stored in a Variant.

See Also