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.

Query on Sahi scripts given under demo folder

One10One10 Members
edited August 2013 in Sahi - Open Source
I am just started on Sahi i am trying to run sahi scripts given for demo fileUpload.sah ..
i dont understand how function callings works in Sahi , in the scripts many functions are defined but i am not seeing any function being called .. i see one function called _runUnitTests(); but not seeing where this function has defined
please guide me how functions works in Sahi

Answers

  • Pratyush_TytoPratyush_Tyto Members
    edited August 2013
    Hi One10,
    In fileUpload.sah,
    setUp() is the function that is executed at the start of every unit test and similary tearDown() is the function that is called after every unit test. As you can see, those have been defined in the sah file itself.
    _runUnitTest is a Sahi API and it is defined in Sahi. It executes all the unit tests (testFileSingle(), testFileSingleWithSetFile2(), testFileSingleWith3rdParam() etc.) one by one.

    These unit tests are defined in the sah file and work as per your requirement.
    If the explanation is unclear or if you have some other doubt, please let me know.

    Regards.
Sign In or Register to comment.