Closed GoogleCodeExporter closed 9 years ago
I'm currently on holiday and don't have too much time to investigate this.
After a
very quick look I can anyway tell at least three big reasons why the attached
patch
won't be included in Robot Framework any time soon.
1) The GUI uses TKInter which is not available on Jython.
2) No tests are included.
3) No good use case why debugger would be needed is given.
1&2 are just technical issues and they can, of course, be done if there's a big
enough need for this functionality. Most important thing is, however,
discussing is
such a debugger needed in the first place, and can some existing functionality
(e.g.
debugfile or listeners) be used instead.
Original comment by lau...@gmail.com
on 7 Jul 2008 at 8:21
yes. the debugfile and trace information can used in most of case. As i know,
only
the IPS team have expectation about this feature. they wish the testcase can be
paused, and check the external device status, when they debug a failed
testcase.
Original comment by Deo...@gmail.com
on 8 Jul 2008 at 1:17
add testcase and testsuit hooks in the attachement.
I think the RobteIDE should integrate a debug funcation. the debugfile and trace
information can't instead of this. of course, may haver other better solution.
Original comment by Deo...@gmail.com
on 8 Jul 2008 at 1:27
Attachments:
Reply to comment 2:
If the need is to pause test execution to investigate the status of the SUT,
there
probably are easier approaches than implementing a separate debugger GUI. Two
possibilities that come to my mind are:
1) Use the listener interface so that the end_test method blocks until user
action if
the test case status is FAIL.
2) Use a suitable keyword in test teardown to block the execution. It is
possible to
use e.g. '${TEST_STATUS}' variable or 'Run Keyword If Test Failed' keyword.
Is there some reason these approaches would not work?
Reply to comment 3:
At least in the near future Robot IDE will be used only for generating test
data.
Using it for also executing tests (which is a precondition for integrating it
with
debugging) is quite complicated because it needed to a) support both Python and
Jython, b) support all same command line options and environment variables that
can
be used currently, and c) probably also allow using Rebot somehow.
Original comment by lau...@gmail.com
on 8 Jul 2008 at 10:12
I really think using listener interface is the best approach for implementing
this
kind of tool. In 2.0.2 we added new methods start_keyword and end_keyword
(issue 100)
and made it possible to give arguments to listeners (issue 103), and these
enhancements ought to make it even easier to create a debugger. If the current
listener methods don't provide enough information, that can be fixed in issue
88.
For more information about listeners see:
http://robotframework.googlecode.com/svn/trunk/doc/userguide/RobotFrameworkUserG
uide.html#using-listener-interface
Implementation suggested in this issue originally won't be implemented. Please
open a
new issue for a tool using listeners interfaces for getting the debug
information.
Note also that there's issue 101 that describes a related tool.
Original comment by pekka.klarck
on 18 Nov 2008 at 3:46
Original issue reported on code.google.com by
Deo...@gmail.com
on 7 Jul 2008 at 3:00Attachments: