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.

Questions on Suites

jason.hamerjason.hamer Members
edited November -1 in Sahi - Open Source
When creating a suite do I have to specifically call each suite script?

Example I have over 200 script files in one folder and the folder keeps getting bigger. The folder represents my suite. Is there anyway I can call the folder and it will run all scripts in the folder vs having to list each script file in a .suite file??

Also I have emailed about Sahi Pro but get no reply from the email.

Comments

  • narayannarayan Administrators
    Hi Jason,

    Yes, you can specify the directory instead of a suite file and Sahi will pick all the .sah files and execute them. Note that if you have library files which you do not want Sahi to run as stand-alone scripts, rename them to have a .inc extension instead of .sah.

    Sahi will also pick files inside sub-directories.

    Could you please email us your Sahi Pro query again? We do not seem to have received it. Please email to info@sahi.co.in or directly to narayan@sahi.co.in

    Regards,
    Narayan
  • Could you give me an example of what that would look like??

    I sent my email on sahi pro
  • how it's possible can u explain in detail
  • narayannarayan Administrators
    Hi Jason,

    Suppose all your scripts are in D:/myscripts, you could do:
    testrunner.bat D:/myscripts http://sahi.co.in/demo/ firefox
    

    or when using an ant target
        <target name="runfftests">
            <sahi suite="D:/myscripts"
                  browserType="firefox"
                  baseurl="http://${urlbase}/demo/"
                  sahihost="localhost"
                  sahiport="9999"
                  failureproperty="sahi.failed"
                  haltonfailure="false"
                  threads="6">
                <report type="html"/>
            </sahi>
            <antcall target="failsahi"/>
        </target>
    

    Regards,
    Narayan
  • This solves my issue!!


    Thanks
This discussion has been closed.