If you are running Jenkins as a service, it can't do stuff that interacts with the desktop, e.g., Windows forms applications. You would want to have a build agent running on the desktop using JNLP as a normal user that runs these tests.
On Fri, Jul 7, 2017 at 10:40 AM <[email protected]> wrote: > Dear All, > > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/674a247d-2bad-4444-bf95-afcbf6da4b77%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/674a247d-2bad-4444-bf95-afcbf6da4b77%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdFJxE4Au_YvBjQq0Qj9W_O97xi54iS9%2BN8gvsQuHEO%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
