oaUnitPass()

The function sets the flag "Passed" for a test case.

Synopsis

int oaUnitPass(string TC_ID, [anytype userTcData]);

Parameter

Parameters Meaning
TC ID The test ID. Each test case must contain a test ID.
userTcData The optional user data to be set for the test case.

Return Value

The error code. In case of wrong or missing parameters, the function returns -1 or -2. If the "Passed" flag was set, the function returns 0.

Error

The function returns the error code.

Description

The CTRL OA Unit CTRL extension contains a set of functions that can be used for testing purposes. The function sets the flag "Passed" for a test case.

Example

The example sets "Passed" flags for two test cases, for one without user data and for the second with user data.

#uses "CtrlOaUnit"
main()
{
  oaUnitPass("THIS-IS-MY-FIRST-PASS-TEST-CASE");//without user data
  oaUnitPass("THIS-IS-MY-SECOND-PASS-TEST-CASE", "This test case works very well");
  /*with user data as string (comment)*/
}

Assignment

CTRL OA Unit DLL

Availability

CTRL

See also

CTRL OA Unit, Basics