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 script is not running from Command line

rupeshrupesh Members
edited July 2014 in Sahi Pro
Hi

I am running my Sahi script from command line but it fails within minute. It first launch launched browser then enter URL and then stopped. It didn't go to script. I am using following script in command line

$.../bin testrunner testname.sah https://www.google.com/ firefox

Answers

  • https... check your SSL Manager for missing certificates and try again

    and please post the error massages from your console/from the logs

    regards
    wormi
  • HSAGHSAG Members
    Globalworming - can you clarify what missing certificate to look for? I'm facing same issue - I have all certificates available ....

    Rupesh - were you able to get fix to your probelm?
  • HSAGHSAG Members
    Thanks for your response. I double checked and all my SSL information is correct. From testrunner using command line somehow it doesn't go inside the script. It opens the web page but doesn't execute the script.. Any help would be great..

    Btw - I script I created is simply recorded using controller and works well when I play using controller
  • HSAGHSAG Members
    Thanks, globalworming...
    This is working fine now. The issue was with the SSL the way i was accepting it..
    I followed below steps for testing gmail and my test url and its working fine now...

    1. click "firefox" in the sahi dashboard

    2. click the link "SSL Manager"

    3. copy each domain marked with a red dot, into a tab, prefixed by "https://", hit enter, accept security risk mumbo jumbo.

    UPDATE 20130320: these are the domains that need to be accepted for gmail:
    sahi.example.com
    mail.google.com
    ssl.google-analytics.com
    accounts.google.com
    sahi.example.com
    accounts.youtube.com
    gmail.com

    4. go back to the default page: http://sahi.example.com/_s_/dyn/Driver_initialized (or close the ff window and reopen it) and open the sahi controller

    5. choose your script and run again.
  • HSAGHSAG Members
    Sahi Rocks...!!
  • HSAGHSAG Members
    please close this post...
    one useful link which helped me..

    http://nickhumphreyit.blogspot.sg/2013/03/sahi-how-to-test-gmail.html
Sign In or Register to comment.