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.

Write values in file

lepierrotlepierrot Members
edited November -1 in Sahi - Open Source
Hi,

Do you know a way to write some result values of Sahi's scripts in a specific file ? I need to read them with AutoIT then...
Any idea ?

Thanks,

Pierre

Comments

  • Yes I have already tried this...but no log file is created on C hard disk root (c:\) ...
  • Hi,

    Can we have a look at the piece of code where u r writing to the file?

    Regards,
    Pankaj.
  • lepierrotlepierrot Members
    edited July 2008
    Hum this is just at the beginning of my code that I write something with this function ...
    [code]_debugToFile(
  • pankaj.nithpankaj.nith Members
    edited July 2008
    Hi,

    I expect that you must be getting some weired characters in the log file along with the text "DEBUG".
    Try using .sah as the extension for the file. this will resolve the problem. it seems to be due to different encoding used there.
    And use _debugToFile("DEBUG", "C:\\filename.sah") -- use double forwardslash..
    If the problem is different do let us know. :)

    Regards,
    Pankaj.
Sign In or Register to comment.