18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Error message on Sahi DOS window
Issue:
I keep on getting some error messages on Sahi DOS window (after opening Sahi batch file for Windows). I'm still able to bring up Sahi controller, my testing window and run my scripts. But I'm worried if this error message is causing any harm.
Test environment: Windows XP and IE7
The exact error message is as shown below (in bold italics text).
Please help!!
=========
Sahi properties file = H:\Test Tools\sahi_20091130\sahi\config\sahi.properties
Sahi user properties file = H:\Test Tools\sahi_20091130\sahi\userdata\config\use
rdata.properties
>>>> Sahi started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
roller
Sahi OS properties file = H:\Test Tools\sahi_20091130\sahi\config\os.properties
keytool command may not be correct: Cannot run program "keytool": CreateProcess
error=2, The system cannot find the file specified
I keep on getting some error messages on Sahi DOS window (after opening Sahi batch file for Windows). I'm still able to bring up Sahi controller, my testing window and run my scripts. But I'm worried if this error message is causing any harm.
Test environment: Windows XP and IE7
The exact error message is as shown below (in bold italics text).
Please help!!
=========
Sahi properties file = H:\Test Tools\sahi_20091130\sahi\config\sahi.properties
Sahi user properties file = H:\Test Tools\sahi_20091130\sahi\userdata\config\use
rdata.properties
>>>> Sahi started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
roller
Sahi OS properties file = H:\Test Tools\sahi_20091130\sahi\config\os.properties
keytool command may not be correct: Cannot run program "keytool": CreateProcess
error=2, The system cannot find the file specified
Comments
This error won't bother you while running the sahi tests. Its a feature used for running tests in the HTTPs sites and the diagnostics information is fetched for the info tab on the Sahi controller. In the latest releases, this error message is ignored and its not printed in the console any more. Basically, it is to help debugging whether some dependencies are available on your system.
Actually, Keytool helps in the auto generation of the certificates for the https sites. In case, if you are using any https site, then make sure that the keytool.exe file is located at <java_home>/bin directory if the entries for keytool.path in <sahi-base-directory>/config/sahi.properties has
keytool.path=keytool
or else change this property to point to the keytool's path / copy the keytool.exe file manually in to the bin directory.
No worries and enjoy testing the web applications with Sahi.
Let us know, If you have any other issues.
Thanks,
Venky.
Thanks, the main error has now disappeared after following one of your recommendations (I copied keytool.exe from my Java/bin into Sahi/bin folder). There is another security issue but I'm working with Narayan at the moment and I believe it should be fixed as well.
Last concern: I was curious if this last line on "OS.properties" text file is a normal thing or not. Is it?
Sorry, I can't remember anymore if I have seen this before.
=========
..............
..............
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
roller
Sahi OS properties file = H:\Test Tools\sahi_20091130\sahi\config\os.properties
It is not a problem in sahi. It just shows the path of the os.properties file (It helps for identifying system commands for all the Operating Systems). In latest releases, this message won't be printed in the console. I recommend you to pick the latest version of sahi and use it.
Thanks,
Venky.