SendMessage [changed since version 1.3.0]

Parent Previous Next

SendMessage

Description: the method displays messages in the test execution process table

When executed, action is output to the system console if status is FAILED, WARNING, "", null, otherwise only status and comment are output (without action).


Syntax: SendMessage(string action, string status, string comment)


Example:

tester.SendMessage("the text of the actions", Tester.PROCESS, "the text of the comment");


/* Examples of console output */

// action comment

tester.SendMessage("actions", null, "comment");

tester.SendMessage("actions", "", "comment");


// Step[progress]: comment

tester.SendMessage("actions", Tester.PROCESS, "comment");

// Step[passed]: comment

tester.SendMessage("actions", Tester.PASSED, "comment");

// Step[completed]: comment

tester.SendMessage("actions", Tester.COMPLETED, "comment");

// Step[stopped]: comment

tester.SendMessage("actions", Tester.STOPPED, "comment");


// Step[failed]: действие комментарий

tester.SendMessage("actions", Tester.FAILED, "comment");

// Step[warning]: действие комментарий

tester.SendMessage("actions", Tester.WARNING, "comment");

Created with the Personal Edition of HelpNDoc: Full-featured Documentation generator