How to handle unexpected pop up window?
Please let me know how to handle unexpected pop up windows?
Re: How to handle unexpected pop up window?
In our automation project we had 2 approaches for this (you have to use a programatic automation project and NOT a record & replay to apply these) :
1) In our SuperHelper class (each leaf testcase inherits from this) we spawned into onInitialize() an error checking thread, this error checking thread basically lives until the leaf testcase is running and will log and discard any known common error/warning/info message box.
For doing this, please lookup the ivory.properties file in you rational installation and check for a property related to multithreading. (support does not recommend using ITCL API because it's not thread safe).
This method worked fine most of the cases, however sometimes encountered exceptions, overall we abandon it.
2) Using a single thread approach, if your automation project has a sort of a layer (like tasks) which is designated to act on a specific area of your application, for each task method (which is clicking for you) you can handle through exception handling ! the under laying layer will throw an exception because won't be able to recognize the widget to act on (in case of modal error dialog boxes), so in task layer you catch the "ObjectNotFoundException" and prior of logging it, check for this common error/warning/info or whatever dialog you might know to be unexpected.
For any of the two methods above, you should still have to know how these pop ups looks like ..etc the boomer is that you don't know when to expect them [img]/images/graemlins/smile.gif[/img]