robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
168 stars 13 forks source link

[BUG] Not getting a listener if imported and set to class #237

Closed joseajunior closed 3 months ago

joseajunior commented 3 months ago

Describe the bug If I import a listener class in Python to a different library and set to it using the ROBOT_LIBRARY_LISTENER when I run/debug the code using a RobotCode configuration it doesn't recognize the listener and its functions.

To Reproduce Steps to reproduce the behavior:

  1. Create a listener class with some functions like: start_suite, end_test, etc.;
  2. Create a library class and set the ROBOT_LIBRARY_LISTENER to the listener class you created before;
  3. Import the library class to your test cases;
  4. Run your test from RobotCode configuration.

Desktop (please complete the following information):

d-biehl commented 3 months ago

ok, can't reproduce this behaviour, can you be a little more specific? Maybe with a piece of sample code and a description of what exactly you expect?

When I define such a LibraryListener, it is executed and I can debug it when I press the play button of a test case.

joseajunior commented 3 months ago

Yeah, I wasn't able to reproduce this problem anymore.

Was just to call me a liar.

d-biehl commented 3 months ago

no problem ;-)