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.

_GetDB error

Hello,

I am using the below example:
// config...
var $dbServer = "pc-gimad";
var $dbUser = "user";
var $dbPass = "password";
var $dbName = "IMTS";

// create a handle object...
var $db = _getDB("com.microsoft.sqlserver.jdbc.SQLServerDriver","jdbc:sqlserver://"+$dbServer+";databaseName="+$dbName+"", $dbUser, $dbPass);
// get all rows from a table...
var $rows = $db.select("Select * from SEC_User");

and I am getting this error:
ERROR
Java constructor for "net.sf.sahi.plugin.DBClient" with arguments "string,string,string,string" not found. at Jun 15, 2015 3:18:55 PM

would you please let me know how I can fix this issue?

Best Regards,

Answers

  • I am also having the same problem after upgrading ti OS v5. when trying to connect to a postgres server. It used to work just fine before. The exception occurs when trying to execute a select statement.
  • I am also having the same problem after upgrading ti OS v5. when trying to connect to a postgres server. It used to work just fine before. The exception occurs when trying to execute a select statement.
Sign In or Register to comment.