Next: , Previous: General, Up: General


6.5.1 Test case result

Test cases defined in Lua scripting language return their results by value (as they are functions). Two macros are provided: TP_PASSED and TP_FAILED.

Example:

     function case_function() -- This is a title
     	Return TP_PASSED;
     end
     
     function case_function() -- This is a title
     	Return TP_FAILED;
     end