M.M.
M.M.

Reputation: 94

Creating Reports in Robotframework

I have recently started working on a program that should not be changed much and there are problems that it closes properly with Robot Framework. The method that came to my mind now was that I could get the reports before the test end.

So I have this Question:

Upvotes: 0

Views: 2594

Answers (2)

jozefow
jozefow

Reputation: 786

As @Bryan wrote, there is no way to get report.html during robot runtime as it is generated in postrun step.

However, you may use listener to get feedback from robot about execution status. For instance, in RED Robot Editor IDE, it is used to populate Execution View (see screenshot at the bottom): http://nokia.github.io/RED/help/user_guide/launching/ui_elements.html

More about listener API: https://github.com/robotframework/robotframework/blob/master/doc/userguide/src/ExtendingRobotFramework/ListenerInterface.rst

Upvotes: 1

Bryan Oakley
Bryan Oakley

Reputation: 386362

Is there a possibility or keyword in Robotframework that I can use to get reports before the test is done?

No, there is not. Robot creates the reports as an in-memory xml document. It doesn't write the data to disk until the tests are finished. It then runs a post-processing step to convert them to html.

Upvotes: 4

Related Questions