Next: , Previous: MIN2Lua API, Up: MIN2Lua API


6.6.1 print method

The print functionality can be used to print messages on the Console UI.

     function case_function() -- print test
     	min.print("Hello World");
     	return TP_PASSED;
     end

It is also possible to use message formatting, to achieve this one must use built-in Lua string functionality called format

     function case_function() -- print test with formatting
     	min.print(string.format("Message: %s, id %d",Hello,112));
     	return TP_PASSED;
     end