File download window

Ninja

I have a web page in which I am clicking on a file after which another web page opens with File Download window(1.PNG). After clicking on Save button from 1.PNG another window pops up saying Save As location(2.PNG).When I specify location and click on Save button then third window pops up for Download Complete(3.PNG).
I want to handle all these 3 windows through VS plug-in in my test case.Right now I am using IE8+W2K3 32.But I have to make it compatible for IE7,IE9 & FireFox for different OSes.
Please guide me.

Ninja

Anthony

Since you're using IE8, I suspect dialogs one and two are properly handled, it's just dialog three that remains open after the test completes. Due to a known regression, the third dialog is not currently being handled in IE8. We expect this fix to be included in our next major release, due out in April.

Byron

Thanks for helping us understand the precise behavior you want to test. Nitin is correct: Test Studio does not test for the existence of the downloaded file on the local file system. Test Studio focuses on the browser, and assumes that the download was successful if the browser generates a successful download message.

Please let us know if you have any further questions.

@Nitin. Thanks for assisting. I've updated your Telerik Points as a way of saying thank you.

Byron

Any unhandled exception within the coded step will fail the test step (and test) immediately. In this case, the FileNotFoundException will result in failure, and the rest of the code in that coded step will not be executed.

John

Thanx Byron for the info.
Explicitly how to Pass the test case from Coded step/Test Studio steps?
Means by throwing unhandled exception we can Fail the test case, in the same way how to Pass the test case?

Byron

Any coded step that executes without an unhandled exception will pass. It is not necessary to pass a test step explicitly. If you want to ensure that your test continues despite a failed step (whether coded or not), you can mark a step as continue on failure. If you would like your step to pass despite an exception, you can wrap the relevant code in a try-catch statement to handle the exception.

Rupesh

I have upgraded my environment to 2012.1.528 to resolve download dialog issue but still I am facing issues with IE 7,8 & 9.
For IE 9 with Win 7 it fails to handle IE9.png dialog.
For IE 8 on W2K3 it fails to handle 3.PNG from original thread.
For IE 7 it fails to handle 1.PNG from original thread but says Handle Download dialog step is Passed.

Byron

This issue should be partially resolved: the only known issue that remains is only in Windows XP. If possible, please provide a copy of your test and access to your application. If this is not possible, please provide access to a similar test against a public application that demonstrate the same behavior. Also, please provide the failure log for your issue. You can export these to file from the failure tab for your test. A Jing video demonstrating the issue may also help us to better understand what is happening. Thanks for providing the information we need to assist you.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.