I am running c# Unit Tests through Windows Jenkins and while executing tests console output window shows me same error for all the tests:
Error Message:
Test method Levan_Test threw exception:
System.ComponentModel.Win32Exception: Access is denied
Stack Trace:
at System.Windows.Forms.SendKeys.SendInput(Byte[] oldKeyboardState, Queue previousEvents)
at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
at System.Windows.Forms.SendKeys.SendWait(String keys)
cs:line 134
It looks like there is some problem with permissions or power shell command execution.
Any tips, advise and recommendations will be much appreciated!!
Thanks in advance,
Levan