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.

Batch mode with IE8 - Sahi does not close browser window.

voleynikvoleynik Members
edited November -1 in Sahi - Open Source
We do all our Web UI tests in Sahi, you can't beat it, but in addition we try to use it for load and performance tests instead of JMeter.

Jmeter is meant for load/performance testing but our app is very complicated - dealing with multiple redirects, javascript calculated parameter values, certificates and security tokens. To capture parameters from HTTP response and feeding them to HTTP request is a total nightmare. You have to create Regular Expressions, but in some cases it is not even possible.

Sahi totally eliminates this parm catching problem because it makes the browser to do that natively.
So we are already using it in batch mode for load and performance testing.
It works fine with FF2, FF3, IE7. However, with IE8 it does not close the browser window after XXX.sah script is done.

I was wondering if any oneelse experienced this problem and found how to deal with it.
Regards,
Vladimir.
Verient, Inc.
San Jose, Californai.
Tagged:

Comments

  • narayannarayan Administrators
    Vladimir,

    For IE8, you need to pass extra browserOptions. If you are using a batch file, add "-nomerge" as the last parameter to TestRunner.

    Eg.
    java -cp ..\lib\ant-sahi.jar net.sf.sahi.test.TestRunner D:/sahi_v2/scripts/demo/demo.suite 
       "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://narayan:10000/demo/ 
        default localhost 9999 3 iexplore.exe "-nomerge"
    

    If you are using ant, add browseroption="-nomerge" in the Sahi target
    <sahi suite="../scripts/demo/demo.suite"
          browser="C:\\Program Files\\Internet Explorer\\iexplore.exe"
          baseurl="http://narayan:10000/demo/"
          sahihost="localhost"
          sahiport="9999"
          failureproperty="sahi.failed"
          haltonfailure="false"
          browseroption="-nomerge"
          browserProcessName="iexplore.exe"
          threads="3"
            >
    </sahi>
    

    Let me know if it works for you.

    Regards,
    Narayan
  • khurramkhurram Members
    edited May 2011
    Hi Narayan,

    I am facing the problem regarding to IE8. First I ran the sahi web and sahi server and then I used your above sahi ant script.

    After running the ant script, IE8 opens but diplay the message "Internet Explorer cannot display the webpage" even though on sahi server, I can see its trying to the run the script on "c:\Sahi\userdata\scripts\demo\clicksTest.sah" .

    This is the sahi demo example and I tried to run my recorded suite for my website , in all cases my IE8 does not allow to run the scripts.

    Please give me any idea that how to I fix that issue.

    Regards,
    Khurram
Sign In or Register to comment.