Forum Discussion

plaidshirt's avatar
plaidshirt
Contributor
7 years ago

SoapUI LoadTest execution fail

I try to generate load test from my testcase in SoapUI. It has a lot of test steps, from which the first 10 covers the login process. LoadTest stops in a Groovy script, which should get parameter values from the previous test step's output. It is working correctly, when it is executed directly, but gives error, when it is executed as a LoadTest:

 

groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.String# . Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class [B] [class [C] [class java.lang.String] groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.String# . Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class [B] [class [C] [class java.lang.String] error at line: 5 

 

  • JHunt's avatar
    JHunt
    Community Hero

    Looks like something is coming back as null and then you're trying to use it on line 5.

     

    it = null
    
    new String( it )

    (It's hard to be more helpful when you haven't really posted anything to look at)

    • plaidshirt's avatar
      plaidshirt
      Contributor

      Sorry. here is the script:

       

       

      def tc1 = testRunner.testCase.getTestStepAt(context.currentStepIndex-1);
      String rawData = new String(tc1.testRequest.response.rawResponseData);
      Reger reger = new Reger(rawData); 
      
      String myvar1 = reger.getNthMatch(/<myregex>/, 0);