lasselindqvist / robotframework-imaplibrary2

IMAP email testing library for Robot Framework
https://pypi.python.org/pypi/robotframework-imaplibrary2
Apache License 2.0
9 stars 19 forks source link

Test scripts cannot be run successfully from jenkins #15

Open fengnex opened 3 years ago

fengnex commented 3 years ago

Whenever we run the following test case from command console, it always tests pass: login test Open Mailbox host=imap.host.cn user=@.cn password=pwd port=993

but always failed whenever we run it from jenkins, and the jenkins can correctly run all other scripts using other RS's libraries including robotframework-seleniumlibrary. The error message is: [FAIL] OSError: [WinError 10038] An operation was attempted on a non socket.

I wonder whether robotframework-imaplibrary2 should be adjusted to fix the above problem.

lasselindqvist commented 3 years ago

Can you post the full stack trace? What operating system do you run locally and on Jenkins?

fengnex commented 3 years ago

It was run on Windows 10, which is a virtual machine, and maybe it can run correctly on normal windows 10.

Also, I tested on another Jenkins running on a Linux server, and this time the result is OK, with no errors that are similar to the one mentioned above.