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.

.SQL File

AmarAmar Members
edited December 2009 in Sahi - Open Source
Hi,

Is there any possible way where in I can execute a .sql file with approx 2000 SQL queries.
I tried doing this with _include() and _execute() but in vain.

Any ideas are highly appreciated

thanks in advance

Regards
Amar

Comments

  • narayannarayan Administrators
    Have a look at _getDB to execute sql queries. You have either the option of reading the file, getting each line and executing it using _getDB execute, or you could write a small batch file which runs the sql file and invoke it via _execute.

    Note that _include is used to include Sahi scripts. _execute is used to execute command line (batch/shell) scripts/commands
Sign In or Register to comment.