|
Re: listener methods are not getting called while playback the script [message #122362 is a reply to message #122329] |
Thu, 07 February 2008 11:37 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Pushparaj,
Since the AGR is invoking the UI widgets programmatically when playing
back object-based recordings, I assume the event is not being forwarded to
the listener. To resolve this problem, the AGR would have to capture these
events in the recording and fire the events during playback. unfortunately
in TPTP 4.5, the AGR was moved from a Technology Preview component to an
As-Is component. As-Is components are primarily provided for prior users
but imply no support (for example, defects, news group, and mailing lists).
You could try recording using position-based recording, but then your
test cases would be brittle (e.g. sensitive to resolution, UI layout, etc).
Paul
"Pushparaj" <pushparaj_94@yahoo.com> wrote in message
news:2feee6a0870b11c010ee97ded08a87bd$1@www.eclipse.org...
> Hi All,
>
> In my Preference Dialog, i have the code like this,
>
> tree.addListener(SWT.MenuDetect, new Listener() {
>
> public void handleEvent(Event event) {
> System.out.println("Inside Menu Listener");
>
> }});
>
> while recording the script i am getting the message "Inside Menu
> Listener". But while running the script i am not getting this message
> because handleEvent() method itself is not getting called.
> Thanks,
> Pushparaj
>
|
|
|
Powered by
FUDForum. Page generated in 0.02945 seconds