Service Virtualization

  • 1.  Calling a piece of java code inside VSM

    Posted May 25, 2018 08:04 AM

    I need to call a piece of java code in VSM. The input for this code is received from one script(JSR-223) and the output of this code will be an input to another script(JSR-223).

    Please tell me the steps to do the same.

    Also, do you have a sample project implementing this requirement?

     

    Thanks in advance.



  • 2.  Re: Calling a piece of java code inside VSM
    Best Answer

    Broadcom Employee
    Posted May 25, 2018 09:28 AM

    You can customize the VSM with Javascript steps.

     

    Does your VSM has all the JSR-223 steps or are you using sub process? If you open a support ticket we can do a WebEx and look at what you are doing.



  • 3.  Re: Calling a piece of java code inside VSM

    Posted May 25, 2018 04:09 PM

    What kind of Java code are you trying to call? Is it just the standard Java SDK classes? Or is it a custom or third party library? If it's the latter you need to place the jar (library) in DevTest's classpath, which would be DEVTEST_HOME/lib folder.

     

    You can then write your code in your JSR-223 steps



  • 4.  Re: Calling a piece of java code inside VSM

    Posted May 29, 2018 03:09 PM

    Hello Vinay,

     

    Did William's or Prema's responses help you?

     

    If yes, please mark it as the correct response.

     

    Heloisa