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.

The script is not running for verifying mysql database table content

edited November -1 in Sahi - Open Source
Hi,

I have added below connection string in my script file.
var db = _getDB("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/mysql", "root", "public");

After running the sahi.bat, I have opened google web page and opened sahi controller.
1. Now go to Playback tab in sahi controller, select the script file and click on set.

The following message exception observed in sahi controller(command prompt)


java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:52)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProces
sor.java:42)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:218)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:78)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/mozilla/javascript/RhinoException

at net.sf.sahi.command.Player.setScript(Player.java:87)
at net.sf.sahi.command.Player.setScriptFile(Player.java:76)
... 9 more

2. Now click on Play.

The following message displayed under statements in sahi controller.
Please open the Controller again.
(Press CTRL ALT-DblClick on the main window.)

If i repeat the above 1 & 2 steps, the same message getting displayed.


Can you please help me to resolve this issue.

Regards
Ashok

Comments

Sign In or Register to comment.