Service Virtualization

  • 1.  Is there a faster way to pass parameters between steps?

    Posted Mar 09, 2018 04:02 PM

    I added 2 lines of code (testExec.setStateValue("OutputFilename", sOutputFileName and testExec.setStateValue("Response_str", auth_response_str))) to my JSR-223 code that caused the test step to run from 200ms(without the above code) to 2 seconds. I will be using the script in a performance test and am targeting 30-60 tpm. thanks.



  • 2.  Re: Is there a faster way to pass parameters between steps?

    Posted Mar 12, 2018 04:40 AM

    Which version are you on? Which scripting language do you use in your JSR-223 step? If on 8.0 or better and looking for better performance you should try to avoid Beanshell, For best performance you may want to create and test a java step, (not java script step). 



  • 3.  Re: Is there a faster way to pass parameters between steps?

    Posted Mar 12, 2018 10:55 AM

    I am using Devtest 10.1.0.283 and Groovy script.



  • 4.  Re: Is there a faster way to pass parameters between steps?
    Best Answer

    Posted Mar 13, 2018 07:07 PM

    Is there a possibility for you to post the code here or, open a ticket for support to review the behavior?

    An increase of 1,800ms for the insertion of two lines using Groovy is something we need to explore.

    Also, can you check the Step's Think Time and ensure it is set to 0.