Event handler does not propagate component name: Workaround wanted [message #1404979] |
Wed, 06 August 2014 05:39  |
Eclipse User |
|
|
|
Hi there,
as stated in issue 336199, component names cannot be propagated from an event handler.
Is there a way to work around this limitation in the following case:
TC "Provide dialog"
- <check existence> [component name A]
- Event handler: <open dialog>
TC "Open dialog"
- <click left> [component name B]
- <wait for component> [component name A]
I would like to use this as a generic test case, and propagate component names A and B from both test cases. Unfortunately, when reusing "Provide dialog", I will not see component name B propagated to the parent.
The only solution I come across is to create test cases "Open dialog XY" for all dialogs I need to open, with "hard-coded" component names A, B.
Is there a more convenient (generic) way to do this? Appreciate your help!
Florian
|
|
|
|
Re: Event handler does not propagate component name: Workaround wanted [message #1405365 is a reply to message #1405099] |
Thu, 07 August 2014 03:35   |
Eclipse User |
|
|
|
Yes, in the above case, component name A was propagated, but not component name B. (I need to click on B to bring up A, basically).
I found one possible workaround, which is a bit ugly, though:
TC "Provide dialog"
- Check for non-existence [component name A]
- <open dialog>
- Event handler: <NOP>
The NOP test case does nothing. The event handler has reentry type of RETURN. In case component A is there, the check fails, and the event handler returns from the test case. This works, but makes the test fail in case the dialog (component A) is already there - not very nice. Actually, this is not what you want in your tests, so eventually, I'm using separate modules.
Thanks, anyway!
Florian
|
|
|
|
Powered by
FUDForum. Page generated in 0.07430 seconds