Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • The parameter types supported by Qualitia QTP / UFT are String, integer, and Array.
  • Error Resume Next Statement

...

All custom actions shall return following integer values only as shown in the following table.

ReturnDescription
0PassFor passed test cases
1FailFor failed test cases
2DefectFor defective test cases

No two custom actions can have the same function name in the same class.

...

Info

For example,

If err.number = 0 Pass Then

            WaitFor = 0Pass

            WriteStatusToLogs "Action: "&strMethod&vbtab&_

            "Status: Passed " &Vbtab&_

            "Message: Waited successfully for "&intWaitTime&" secs"

     Else               

            WaitFor = 1Fail

            WriteStatusToLogs "Action: "&strMethod&vbtab&_

"Status: Failed" &Vbtab&_

            "Message: An error occurred during the wait"

     End If

Assign the execution report value as Pass or Fail to the function. In Qualitia, 0 defines as Passed, 1 as Failed and 2 as Defect. We You can also assign the value using variables ‘STATUS_PASSED’, ‘STATUS_FAILED’ and ‘STATUS_DEFECT’. The WriteStatusToLogs is used to display the message in Qualitia execution report.

...

  • Using or Passing integer values in Qualitia

To use any value as an integer inside the custom action, make sure to use Cint() and specify the data type as String while mapping the custom action in QFD.