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.

_include not working

ShibyShiby Members
edited November -1 in Sahi - Open Source
Hi,

Can someone pleae tell me why _include doesnt work for me ?

These are the script files :

log.sah
function printThroughJava(s){
Packages.java.lang.System.out.println("Through Java: " + s);
}

includeTest.sah
_include(log.sah);
printThroughJava();

But nothing happens when I run includeTest.sah

Also batch run via _include script is not also working for me.

Thanks in advance.

Comments

  • dpdp Members
    Hi Shiby,

    Enclose the file name in double quotes. For example _include("log.sah");

    Cheers
    dp
Sign In or Register to comment.