mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
446 stars 107 forks source link

Improving the readability of test results #625

Open Keonik1 opened 1 year ago

Keonik1 commented 1 year ago

@adrianth Now, when calling macro, the call string of this macro in the log is AFTER all the actions that are performed in this macro, which is extremely inconvenient.

Example: Macro open github.com MyTest.yaml:

- description: Open gihub page
  macro: OpenGithub

OpenGithub.yaml:

description: Open gihub main page
actions:
  - description: Open gihub main page
    action: org.getopentest.selenium.NavigateTo
    args:
      url: https://gihub.com
As a result, first the action of Open gihub main page will be in the log, and only then the line with the Macro: Open gihub page. Like this: Actor Action Description Duration Seg. Result
WEB Open gihub main page 500 ms 1 pased
WEB Macro: Open gihub page 510 ms 1 pased

In small macros, this is not terrible, but in large ones that cause other macros, this already creates a huge confusion.

I would like to have the following two entries in the log: Start Macro: <description> Finish Macro: <description> Like this: Actor Action Description Duration Seg. Result
WEB Start Macro: Open gihub page 0 ms 1 pased
WEB Open gihub main page 500 ms 1 pased
WEB Finish Macro: Open gihub page 510 ms 1 pased