Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

It could have been easier if Flash/SilverLight made it possible to trigger file dialog programmatically, but file should still be selected, dialog confirmed, upload initiated... Looks like it has to be automated from outside. What's the usual automation path in such cases?

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

Flash and Silverlight are generally difficult to automate because they don't have full MSAA/UIAutomation implementations. Silverlight has been getting better, but specifically to your question, the file upload dialog is not actually a part of Flash or Silverlight and is MSAA/UIAutomation compliant.

You can use UIAutomation (the new replacement of MSAA) directly, or use any win32 automation framework to interact with that dialog.

share|improve this answer
    
Can you supply a reference to any good win32 automation framework? –  jayarjo Oct 25 '11 at 11:02
    
If you are only going to need it for a couple of dialogs then an entire win32 automation framework might be overkill and you should consider just using UIAutomation, however if you plan on using a win32 UI automation framework to test your silverlight or flash based application then you should find a good framework to use. I know you can use PowerShell: msdn.microsoft.com/en-us/magazine/cc163301.aspx, and there are a lot of others out there. Unfortunately, my experience with win32 UI automation frameworks was internal to Microsoft. I don't have experience with any publicly available. –  Sam Woods Oct 25 '11 at 17:32
    
If you're still looking, AutoIT might be an option: autoitscript.com/site/autoit I've used it in conjunction with WebDriver to automate manipulating a file dialog that's actually generated by a flash utility embedded in a website I'm testing. –  Greg Gauthier Mar 15 '12 at 22:02
add comment

Telerik provides their own Silverlight Test Automation Tool. They predominantly work on .NET platform. You can check

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.