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.
problem automating scripts
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
I've searched my files and can't find reference to example.com anywhere ...
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
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.
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...