Another issue appeared: FileUploadDialog cannot be handled if test executed in non-interactive environment.
We have console app test scenario, which pop-up FileUpload dialog. During debug and interactive checks this dialog was handled successfully by this code:
But when we deployed it on our monitoring server (win2003EE SP2 \ IE8) - this code no longer works. Console app periodicaly started by special monitoring software - its run in interactive but always LOCKED session (Its like you scheduled program to run with custom app and locked your PC). After few runs I logged in and saw all instances of IE, not closed and with FileUploadDialog popped (and not handled properly).
I tried to figure this bug origin with Sysinternals procmon but was unable to deal with all that calls ( saved dump btw).
Any ideas or help how to track and fix that misbehaviour.
UPDATE: I read anwer on this topic
http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/simulated-clicks-not-running-if-machine-is-in-locked-state.aspx
but i still wonder why then all other my tests run fine, except with FileUploadDialog.
I suspect this is because FileUploadDialog is win32 window, not browser one, but then can you point me to working example of FileUpload scenario without this dialog monitoring ( one in docs doesn't work, afaik).
We have console app test scenario, which pop-up FileUpload dialog. During debug and interactive checks this dialog was handled successfully by this code:
var fileDialog =
new
FileUploadDialog(ab, toAbsPath(testImage), DialogButton.OPEN);
mgr.DialogMonitor.AddDialog(fileDialog);
mgr.DialogMonitor.Start();
But when we deployed it on our monitoring server (win2003EE SP2 \ IE8) - this code no longer works. Console app periodicaly started by special monitoring software - its run in interactive but always LOCKED session (Its like you scheduled program to run with custom app and locked your PC). After few runs I logged in and saw all instances of IE, not closed and with FileUploadDialog popped (and not handled properly).
I tried to figure this bug origin with Sysinternals procmon but was unable to deal with all that calls ( saved dump btw).
Any ideas or help how to track and fix that misbehaviour.
UPDATE: I read anwer on this topic
http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/simulated-clicks-not-running-if-machine-is-in-locked-state.aspx
but i still wonder why then all other my tests run fine, except with FileUploadDialog.
I suspect this is because FileUploadDialog is win32 window, not browser one, but then can you point me to working example of FileUpload scenario without this dialog monitoring ( one in docs doesn't work, afaik).