Forum Discussion

RJanecek's avatar
RJanecek
Regular Contributor
12 years ago

[Closed] How to get all testSuiteRunner of projectRunner

Hi,

I know how to get Project or current TestSuiteRunner

def pr =  context.getProperty( "#ProjectRunner#" )
def tsr = context.getProperty( "#TestSuiteRunner#" )


but now I want to get all testSuiteRunner of project runner. I see that TestSuiteRunner has method getResult where should be all testSuiteRunner so I try to call:
println tsr.getResults()


but this always println just empty list. What I am doing wrong ?

thx for help

6 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    Please use
    log.info
    instead. The results will show in the Script log in the bottom tab of the main soapUI window.

    --
    Regards

    Erik
    SmartBear Sweden
  • RJanecek's avatar
    RJanecek
    Regular Contributor
    I dont think log.info helps me. I am using println all time to print result to console. But I try your solution with no success:

    Mon Nov 12 15:51:20 CET 2012:INFO:[]
    Mon Nov 12 15:51:20 CET 2012:INFO:aaaaa


    still empty list
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    exactly where and how in soapUI are you running this script?

    regards,

    /Ole
    SmartBear Software
  • RJanecek's avatar
    RJanecek
    Regular Contributor
    I run whole project and when this groovy script is on turn then it println empty list