Service Virtualization

Expand all | Collapse all

Send two responses of a single request after a certain time interval

  • 1.  Send two responses of a single request after a certain time interval

    Posted Dec 01, 2017 02:39 AM

    Hi All,

     

    I want to send two responses of a request after a certain time interval. I have one request and there are two responses associated to that request - Response 1 of 2 and Response 2 of 2. The requirement is to send Response 1 of 2 when the request comes to VSE and send Response 2 of 2 10 sec after Response 1 of 2 is sent.

     

    I am using HTTP/S Protocol and RR Pairs are in xml format. Using DevTest Solutions v10.0.0. 

     

    Can anybody please help me in implementing this??



  • 2.  Re: Send two responses of a single request after a certain time interval
    Best Answer

    Posted Dec 01, 2017 01:31 PM

    DevTest does not support the concept of sending unsolicited HTTP responses.

     

    So by sending the second response, do you mean

    - the VSM Responder step sends the 1st response to the consumer,

    - the VSM waits 10 seconds,

    - then the VSM executes an HTTP or REST Step to send a request (which is response 2 of 2) to an endpoint after 10 seconds?

    The below is a non-working example of a VSM that does the above. The key is that the sending of the 2nd response is really an HTTP Request (not response) to an endpoint.

    Does this solve for your requirement?