Home > database >  RobotFrameWork: Is there a way of checking the report.html although the run paused?
RobotFrameWork: Is there a way of checking the report.html although the run paused?

Time:12-04

Situation: VisualStudioCode (Browser library) runs a couple of .robot files (manually started) Then it pauses because of an error...

At that point the process breaks and there is no final report.html

If you stop the run it doesn't generate an report.html that's not what you want. You actually want the results until that point. (or even better described: you still want the links output.xml, log.html and report.html)

CodePudding user response:

you should be able to generate lag.htm and report.html using the rebot command. however you need output.xml for this. output.xml is created when you run the tests. when you break you will probobaly not have all the resources you need. I would suggest to assign test timeout to the test that causes the pause. When the timeout is reached the test will be stoped automaticaly and you should have all reports. You can also set it globaly for all tests eg.:

*** Settings ***
Test Timeout       2 minutes
  • Related