This is a migrated thread and some comments may be shown as answers.

FileUploadDialog not handled if no user logged interactively.

2 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexey Shcherbak
Top achievements
Rank 1
Alexey Shcherbak asked on 20 Jul 2010, 03:14 PM
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:
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).

2 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 22 Jul 2010, 09:07 PM
Hello Alexey Shcherbak,

You have run into one of the roadblocks of UI automation. A WebAii test can work find so long as it doesn't do any simulated keystrokes/typing or actually moving of the mouse. We try hard to make the automation work as much as possible using direct DOM manipulation (i.e. working with the HTML loaded in the browser and talking to the browser). Unfortunately, as you have discovered, the File Upload dialog is a Win32 window, not an IE window. Thus we have to treat it different and yes it does require full interactive desktop to be able to handle it. There's no work around for this. it is a Windows limitation for UI actions.

Regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alexey Shcherbak
Top achievements
Rank 1
answered on 26 Jul 2010, 08:14 AM
Thanks for your explanation. It would be pretty unnessesary, at least  FileUploadDialog itself, when HtmlInputFile.Upload() will work correctly  ;)
Tags
General Discussions
Asked by
Alexey Shcherbak
Top achievements
Rank 1
Answers by
Cody
Telerik team
Alexey Shcherbak
Top achievements
Rank 1
Share this question
or