robotframework-sapguilibrary
robotframework-sapguilibrary copied to clipboard
Multi Threading with SapGuiLibray
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