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.

problem automating scripts

johnjohn Members
edited November -1 in Sahi - Open Source
I've setup sahi to run via ant using IE.

everything works ok until a new IE is spawned. The URL that is used looks messed up.

my suite is very simple
login.sah default.asp
and the properties file is correct with the following values:
sahidir=C:\\apps\\sahi
ie-exe=C:\\Program Files\\Internet Explorer\\iexplore.exe
ff-exe=C:\\Program Files\\Mozilla Firefox\\firefox.exe
suite=F:\\scratch\\cab\\test_scripts\\cab.suite
browser=ie
baseurl=http://87.106.176.89/
junit-log-dir=logs/
server-ping-url=http://87.106.176.89/
but the URL from the spawned IE is
http://sahi.example.com/_s_/dyn/Player_auto?file=F%3A%5Cscratch%5Ccab%5Ctest_scripts%5Clogin.sah&startUrl=http%3A%2F%2F87.106.176.89%2Fdefault.asp&sahisid=sahi_1201552419928sahix1839x
Any ideas?

I've searched my files and can't find reference to example.com anywhere ...

Comments

  • narayannarayan Administrators
    Don't worry about example.com. It is a dummy url which sahi's proxy understands.
    When the browser opens, check whether the proxy is set on it. If it is not set, manually set it, and try again.

    To switch proxy from the command line, use

    tools/toggle_IE_proxy.exe enable
    and
    tools/toggle_IE_proxy.exe disable

    If the thing still does not work, let me know what you see on the sahi proxy's command prompt window.

    Also let me know whether you are using the sample_commandline.bat file or running from ant, or running as a url.
  • johnjohn Members
    Thanks ! that fixed it.

    One further question though - how do I switch logging on? I'm running through ant and I can't see how to set the log level. I'd like to be able to kick off a test run overnight and check the results in the morning...
  • narayannarayan Administrators
    You should automatically see it in the logs folder. Let me know if you don't.
  • I can see files generated in the logs folder but there doesn't appear to be an overall status file. Do I have to check each xml file individually? For a suite with a lot of tests this could be a problem.
  • its ok - I watched the flash demo and understand how to get the report! :)
Sign In or Register to comment.