Service Virtualization

 View Only
  • 1.  How to virtualize java web services using java agent and broker

    Posted Dec 10, 2019 09:26 AM

    ​Hi ,

    We need to migrate an existing java virtual service involving java agents to a different Devtest server. How do we test the existing java virtual service configured using java agents to get some clarity in sanity testing after deploying an instance on the new server?

    Also, We need an approach to virtualize a java service that requires us to configure java agent. Are the java agents supposed to be configured on the server? Is there any connection required to be created with LISA/Devtest Broker?

    Please guide us for the queries above.



  • 2.  RE: How to virtualize java web services using java agent and broker
    Best Answer

    Posted Dec 17, 2019 04:43 AM
    Hi Prateek,

    For Installation & Configuration:
    Yes, Java Agents are server-side agents and needs to be placed on the application server. Also while starting the java application(generally the application which needs to be virtualized) we need to append additional command line arguments and restart the application. These arguments will automatically start DevTest Java Agents along with the application and they have property like Broker host and port so that the agents will be connected to the specific broker(in your case your new DevTest server registry). You can refer to  "https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/continuous-testing/devtest-solutions/10-5/agents/devtest-java-agent/java-agent-installation.html" for detailed step on how to install java agents and how to get the relevant agent files. Do note that you need to start your Broker component on DevTest server to enable Agent based virtualization. Inter-connectivity between Borker and agent should be allowed.

    For Migrating existing virtual service
    You will be able to use the same asset with minimal changes. You need to download the agent on the application server and start it(by following steps mentioned in the documentation). Once you see the agent connected on your portal then you can open the vsm in your workstation and select the agent name in the LISTEN step. Now, you can save and deploy the service to make it effective. Note, check the status of the agent on portal post deployment, it should be in playback mode  (to respond from virtual service). If you change it to Live, then agent will give requests to the Live system.

    On How to test the virtual service
    You cannot hit the Agent based virtual service directly like any HTTP(s) virtualization but you can use your client application that usually sends a request to actual java application and perform a transaction using it. If the agent will be in Playback mode, it will capture the request and send to Virtual Service and you will be able to see a hit in the Portal. For example, if my website GUI sends request to a middleware which sends the request to Java application and I have virtualized that Java application then I can use the same GUI to trigger a request and this time it will be served by virtual service instead of the actual java application. I will be able to see a hit on SV Portal for the same.

    ------------------------------
    Consultant
    HCL Enterprise Studio
    ------------------------------



  • 3.  RE: How to virtualize java web services using java agent and broker

    Broadcom Employee
    Posted Dec 21, 2019 09:41 AM
    Good answer Robin!​

    ------------------------------
    Head of Product Management: Service Virtualization
    CA Technologies - A Broadcom Company
    ------------------------------