18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

SAHI PRO : Proxy system are not reverting

PremiumReflexesPremiumReflexes Members
edited January 2014 in Sahi Pro
Hi there,

I work on Windows 7 and my pc needs a proxy in order to have au connection with Websites external or with the server of Windows update etc.

My proxy is configured in the general configuration of Internet of my computer. Not in the browser ! I have configure SAHI in order to use this proxy in the file userdata.properties.

However when I close SAHI PRO, SAHI tells me he restore the system proxy but it does not restore my customized settings. (I use a proxy pac file.)

So I have also testing with the line ext.http.proxy.pac.url= http://autoconfig/proxy.pac in userdata.properties but nothing as change when I quit SAHI.

After each use, I have to configured my proxy manually.

How to fix this ?

Comments

  • PremiumReflexesPremiumReflexes Members
    edited February 2014
    I have read the SAHI Docs on "Sahi Pro - Proxy Issues : Cannot connect to internet when Sahi is not running"


    But I am not in the case that is mentionned here...
    I start sahi. Sahi changes my proxy system. I execute my test/scripts then I quit SAHI properly by closing Browser then SAHI despite that SAHI tells me "Proxy reverting", my system is no longer connect to the internet.

    However, i have execute the tools "proxy_config.exe" before to use SAHI. And after that when I quit SAHI, my proxy settings are restored.

    Is this proxy.properties that allows the restoration of my system settings ?

    If it is the case, I haven't find in the doc information about the tools present in the repertory "tools" of SAHI PRO.

    Please don't hesitate to tell me if I made ​​a mistake and if I misconfigure SAHI or if i understand how the tools work.
  • The file tools/proxy.properties allows you to set the proxy and restore your original system settings.

    To backup your original Windows proxy (will store the config in the proxy.properties's [original] section):
    tools/backup_proxy_config.exe
    

    To enable the proxy (see the [sahi_https] section in proxy.properties):
    tools/proxy_config.exe sahi_https
    

    To revert the proxy to the original value:
    tools/proxy_config.exe original
    
  • Thanks a lot for the explanation !
Sign In or Register to comment.