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.

Reusable Components

SrikanthGSrikanthG Members
edited November -1 in Sahi - Open Source
I am new to Sahi, I found the Tool very interesting.

I would like to know is there any way to associate the external files to the current script, the same way like associating the library files to QTP.

Say, I have written some user defined functions like Login(),Logout(), ReadDataFromExcel() etc.., Do I need to place all the functions in each and every script or is there any way to call the functions written and placed in some external file myUDF.Sah or something else.

can anyone help me to resolve this problem....

Comments

  • Hi,

    You can use the file like this:

    _include("your file with complete or relative path");
    yourMethod();//here you can call your methods defined in the file.

    Write back if you need more details.

    Regards,
    Pankaj
  • Thanks Pankaj.
Sign In or Register to comment.