robots-from-jupyter / robotkernel

Robot Framework IPython kernel for Jupyter Notebook and JupyterLab
BSD 3-Clause "New" or "Revised" License
74 stars 16 forks source link

When using RobotFramework-requestslibrary, sometimes the log will not generate #28

Open databobek opened 4 years ago

databobek commented 4 years ago

i am using robotkernel in jupyterlab Version 1.1.4.

i am also using robotframework-requestslibrary. for some reason - and only with this library - and only in jupyterlab/robotkernel -- I am getting this problem that cell with Test Case will not end.

It gets stuck with image and shows that it's still doing the last keyword in the test -- for example the suite teardown. Actual result is that everything has correctly finished, it's just the log that won't be generated.

when i run the test using nbrobot it ends correctly and with generated log.

Sadly it seems i cannot reliably get a logical conclusion on when this happens. I have a test with given words send in body and it works, when i change them to different words, it gets stuck:

Body: {message: "hello"} --> OK Body: {message: "hi!"} --> stuck

Leaving it out here, maybe someone had a similar problem and found a solution :)

datakurre commented 4 years ago

@ziame If you could author a test case that even randomly fails this way, please, share it here.

datakurre commented 4 years ago

I could not figure out any obvious reason for this behavior, so I am interested for examples and observations.

databobek commented 4 years ago

I am actually looking at some that I cannot share. Once I reproduce in some neutral place, I will be sure to share again

datakurre commented 4 years ago

@ziame Sure. No hurry.

What library was that exactly? https://pypi.org/search/?q=robotframework-requestslibrary gives no results.

I did try https://pypi.org/project/robotframework-requests/ at https://mybinder.org/v2/gh/robots-from-jupyter/robotkernel/master and tried to run some of its tests multiple times without restarting the kernel, but was unable to reproduce this with them https://github.com/bulkan/robotframework-requests/tree/master/tests

If you have not been using Binder before:

databobek commented 4 years ago

By " I can't share " I meant that I mustn't, not that I am not able. :)

I will get back to you as soon as I can. It's very elusive, but when you have the "correct" set, it just stays bad 🍡

I used: https://github.com/bulkan/robotframework-requests