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.

Highlight a text in log file.

aspatel80aspatel80 Members
edited November -1 in Sahi - Open Source
Hi Team,

I execute multiple test cases in my single script file. I need to highlight my passed and failed test cases seperately in the log file or in the popup box by which i can identify them easily without looking too deeply. Can that be possible?? I have seen that _highlight() method highlights only the UI element and not the text in the log file. I have also seen that only passed scenarios are highlighted as green but i need to seperately highlight both passed and failed ones.

Thanks.

Regards,
Ashvin.

Comments

  • Hi Ashvin,

    the passed assertions are highlighted in green and the failed ones are highlighted in red. But still if you need some more highlighting you can use custom log levels in _log("your message", custom level);
    go through the description of the _log() api once. hope this will help you.

    Regards,
    Pankaj.
  • Thanks Pankaj :)
Sign In or Register to comment.