Service Virtualization

Expand all | Collapse all

How to test the REST with Proxy Set up in Test case  and VSE?

Jump to Best Answer
  • 1.  How to test the REST with Proxy Set up in Test case  and VSE?

    Posted 12-27-2016 05:41 PM

    Hi ,

     

       I need to test the REST API external to our test  environment and also need to configure VSE . In order to test the API we need to connect through our internal proxy and test it. As per the documentation I am testing by setting below properties and I am getting conenction time out error. However if I test with chrome plugin to send the request I am getting valid response. Please help me where we find document which explain HTTPS REST API  with Proxy set up or sampe, code.

     

     

     

    lisa.http.webProxy.host=xxxxx
    lisa.http.webProxy.port=80

    lisa.http.webProxy.ssl.host=XXXX
    lisa.http.webProxy.ssl.port=80



  • 2.  Re: How to test the REST with Proxy Set up in Test case  and VSE?
    Best Answer

    Broadcom Employee
    Posted 01-06-2017 10:14 AM

    This was answered in Support Case # 00637014 

     

    Here is the Summary of the Resolution provided: 
    1. Add proxy info in the local.properties file.

    lisa.http.webProxy.host=xxxxx
    lisa.http.webProxy.port=80

    lisa.http.webProxy.ssl.host=XXXX
    lisa.http.webProxy.ssl.port=80


    2. Configure the VSE  Recorder  to use Passthru style as "Proxy" 
     If you are sending HTTPS request,  configure the VSE Recorder to use SSL to Server and to use SSL to Client - you can select the default keystore info and leave the recorder  listening 

     

    3. . In the Testcase , Configure the "Rest " step to send HTTPS request to the live end point. 
    Add a  companion -  "Configure LISA to Use a Web Proxy" using your local IP Address and the port specified in the VSE Recorder (the listen port). Here VSE recorder is acting as proxy. It will take the real proxy info from local.properties. 
    Unchecked the option "Exclude Simple Hostnames" 

     

    Save the test case, Run the test in  the ITR . 

     

    Thanks

     

    Shiney.