extentreports-csharp icon indicating copy to clipboard operation
extentreports-csharp copied to clipboard

Feature request: Having collapsible nodes inline with log

Open arnonax opened this issue 3 years ago • 1 comments

Today, when I create a node it always appears at the bottom of the log. I would like it to appear inline with the other log entries, according to it's creation timestamp. This will allow me to create nested log entries. For example, I want my log to look like something this:

Navigate to landing page
>>>Login
    Click login link
    Enter user name "dummyUser"
    Enter password "dummyPassword"
    Click login button
<<<Login
>>>Add product to cart
    >>> Search product
        Navigate to search page
        Type "dummyProduct" in the search box
        Click search button
    <<< Search product
    Choose product "dummy product"
    Click "Add to cart"
<<<Add product to cart
>>>Checkout
    ...
    ...
<<<Checkout

Note: I looked at the code and I have an idea how to implement it. I still didn't try to implement it, but I'm willing to try and open a PR if you would accept it. @ZimM-LostPolygon @anshooarora

arnonax avatar Jul 17 '22 07:07 arnonax

Forgot to mention: I guess that the old behavior should be preserved for backwards compatibility, so a new optional flag argument, inline, should be added to CreateNode to specify that the new behavior is desired.

arnonax avatar Jul 17 '22 07:07 arnonax