Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

obtain number of threads in a load test via groovy

I have a loadtest teardown function which looks like

foo(int numberOfThreads)

how can I obtain the number of threads in a load test via groovy.

Thanks

Ali

2 Replies

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

    the number of threads in a TearDown script of a LoadTest can be obtained through

    loadTestRunner.loadTest.threadCount

    Regards,
    Dragica
    • shabarish's avatar
      shabarish
      New Contributor

      I can't access the function loadTestRunner.LoadTest.ThreadCountin ReadyAPI . Can you please show how to access the function?