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.

Multiple browsers opening when running a suite in FF

michael01612michael01612 Members
edited November -1 in Sahi - Open Source
When I run a suite, the tests run in parallel in multiple browsers. I would like to limit this to 1 browser, but setting the threads in the Ant target does not work.

Using FF as a browser .... (is this relevant?)

Thoughts?

--Mike

Comments

  • Hi Mike,

    This target runs my browser tests, one browser at a time.

    <target name="runbrowsertests">
            
            <sahi suite="../userdata/scripts/demo/demo.suite" 
                browserType="firefox" 
                baseurl="http://sahi.co.in/demo/" 
                sahihost="localhost" 
                sahiport="9999" 
                failureproperty="sahi.failed" 
                haltonfailure="false" 
                threads="1"
                >
                <report type="html" />
            </sahi>
        </target>
    

    You can try this. If it still doesn't work, edit browser_types.xml (Click "configure" link on dashboard). Change <capacity> to 1 for the browser that you want to run the tests with. Restart Sahi.

    Regards,
    dkulkarni
Sign In or Register to comment.