Service Virtualization

 View Only
  • 1.  Operation from Request XML is not getting captured properly during Load Test

    Posted Aug 29, 2019 06:25 AM
    Hi ,

    We have configured our virtual service to capture the operation from the request xml(HTTP Protocol) and save those details in Database. 

    OrderResponse-v8 is the operation which VS should capture and save in our db but during load test for few requests we could see operation getting captured as GET /Virtualize/ZSMART/Volume/CordysZMValue instead of OrderResponse-v8.

    When we are triggering individual requests its working as expected but only with load and that to for few requests we are facing this issue. Thers is no change in request XML.


    Sample XML : 

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header>
          <oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <oas:UsernameToken>
                <oas:Username>PTUser</oas:Username>
                <oas:Password>PTPass</oas:Password>
             </oas:UsernameToken>
                      </oas:Security>
                        </tns:Product>
                </tns:OrderLine>
             </tns:CustomerOrder>
          </tns:OrderResponse-v8>
       </soapenv:Body>
    </soapenv:Envelope>


    Endpoint Url :

    https://localhost:8321/Virtualize/ZSMART/Volume/CordysZMValue





  • 2.  RE: Operation from Request XML is not getting captured properly during Load Test

    Posted Aug 29, 2019 10:18 AM

    Hi,

     

    The virtual service is receiving a GET, this HTTP request can never contain a SOAP-envelope as payload, those only come inside POST requests.

     

    So, it seems your system under test is actually sending GET requests and the virtual service correctly cannot process these. I think this points more towards an issue with your SUT instead of an issue with the virtual service?

     

    Hope this helps!

     

    Cheers,

    Danny

     

    ::DISCLAIMER::
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------





  • 3.  RE: Operation from Request XML is not getting captured properly during Load Test

    Posted Aug 29, 2019 10:50 AM
    Hi Danny,

    Thanks for your Reply.

    This issue we are facing only for few requests during the Load Test, same application is sending the requests to Lisa through out the load test. And with the same requests(which we faced issue) when we are executing through ITR, we are not facing any issue.

    Best,
    Kiran.


  • 4.  RE: Operation from Request XML is not getting captured properly during Load Test
    Best Answer

    Posted Aug 29, 2019 11:08 AM

    Hi Kiran,

     

    Yes, I understand.

     

    So, your System Under Test during load test is always, every time,  sending a POST-request and the virtual service converts this to a GET in some cases. If that is indeed the case that will be hard to proof. In my view, the only thing you can do is to take a network trace on your system which is running the VSE during load testing suing tcpdump or wireshark or... Restrict the network trace only to traffic on the port(s) of the virtual service. You can then search the network trace to validate that no GET request was sent.

     

    PS. those GET requests could be queries for the WSDL? Those would result in a GET <someUrl> operation, but the request inside the VSE would also have an argument called "wsdl" (no value). If that would be the case you can add this to your vsi such that those requests are also correctly answered.

     

    Cheers,

    Danny

     

    ::DISCLAIMER::
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------