robotframework-sapguilibrary icon indicating copy to clipboard operation
robotframework-sapguilibrary copied to clipboard

Multi Threading with SapGuiLibray

Open H1bertto opened this issue 5 years ago • 0 comments

Hi all,

I forked this repo, and add threading in the connect session because when I tried to use multithreading returned this pythoncom error:

'Coinitialize has not been called'

Then before run: rot = pythoncom.GetRunningObjectTable()

I inserted: if threading.currentThread().getName() != 'MainThread': pythoncom.CoInitialize()

And everything worked perfectly, without affecting any other part of the library!

See the diff here: https://github.com/H1bertto/robotframework-sapguilibrary/commit/3e75680e15a590f8cb15c5e327ace2d9f8f368f5

H1bertto avatar Apr 10 '19 14:04 H1bertto