Service Virtualization

Expand all | Collapse all

I have written a java code in Execute script (JSR-223) step to create a xml.

  • 1.  I have written a java code in Execute script (JSR-223) step to create a xml.

    Posted 01-10-2019 11:48 AM

    I have written a java code in Execute script (JSR-223) step to create a xml.

     

    I have checked the code on IDE and tried printing it through he response through system.out.println(expectedResponse). It is printing the expected xml response.

    Now i have set this xml into a lisa property testExec.setStateValue("Response", expectedResponse);

    and using this property in VSI by {{Response}} but getting response as {{Response}}.

     

    Need help how to set the String expectedResponse  value to Lisa property.



  • 2.  Re: I have written a java code in Execute script (JSR-223) step to create a xml.

    Posted 01-12-2019 11:31 AM

    Hi,

     

    Not enough information to help you out.

     

    Can you paste the content of your script step, so we can check if it is ok?

     

    Cheers,

    Danny