Service Virtualization

  • 1.  Check Request message in CA devtest 10.2.4

    Posted Jul 19, 2018 09:27 AM

    Hi

     

    We are creating a JSON request by reading the values from an excel file. Now we want to check the request message created in CA Devtest. So is there a way to check the request message created.

     

    Thanks and Regards

    Yugain Sharma



  • 2.  Re: Check Request message in CA devtest 10.2.4
    Best Answer

    Posted Jul 19, 2018 10:25 AM

    import com.itko.lisa.vse.stateful.model.Request;

    String REQ = lisa_vse_request.getBodyText();
    testExec.setStateValue("REQ",REQ);

      The above lines of code will give you Request coming to VSM in a property "REQ".



  • 3.  Re: Check Request message in CA devtest 10.2.4

    Posted Jul 20, 2018 01:30 AM

    You can easily do this by scriptable data protocol once you are in VSM .Add scriptable data protocol at listen step and write above code to extract incoming request . It will be stored in property as stated above in "REQ"



  • 4.  Re: Check Request message in CA devtest 10.2.4

    Broadcom Employee
    Posted Jul 20, 2018 09:25 AM

    Also, the request body is available in a property "lisa.vse.http.current.transaction.body". You can see this property in VS-->Inspection view in Portal or in Properties tab when you run VSM in ITR in the Workstation.