Service Virtualization

  • 1.  How to check request and response is coming through proxy server in CA Lisa test case, console or in SOAP UI?

    Posted Apr 05, 2017 10:47 AM

    Hello All,

     

    Can any one help me in this question? I am using proxy server in my workstation in local.properties file so that what ever service I am hitting from my workstation will pass through proxy server. How we can test/check that?

     

    thanks..

     

    Shivam Garg



  • 2.  Re: How to check request and response is coming through proxy server in CA Lisa test case, console or in SOAP UI?

    Posted Apr 05, 2017 12:26 PM

    You probably need some type of packet sniffer so you can trace the flow into / out of the proxy.

    Since you indicate the proxy server is running on your local machine, and I assume your service or test case is as well, some tools may not be able to capture the loopback packets.  I have never tried to sniff everything when it is completely running on the localhost.  jnetpcap (Google for download) might work. 



  • 3.  Re: How to check request and response is coming through proxy server in CA Lisa test case, console or in SOAP UI?

    Posted Apr 06, 2017 03:22 AM

    Hello Joel,

     

    We are using one registry , which is not on my machine locally but what we want , when we are going to run test case from our workstation , it should hit the service in registry server via Proxy?

     

    Some one from my team suggested below but that guy is not any more in my team now.

     

    1. Navigate to lisa installation directory (c:/program files(x86)/lisa_7.5.2)
    2. Rename _local.properties to local.properties
    3. Add below properties in local.propertieslisa.http.webProxy.nonProxyHosts=127.0.0.1 lisa.http.webProxy.host.account=your files Id which has access
    4. lisa.http.webProxy.host.credential=password
    5. lisa.http.webProxy.host.domain= domain
    6. lisa.http.webProxy.port=8080
    7. lisa.http.webProxy.host=proxy array host
    8. Open Lisa workstation, if already open than close it and then open it again.
    9. Now whatever request you send to virtual service where the Virtual service you created and is running will go via the proxy.

     

    Same steps we are following, and getting response. But we are shocked as we don't have access to proxy server, it should fail or give some authentication error.

     

    Any idea or highlight on this?

     

    thanks..

    Shivam Garg



  • 4.  Re: How to check request and response is coming through proxy server in CA Lisa test case, console or in SOAP UI?
    Best Answer

    Posted Apr 06, 2017 07:43 AM

    My interpretation of the implementation you identify above is that local host is bypassing the proxy not using it.

     

    lisa.http.webProxy.host and port are used to identify the FQDN of the HTTP proxy server you want to use.  

    DevTest provides the option of identifying hosts to exclude from going through the proxy server. For HTTP proxy, you exclude a host by identifying that host in lisa.http.webProxy.nonProxyHosts

     

    Here is an example:

    lisa.http.webProxy.host=192.168.24.242

    lisa.http.webProxy.port=49185

    lisa.http.webProxy.nonProxyHosts=127.0.0.1|192.168.32.*

    In the above, the first two lines specify that the URL for the HTTP proxy server is http://192.168.24.242:49185.

    The third line specifies the hosts that will not go through this proxy. They include the loopback address for the localhost (127.0.0.1) and IP addresses in the range 192.168.32.0 through 192.168.32.255. 

    I do not believe this configuration has changed since 7.5.2, so this link should help clarify:

    Using an HTTP/S Proxy Server - DevTest Workstation - DevTest Solutions - 10.0 - CA Technologies Documentation