oaUnitInfo()

The function sets additional information for a test case.

Synopsis

int oaUnitInfo(string TC_ID, string message);

Parameter

Parameters Meaning
TC ID The test ID. Each test case must contain a test ID.
message The additional information message that is set for a test case.

Return Value

The error code. In case of wrong or missing parameters, the function returns -1 or -2. If the function was successfully executed, 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 an additional information for a test case (see example below).

Example

The example sets additional information for the test case "THIS-IS-MY-FIRST-PASS-TEST-CASE".

#uses "CtrlOaUnit"
main()
{
  string message = "oaUnit user info. This is an additional test case information";
  oaUnitInfo("THIS-IS-MY-FIRST-PASS-TEST-CASE", message);
  //Sets the additional information for a test case
}

The example outputs:

WCCOActrl (3), 2016.11.24 11:44:35.130, CTRL , INFO , 6/oaUnit_errors, Testfall 'THIS-IS-MY-FIRST-PASS-TEST-CASE' Information ausgeben: oaUnit user info. This is an additional test case information

Assignment

CTRL OA Unit DLL

Availability

CTRL

See also

CTRL OA Unit, Basics