2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Closing an unknown modal dialog

  • Subject: [QF-Test] Closing an unknown modal dialog
  • From: "Kelstrup, Louise" <louise.kelstrup@?.com>
  • Date: Fri, 13 Jul 2007 09:59:37 +0200

I am writing exception handling for my script and I have a challenge that I would like some comments on.
Sometimes during testrun I get an unexpected modal dialog. It is not same dialog every time and it does not happen at the same script node, so that makes it difficult using a normal try-catch. I am therefore trying to implement catch nodes in my dependencies.
When the dialog appears I want my script (in the dependency catch node) to close the dialog and after that close the mainwindow (not the whole application) and continue with the next testcase. The mainwindow cannot be closed until I get rid of the modal dialog.
But how do I close the modal dialog when I don't know which component it is? Is it possible to make a Jython script that closes the active modal dialog? Or do I have to identify every possible modal dialog that could appear and try closing all of them with try-catch (not a very beautiful solution).
Another problem I am facing is closing windows with Alt-F4 or pressing the X in the corner.
When I record I get the steps:
PTR Alt-F4
CLOSING (windowname)
Or (for the X)
CLOSING (windowname)
But nothing seems to happen when I replay?
Regards Louise

Capgemini Danmark A/S, Registered office: Gentofte, Reg.No. 25606965



This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.