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.

Sahi installation issue

gkajithgkajith Members
edited November -1 in Sahi - Open Source
while trying to run sahi.bat the following error message is displayed."keytool command may not be correct:cannot run program "keytool": Create Process error=2,The system cannot find the file specified".

Again i had a doubt Whether shai can be used to test flex application? pls reply

Comments

  • Can you specify,
    - Which OS are you using?
    - Open the command prompt and run "keytool" cmd. Tell us what the output is?
    - What are the details displayed for "Is Keytool available" field on the info tab of the Sahi Controller?

    This error won't bother you while running the sahi tests. Its a feature used for running tests in the HTTPs sites.

    As of now, Sahi does not support flex and soon it will be supporting flex. Could you email us, if you needed this feature urgently?
  • Hi venky,
    We are using windows XP.

    We have a proxy server for filtering.
    I had run sahi.bat in command prompt .See the result

    C:\sahi_20091130\sahi\bin>sahi.bat
    SAHI_HOME: ..
    SAHI_USERDATA_DIR: ..\userdata
    SAHI_EXT_CLASS_PATH:
    Sahi properties file = C:\sahi_20091130\sahi\config\sahi.properties
    Sahi user properties file = C:\sahi_20091130\sahi\userdata\config\userdata.prope
    rties
    >>>> 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 = C:\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
  • narayannarayan Administrators
    Ajith,

    Don't bother about this error, unless you need to use SSL.
    You could help us debug this issue by running the keytool command from C:\sahi_20091130\sahi\bin.

    C:\sahi_20091130\sahi\bin> keytool

    If this gives you a valid output, then there is a bug in Sahi.
    If it says keytool not found AND you need to access SSL websites, then you need to add java/bin to the path.

    Let us know what you find.

    Thanks and regards,
    Narayan
Sign In or Register to comment.