oaUnitGetResultPath()
The function returns the path of the result test file.
Synopsis
int oaUnitGetResultPath();
Parameter
-
Return Value
The absolute path to the test result file.
Error
In case of errors the function returns an empty string.
Description
The CTRL OA Unit CTRL extension contains a set of functions that can be used for testing purposes. The function returns the path of the result test file.
Example
The example specifies the test result file path via the oaUnitSetup function and outputs the path to the log viewer via the function oaUnitGetResultPath.
#uses "CtrlOaUnit"
main()
{
const string _RESULT_FILE = getPath(LOG_REL_PATH) + "oaUnitTestResult.txt";
oaUnitSetup(_RESULT_FILE, makeMapping("UserData", makeMapping("TestSuiteId", "MY-TEST-SUITE-NR-1",
"Version", "1.2.0.32",
"Platform", VERSION_PLATFORM,
"Tool", "oaUnit",
"TestType", "Unit")));
string resPath = oaUnitGetResultPath(); //Returns the path of the test result file
DebugN("Get result path:", resPath);
}
Assignment
Availability
CTRL
See also