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.

How execute sahi script (for eample: test.sah) throuch java ?

rishabh@jrishabh@j Members
edited November -1 in Sahi - Open Source
I wish to implement the following through java:

1. start the sahi environment (start_dashboard.bat)
2.Create a sahi script file through java (for example : test.sah)
3. Execute test.sah
4.Kill the environment.

Comments

  • globalwormingglobalworming Moderators
    Why would you want to do that?
  • i have my test case written in sahi script (say test.sah). I wish to invoke the sahi script pro-grammatically through my test frame work. So i wish to start the sahi environment, execute the script and kill the environment. I understand i have to make user of java commands to execute the batch file and jars....
  • globalwormingglobalworming Moderators
    Well.. please don't ask me ho to execute batch files through java, google may give better results.
    Alternatively, you can download the Sahi source code and write some "start-test-kill" class which starts the Proxy.class, executes the RhinoScriptRunner.class and then stops the proxy.
Sign In or Register to comment.