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.

is _callServer deprecated?

lausserlausser Members
edited April 2009 in Sahi - Open Source
Hi,
i'm trying to use _callServer which is documented in the API, but i get an error message "Cannot find function _callServer".
var $logfile = _callServer("net.sf.sahi.util.Utils.createLogFileName");
_debug('logfile is ' + typeof($logfile));
Gerhard

Comments

  • narayannarayan Administrators
    It is not officially deprecated but yes it will soon be. You no longer need _callServer

    You can now do:
    var $logFile = Packages.net.sf.sahi.util.Utils.createLogFileName("abcd");
    _alert($logFile);
    
    I am using rhino's excellent capabilities to call java code from Sahi Script.
    "Packages." needs to be prefixed to the class's fully qualified name, except for java's core classes (like java.io).
Sign In or Register to comment.