Forum Discussion

mohaistk's avatar
mohaistk
New Contributor
11 years ago

Changing Error Messages?

I want to change the error messages in TestStepResults.getMessages(), is there a way to do that?

Thank you all in advance!

3 Replies

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    Just looking at the below api link, where getMessages method there as pointed which returns string array.

    http://www.soapui.org/apidocs/com/eviwa ... esult.html

    So, now are you looking for setMessages method(of course not available there) or you would want to change the messages after getting the messages into array?
  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    Btw, would you like to share the use case trying to achieve?
  • mohaistk's avatar
    mohaistk
    New Contributor
    Yes, a setMessages() is what I'm looking for.

    The reason for this is that I have a groovy script that calls another script in another test suite. Now, that other script uses a JAR. When the JAR returns false, it returns a message detailing the reason for failure. I want to display that message as the reason why the first script failed; for when I look at in in the report.

    Makes sense? Thank you!