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.

Running Scripts on Remote machine

sumeetsumeet Members
edited July 2009 in Sahi - Open Source
Is there a way we can have the Sahi running on one machine and scripts running on some remote machine pointing the proxy to machine where sahi running. And if so can we have multiple suites running on multiple remote machines with 5 threads of IE on each machine.

Comments

  • narayannarayan Administrators
    Sumeet,

    Currently, when a suite runs, the browser instances are opened on the machine where the proxy is. So what you can do currently is, have multiple Sahi proxies on different machines, each designated to run a different suite of tests.

    SahiProxyMachine1 : suite1
    SahiProxyMachine2 : suite2
    SahiProxyMachine3 : suite3

    Then invoke them from your build environment using the sahi target or testrunner batch file.
    You will need to invoke that target 3 times one for each SahiProxyMachine and each target should have the SahiHost and SahiPort configured to point to one of the SahiProxyMachines
        <target name="runietests1">
            <antcall target="proxyon"/>
            <sahi suite="../scripts/demo/demo.suite"
                  browser="C:\\Program Files\\Internet Explorer\\iexplore.exe"
                  baseurl="http://narayan:10000/demo/"
                  sahihost="SahiProxyMachine1"
                  sahiport="9999"
                  failureproperty="sahi.failed"
                  haltonfailure="false"
              browserProcessName="iexplore.exe"
                  threads="3"
                    >
                <report type="html"/>
                <report type="junit" logdir="${basedir}/temp/junit"/>
            </sahi>
            <antcall target="proxyoff"/>
            <antcall target="failsahi"/>
        </target>
    

    Have 2 more of these targets runietests2 pointing to SahiProxyMachine2 and runietests3 pointing to SahiProxyMachine3. Run them in parallel via ant, and then write some script or program to consolidate the logs into one place.

    Email me if you need assistance on this.

    Regards,
    Narayan
Sign In or Register to comment.