Scripting - Print to the Message window

LegacyForumLegacyForum Posts: 1,669 ✭✭
edited December 2016 in SOAtest
how to?
Hello, is it possible to print to the SOATest Message window using the Method tool? or other? Thanks!
Tagged:

Comments

  • LegacyForumLegacyForum Posts: 1,669 ✭✭
    To answer my own question... the following uses Python via the Method tool to print "Hello" in the SOATest Message window.


    CODE
    from com.parasoft.api import *

    def printMessage(input, context):
     Application.showMessage("hello");
  • LegacyForumLegacyForum Posts: 1,669 ✭✭
    That's right Martin. You can also use Application.popupMessage() to show a dialog box with your message. Glad this was useful for you.

    -Mike
Sign In or Register to comment.