Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
databobek opened this issue Nov 26, 2019 · 5 comments

Comments

@databobek
Copy link

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
Copy link
Collaborator

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

@datakurre
Copy link
Collaborator

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

@databobek
Copy link
Author

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
Copy link
Collaborator

datakurre commented Nov 26, 2019

@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:

  • https://pypi.org/project/robotkernel/ includes link to launch Jupyter + RobotKernel in the cloud

  • it is possible to install additional libraries into that instance e.g by opening a terminal form JupyterLab launcher and running pip install (and restarting the kernel to have the new libraries available)

@databobek
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants