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:

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


/* Examples of console output */

// action comment

int step = tester.SendMessage("actions", null, "comment");

int step = tester.SendMessage("actions", "", "comment");


// Step[progress]: comment

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

// Step[passed]: comment

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

// Step[completed]: comment

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

// Step[stopped]: comment

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


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

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

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

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

Created with the Personal Edition of HelpNDoc: News and information about help authoring tools and software