test-fullautomation / robotframework

Generic automation framework for acceptance testing and RPA
http://robotframework.org
Apache License 2.0
1 stars 0 forks source link

Thread log clarification wanted #96

Open HolQue opened 2 months ago

HolQue commented 2 months ago

Robot code:

log    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX    console=yes
THREAD    THREAD_A     False
    log    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA    console=yes
END
THREAD    THREAD_B     False
    log    BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB    console=yes
END
THREAD    THREAD_C     False
    log    CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC    console=yes
END
log    ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ    console=yes

Outcome:

OK so far.

Out of the XML files a log file in HTML format is generated. But the HTML log file only contains 'X' line and 'Z' line. W.r.t. 'A' line, 'B' line and 'C' line only the start and the end of a thread is logged, but not what happens inside the thread.

Here I have doubts. Is this a bug or concept? For me it makes no sense to write content to additional XML files, if the content of these XML files is not converted to separate HTML log files also (or merged into the main HTML log file; or the main HTML file should at least contain a link to the thread HTML log files).

The debug log file hat contains all information, must be activated in command line explicitly. If someone uses this possibility, he will most probably not be interested in the HTML log files. But if someone goes the usual way, he will take a look at the HTML log file (and not at the XML files). And he will not see there what the threads have done. This is not nice.

In my opinion it is necessary to give some guidance about that in the documentation. Therefore I would like to know: How shall threads be logged in HTML log files?

test-fullautomation commented 2 months ago

Hi @HolQue , from my point of view A,B,C-Line have to be logged in HTML-report, too. Thank you, Thomas

test-fullautomation commented 2 months ago

Hi @milanac030988 , the content of XML file per thread need to be available as HTML file per thread, too. Somehow post processing must take care of this. Would be also nice, if the HTML-Log of the mainthread has a link to the Thread-HTML-Log file as part of the log-entry for the fork. It would be then easier to find the corresponding Thread-HTML-Log files. Thank you, Thomas