Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

sahi controller doesn't come up for https sites

edited June 2009 in Sahi - Open Source
sahi controller doesn't come up for https sites.

sahi controller comes up for http site. For https sites, controller doesn't come up.
when site is navigated from http to https site, there is no error in cmd prompt.

recording is fine for http site; when the site navigates to https, error like "Error: Permission denied to get property Window._sahi" is thrown in sahi controller when 'stop' is clicked.

Can you please guide me to proceed with this?

i have configured ssl proxy as localhost and 8080. and sahi is running in this port.

If i add this host and port in external https site in sahi.properties file, errror like this is thrown in cmd prompt:

Exception in thread "Thread-776" java.lang.OutOfMemoryError: Java heap space
at java.io.ByteArrayOutputStream.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.OutputRecord.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.OutputRecord.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.HandshakeOutStream.<init>(Unknown Source
)
at com.sun.net.ssl.internal.ssl.Handshaker.setEnabledProtocols(Unknown S
ource)
at com.sun.net.ssl.internal.ssl.Handshaker.init(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.initHandshaker(Unknown Sou
rce)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.setUseClientMode(Unknown S
ource)
at net.sf.sahi.ssl.SSLHelper.convertToSecureServerSocket(SSLHelper.java:
180)
at net.sf.sahi.ProxyProcessor.processConnect(ProxyProcessor.java:216)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:121)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
at java.lang.Thread.run(Unknown Source)

Comments

  • narayannarayan Administrators
    Deepashree,

    Without using Sahi, do you need to go through some other proxy to access websites? If yes, check what that proxy setting is and configure the external proxy on Sahi. Other wise do not set the external proxy.

    The java heap error was because you sent Sahi into a loop by pointing Sahi's proxy to itself.

    So remove the external proxy and to get https working, follow the instructions here: http://sahi.co.in/w/httpsssl-sites-do-not-work-properly. Especially, look at the last part "The page comes up but the Sahi Controller does not. Or some parts of the page do not work." on that page.

    Regards,
    Narayan
Sign In or Register to comment.