Forum Discussion

toun's avatar
toun
New Contributor
21 days ago

Bug in LoadTest context.RunCount / TotalRunCount

In a LoadTest (ReadyAPI 3.62) the context includes: 

https://www.soapui.org/docs/load-testing/scripting-possibilities/

  • context.RunCount - contains the number of times this Thread has executed the TestCase
  • context.TotalRunCount - contains the total number of times the TestCase has been run during the execution of the TestCase

However, when I run 2 VUs 4 Max Target Runs with a single TestCase that only logs the context, i get numbers that don't fit to the description:

{ThreadIndex=1, TotalRunCount=0, LoadTestContext={}, RunCount=2,
{ThreadIndex=1, TotalRunCount=0, LoadTestContext={}, RunCount=2,
{ThreadIndex=0, TotalRunCount=2, LoadTestContext={}, RunCount=3,
{ThreadIndex=1, TotalRunCount=2, LoadTestContext={}, RunCount=4,

I would expect: 

1, 1, 1
1, 2, 2
0, 3, 1
1, 4, 3

What am I missing?

The one and only Teststep is a grooy Script with this single line: 

log.warn context

No RepliesBe the first to reply