Forum Discussion

camarar's avatar
camarar
Occasional Contributor
9 years ago
Solved

LoadTest

I use soapUI 4.5.1. I have a TestSuite with 4 steps, see below, and a Load Test. Now I will say what each TestStep do in this context. - Properties; I create one variable "number" and set a value ...
  • rupert_anderson's avatar
    rupert_anderson
    9 years ago

    Hi,

     

    It seems you are setting the property against a property TestStep, can you try setting it against the TestCase instead e.g.

     

    //set it with
    testRunner.testCase.setPropertyValue("numberprop", String.
           valueOf(number))
    
    //can get it with
    def number = Integer.parseInt(context.expand('${#TestCase#numberprop}'))
    
    

    ?

    OK, one thread - I think it still creates a clone of the TestCase, has been a while since I tried it. 

     

    Regards,

    Rupert