Returns the name of the current test case.
sName = GetTestCaseName()
Variable | Description |
---|---|
sName | The name of the current test case. Return value is NULL if not in a test case. STRING. |
[-] appstate State1() [ ] STRING sName [ ] sName = GetTestCaseName() // Get name of testcase [-] if (sName == "T2") // Process based on the [ ] Print (sName) //testcase name [-] testcase T1 (INTEGER iValue, STRING sName) appstate State1 [ ] // test case code here [-] testcase T2 (STRING sExpectedValue) appstate State1 [ ] // test case code here [-] main() [ ] T1(1, "My First Test")