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.

Empty logs

AssamirAssamir Members
edited November -1 in Sahi - Open Source
I try to run sahi with ant I got after the test empty logs (only orders and header there but no steps).
I run it on Ubuntu 10.

Run log
/var/www/sahi/test.xml

runfftests:

startsahi:
[sahi]
[sahi] suiteName = /var/www/sahi/userdata/scripts/stock/300/stock.suite
[sahi] browser = /usr/lib/firefox-3.6.3/firefox
[sahi] base = localhost/stock_c
[sahi] sahiHost = localhost
[sahi] port = 9999
[sahi] threads = 1
[sahi] browserOption = -profile /var/www/sahi/userdata/browser/ff/profiles/sahi$threadNo -no-remote
[sahi] browserProcessName = firefox
[sahi] Added shutdown hook.
[sahi] http://localhost:9999/_s_/dyn/Suite_start?suite=/var/www/sahi/userdata/scripts/stock/300/stock.suite&base=localhost/stock_c&browser=/usr/lib/firefox-3.6.3/firefox&threads=1&browserProcessName=firefox&sahisid=sahi_e8c7773d0398b04d290a9760e6dd0471beed&html=&browserOption=-profile+/var/www/sahi/userdata/browser/ff/profiles/sahi$threadNo+-no-remote
[sahi] STATUS:SUCCESS

stopsahi:

failsahi:

BUILD SUCCESSFUL
Total time: 17 seconds
Shutting down ...
Connection refused

My XML file
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="bids" default="runfftests">
<property environment="env"/>
<property name="sahi.home" value="/var/www/sahi"/>
<property name="user.data" value="/var/www/sahi/userdata"/>
<property name="urlbase" value="localhost/stock_c"/>
<taskdef name="sahi" classname="net.sf.sahi.ant.RunSahiTask" classpath="${sahi.home}/lib/ant-sahi.jar"/>

<target name="runfftests">
<antcall target="startsahi"/>
<sleep seconds="4"/>

<sahi suite="${user.data}/scripts/stock/300/stock.suite"
browser="/usr/lib/firefox-3.6.3/firefox"
baseurl="${urlbase}"
sahihost="localhost"
sahiport="9999"
failureproperty="sahi.failed"
haltonfailure="false"
browseroption="-profile ${user.data}/browser/ff/profiles/sahi$threadNo -no-remote"
browserProcessName="firefox"
threads="1"
/>
<sleep seconds="4"/>

<antcall target="stopsahi"/>
<sleep seconds="4"/>

<antcall target="failsahi"/>
</target>

<target name="failsahi" if="sahi.failed">
<fail message="Sahi tests failed!"/>
</target>

<target name="sahireport" description="show report">
<exec command="/usr/lib/firefox-3.6.3/firefox ${user.data}/logs/playback/"/>
</target>

<target name="startsahi" description="start sahi proxy">
<java classname="net.sf.sahi.Proxy" fork="true" spawn="true" dir="${sahi.home}">
<!--<env key="MOZ_NO_REMOTE" value="1"/>-->
<classpath location="${sahi.home}/lib/sahi.jar">
<fileset dir="${sahi.home}/extlib" includes="**/*.jar"/>
</classpath>
<arg value="${sahi.home}" id="basePath"/>
<arg value="${user.data}" id="userdataPath"/>
</java>
</target>

<target name="stopsahi" description="stop sahi server">
<sahi stop="true" sahihost="localhost" sahiport="9999"/>
</target>
</project>

Comments

  • up
  • narayannarayan Administrators
    Assamir,

    Are you still facing this problem?

    Regards,
    Narayan
  • Yes, I will try this in 3-4 days on Ubuntu 9.10 but I don't think it will help.
  • narayannarayan Administrators
    When you have the time drop an email to support@sahi.co.in and we could try trouble shooting this. We would need your zipped up log files and any output on the shell where start_sahi.sh is running from.
Sign In or Register to comment.