In one of my projects we are using comtypes to remote control GUI applications in order to automize testing. In case the tests are called manually everything seems to work smoothly, but in case jenkins is executing the test cases it might happen, that a strange OSError is thrown by
from comtypes.client import CreateObject
app=createObject("App")
The error reading is:
OSError: [WinError -2147467238] The server processs could not be started, as the configured identity is wrong. Check your username and password.
Does anyone know how it might be possible to fix this issue?
The error is stated here as
CO_E_RUNAS_LOGON_FAILURE
0x8000401A
Please use this answer to check which user is executing the script in your manual and automatized testing and I am quite sure they are different.