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.

Is there a way to get the path/url of the current log?

dpdp Members
edited November -1 in Sahi - Open Source
How can I get the name / path / url of the log that is being generated by the current script / suite from a sahi script?
Tagged:

Comments

  • Hi,

    I have the same problem when execute a suite. A dynamic folder is created (i.e. Test__28Sep2010__18_12_13)

    Is there any way to access this folders, please give me a hint

    Thanks.
  • narayannarayan Administrators
    You can pass your own folder name in the ant target. If you are using ant target, you could use

    <report type="html" logdir="C:/sahi/logs/playback/mydir"/>

    If you are using the command line, pass your log dir path instead of "default"

    For example in ff.bat, change
    SET LOG_DIR=default
    to
    SET LOG_DIR=C:/sahi/logs/playback/mydir

    Regards,
    Narayan
  • Now I can get the logs. Thanks for your quick answer.
This discussion has been closed.