| Share
  1. Explore
    Introduction, screen-shots, features, limitations
  2. Getting started
    Prerequisites, download, install, browser configuration, record, playback, view logs
  3. Sahi Scripting Basics - I
    Statements, variables, functions, conditions and looping, _include
  4. Sahi Scripting Basics - II
  5. Sahi APIs (built-in functions)
    1. Browser Accessor APIs
    2. Browser Action APIs
    3. Miscellaneous APIs
  6. Sahi Scripting - Calling Java
  7. Exception handling using try-catch
  8. Recovering without try-catch using _setRecovery
  9. Data Driven Testing
    _getDB, CSV Files, Excel, Databases
  10. Multithreaded Playback (Parallel execution)
    suites, commandline, ant
  11. Advanced techniques, tips and examples
    1. HTTPS/SSL Sites
    2. Configuring an External proxy
    3. Adding jars to Sahi's classpath
  12. Other language drivers Driving Sahi from Java, Ruby etc.
    1. Java
    2. Ruby

Configuring an External proxy ·

If you normally need a proxy to access websites, you will have to tell Sahi to use that proxy.

You configure the external proxy by editing <sahi_root>/config/sahi.properties and setting these properties:

ext.http.proxy.enable=true 
ext.http.proxy.host=external_proxy_server_hostname_or_ip 
ext.http.proxy.port=external_proxy_server_port

If your proxy needs authorization, you should set these properties too.

ext.http.proxy.auth.enable=true 
ext.http.proxy.auth.name=proxy_authorization_username 
ext.http.proxy.auth.password=proxy_authorization_password

You should do the same with ext.https settings for https sites.

In addition, if you need to bypass the external proxy for some local sites you need to configure that too in sahi.properties like this
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.yourinternaldomain.com
Note that there is only one bypass setting for both http and https.




---