Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Scripting - Print to the Message window

LegacyForum
LegacyForum Posts: 1,664 ✭✭
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

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    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");
  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    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