Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » listener methods are not getting called while playback the script
listener methods are not getting called while playback the script [message #122329] Wed, 06 February 2008 19:04 Go to next message
Pushparaj is currently offline Pushparaj
Messages: 62
Registered: July 2009
Member
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
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 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
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
>
Previous Topic:ArrayIndexOutofBoundsException
Next Topic:JVM Segfualt When Profiler Started
Goto Forum:
  


Current Time: Mon Sep 22 20:23:51 GMT 2014

Powered by FUDForum. Page generated in 0.02501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software