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.

Logging not working for test suites

TSheeleyTSheeley Members
edited November -1 in Sahi - Open Source
Suddenly, when I run a test 'suite', there is NO logging of the results. This does NOT happen if I run a SINGLE script. What would affect logging and what can I do to correct this problem?

Linux Ubuntu debian
FireFox 8.0
Sahi 20110719?

Comments

  • Hi

    please post the command you used to start the suite... maybe you unintended set the logDir to a strange location

    Regards
    Wormi
  • sh testrunner.sh WLRegression.suite http://<our_url>/ firefox
  • globalwormingglobalworming Moderators
    edited March 2012
    Well..

    if you didn't changed the testrunner.sh you may look into your userdata.properties file if the logs.dir setting matches the place you are looking for your logs. Did you changed the Sahi Source Code?

    You may try this testrunner:
    #!/bin/bash
    if [ $# -ne 4 ] 
    then
    echo "Usage: testrunner.sh <sah file|suite file> <startURL> <browserType> <logDirPath>"
    echo "File path is relative to userdata/scripts"
    echo "Example:" 
    echo "testrunner.sh demo/demo.suite http://sahi.co.in/demo/ <browserType> $HOME/data/"
    echo "testrunner.sh demo/sahi_demo.sah http://sahi.co.in/demo/ <browserType> $HOME/data/"
    else
    
    export SAHI_HOME=../..
    export USERDATA_DIR=../
    export SCRIPTS_PATH=scripts/$1
    export BROWSER=$3
    export START_URL=$2
    export THREADS=5
    export SINGLE_SESSION=false
    export LOG_DIR="-htmlLogs true -htmlLogDir $4"
    java -cp $SAHI_HOME/lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test $SCRIPTS_PATH -browserType "$BROWSER" -baseURL $START_URL $LOG_DIR -host localhost -port 9999 -threads $THREADS -useSingleSession $SINGLE_SESSION
    fi
    
    and provide a global path to a folder as additional argument.
    Are logs created in this folder?
Sign In or Register to comment.