Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » AGR "thrashing"
AGR "thrashing" [message #107497] Fri, 03 August 2007 14:58 Go to next message
Charlie Kelly is currently offline Charlie Kelly
Messages: 276
Registered: July 2009
Senior Member
Hi All,

I used the AGR to call a menu item.
The menu item calls a class that implements IWorkbenchWindowActionDelegate.

This Delegate then instantiates a class that implements IWorkbenchAction.
The run method in this class displays a ProgressMonitorDialog and later
displays an ordinary Dialog that requests typed inputs from the user.

As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
until I press the Cancel button. (I think that it is flashing between
the ProgressMonitorDialog ("progress bar") and the ordinary Dialog.

(This pattern works well in several existing plugins, it only causes a
problem in the AGR.)

The thrashing stops after I press "Cancel". Then I can type inputs into
the ordinary Dialog. The problem is the I can't run the Test after it
is recorded. It generates the following:


org.eclipse.core.CoreException
Line 41: The UI object with reference id 42 was not found


In advance, thanks for your help/suggestions.

Charlie
Re: AGR "thrashing" [message #107573 is a reply to message #107497] Sun, 05 August 2007 08:40 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi.

Occasionally I also get the "thrashing effect" that you are mentioning,
Charlie, but only in recoding mode.

In my case the dialogs that are flashing are one of my own dialogs,
extensions of JFace Dialog, and the AGR control box. The rapid
flickering of both boxes starts as soon as the JFace based dialog box is
produced and it eventually subsides, allowing me to continue with my
recording.

Nothing untoward is generated in either the test script or the object
mine and the test case be played back successfully.

The funny thing is that it does not happen *every* time one of my
dialogs is displayed.

Any idea anyone what the problem might be?

TIA,
B.

Charlie Kelly wrote:
> Hi All,
>
> I used the AGR to call a menu item.
> The menu item calls a class that implements IWorkbenchWindowActionDelegate.
>
> This Delegate then instantiates a class that implements IWorkbenchAction.
> The run method in this class displays a ProgressMonitorDialog and later
> displays an ordinary Dialog that requests typed inputs from the user.
>
> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
> until I press the Cancel button. (I think that it is flashing between
> the ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>
> (This pattern works well in several existing plugins, it only causes a
> problem in the AGR.)
>
> The thrashing stops after I press "Cancel". Then I can type inputs into
> the ordinary Dialog. The problem is the I can't run the Test after it
> is recorded. It generates the following:
>
>
> org.eclipse.core.CoreException
> Line 41: The UI object with reference id 42 was not found
>
>
> In advance, thanks for your help/suggestions.
>
> Charlie
Re: AGR "thrashing" [message #107682 is a reply to message #107497] Tue, 07 August 2007 12:03 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Charlie,
What OS are you recording and playing?

Paul
"Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
news:f8vfqt$dvm$1@build.eclipse.org...
> Hi All,
>
> I used the AGR to call a menu item.
> The menu item calls a class that implements
> IWorkbenchWindowActionDelegate.
>
> This Delegate then instantiates a class that implements IWorkbenchAction.
> The run method in this class displays a ProgressMonitorDialog and later
> displays an ordinary Dialog that requests typed inputs from the user.
>
> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
> until I press the Cancel button. (I think that it is flashing between the
> ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>
> (This pattern works well in several existing plugins, it only causes a
> problem in the AGR.)
>
> The thrashing stops after I press "Cancel". Then I can type inputs into
> the ordinary Dialog. The problem is the I can't run the Test after it is
> recorded. It generates the following:
>
>
> org.eclipse.core.CoreException
> Line 41: The UI object with reference id 42 was not found
>
>
> In advance, thanks for your help/suggestions.
>
> Charlie
Re: AGR "thrashing" [message #107695 is a reply to message #107682] Tue, 07 August 2007 13:28 Go to previous messageGo to next message
Charlie Kelly is currently offline Charlie Kelly
Messages: 276
Registered: July 2009
Senior Member
Hi Paul,

Windows XP.

Thanks

Charlie

Paul Slauenwhite wrote:
> Hi Charlie,
> What OS are you recording and playing?
>
> Paul
> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
> news:f8vfqt$dvm$1@build.eclipse.org...
>> Hi All,
>>
>> I used the AGR to call a menu item.
>> The menu item calls a class that implements
>> IWorkbenchWindowActionDelegate.
>>
>> This Delegate then instantiates a class that implements IWorkbenchAction.
>> The run method in this class displays a ProgressMonitorDialog and later
>> displays an ordinary Dialog that requests typed inputs from the user.
>>
>> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
>> until I press the Cancel button. (I think that it is flashing between the
>> ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>>
>> (This pattern works well in several existing plugins, it only causes a
>> problem in the AGR.)
>>
>> The thrashing stops after I press "Cancel". Then I can type inputs into
>> the ordinary Dialog. The problem is the I can't run the Test after it is
>> recorded. It generates the following:
>>
>>
>> org.eclipse.core.CoreException
>> Line 41: The UI object with reference id 42 was not found
>>
>>
>> In advance, thanks for your help/suggestions.
>>
>> Charlie
>
>
Re: AGR "thrashing" [message #107709 is a reply to message #107573] Tue, 07 August 2007 13:31 Go to previous messageGo to next message
Charlie Kelly is currently offline Charlie Kelly
Messages: 276
Registered: July 2009
Senior Member
Hi Barbara,

The thrashing starts when my dialog is display; but it doesn't subside.

Thanks

Charlie


Barbara Rosi-Schwartz wrote:
> Hi.
>
> Occasionally I also get the "thrashing effect" that you are mentioning,
> Charlie, but only in recoding mode.
>
> In my case the dialogs that are flashing are one of my own dialogs,
> extensions of JFace Dialog, and the AGR control box. The rapid
> flickering of both boxes starts as soon as the JFace based dialog box is
> produced and it eventually subsides, allowing me to continue with my
> recording.
>
> Nothing untoward is generated in either the test script or the object
> mine and the test case be played back successfully.
>
> The funny thing is that it does not happen *every* time one of my
> dialogs is displayed.
>
> Any idea anyone what the problem might be?
>
> TIA,
> B.
>
> Charlie Kelly wrote:
>> Hi All,
>>
>> I used the AGR to call a menu item.
>> The menu item calls a class that implements
>> IWorkbenchWindowActionDelegate.
>>
>> This Delegate then instantiates a class that implements IWorkbenchAction.
>> The run method in this class displays a ProgressMonitorDialog and
>> later displays an ordinary Dialog that requests typed inputs from the
>> user.
>>
>> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
>> until I press the Cancel button. (I think that it is flashing between
>> the ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>>
>> (This pattern works well in several existing plugins, it only causes a
>> problem in the AGR.)
>>
>> The thrashing stops after I press "Cancel". Then I can type inputs
>> into the ordinary Dialog. The problem is the I can't run the Test
>> after it is recorded. It generates the following:
>>
>>
>> org.eclipse.core.CoreException
>> Line 41: The UI object with reference id 42 was not found
>>
>>
>> In advance, thanks for your help/suggestions.
>>
>> Charlie
Re: AGR "thrashing" [message #107866 is a reply to message #107695] Wed, 08 August 2007 11:39 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Charlie,
This could be caused by one of two reasons:
1) The Window Manager is confused about where the controller dialog was
during recording. It always will attempt to place the controller on top of
any new shells and it is giving it focus and then when the user tries to
select the dialog, losing focus and then trying to give focus back to the
controller, thus the 'thrashing' or flicker.

2) A SWT defect where the activate and deactivate events are not getting
fired correctly as we rely on these events to guide the process.

Please open an AGR defect
( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP%20T esting and
Test.Execution.AutoGUIRunner) to investigate this problem further. In the
meantime, I would suggest trying another AGR/SWT version to determine if
this problem is version specific.

Paul
"Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
news:f99s3n$qi2$1@build.eclipse.org...
> Hi Paul,
>
> Windows XP.
>
> Thanks
>
> Charlie
>
> Paul Slauenwhite wrote:
>> Hi Charlie,
>> What OS are you recording and playing?
>>
>> Paul
>> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
>> news:f8vfqt$dvm$1@build.eclipse.org...
>>> Hi All,
>>>
>>> I used the AGR to call a menu item.
>>> The menu item calls a class that implements
>>> IWorkbenchWindowActionDelegate.
>>>
>>> This Delegate then instantiates a class that implements
>>> IWorkbenchAction.
>>> The run method in this class displays a ProgressMonitorDialog and later
>>> displays an ordinary Dialog that requests typed inputs from the user.
>>>
>>> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
>>> until I press the Cancel button. (I think that it is flashing between
>>> the ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>>>
>>> (This pattern works well in several existing plugins, it only causes a
>>> problem in the AGR.)
>>>
>>> The thrashing stops after I press "Cancel". Then I can type inputs into
>>> the ordinary Dialog. The problem is the I can't run the Test after it
>>> is recorded. It generates the following:
>>>
>>>
>>> org.eclipse.core.CoreException
>>> Line 41: The UI object with reference id 42 was not found
>>>
>>>
>>> In advance, thanks for your help/suggestions.
>>>
>>> Charlie
>>
Re: AGR "thrashing" [message #108289 is a reply to message #107866] Fri, 10 August 2007 10:46 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hi Paul.

I think your first reason is the most likely for myself, especially
since I see the problem typically when I change desktop in the middle of
a test (I have a number of virtual desktops and have to move between the
one in which I am doing the test and another in order to launch some
background activity that is needed for my test). The flickering occurs
when I return to the test desktop and a dialog is produced. I normally
click within the controller dialog, to give it focus without affecting
my test, and the flickering stops.

Thanks,
B.

Paul Slauenwhite wrote:
> Hi Charlie,
> This could be caused by one of two reasons:
> 1) The Window Manager is confused about where the controller dialog was
> during recording. It always will attempt to place the controller on top of
> any new shells and it is giving it focus and then when the user tries to
> select the dialog, losing focus and then trying to give focus back to the
> controller, thus the 'thrashing' or flicker.
>
> 2) A SWT defect where the activate and deactivate events are not getting
> fired correctly as we rely on these events to guide the process.
>
> Please open an AGR defect
> ( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP%20T esting and
> Test.Execution.AutoGUIRunner) to investigate this problem further. In the
> meantime, I would suggest trying another AGR/SWT version to determine if
> this problem is version specific.
>
> Paul
> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
> news:f99s3n$qi2$1@build.eclipse.org...
>> Hi Paul,
>>
>> Windows XP.
>>
>> Thanks
>>
>> Charlie
>>
>> Paul Slauenwhite wrote:
>>> Hi Charlie,
>>> What OS are you recording and playing?
>>>
>>> Paul
>>> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
>>> news:f8vfqt$dvm$1@build.eclipse.org...
>>>> Hi All,
>>>>
>>>> I used the AGR to call a menu item.
>>>> The menu item calls a class that implements
>>>> IWorkbenchWindowActionDelegate.
>>>>
>>>> This Delegate then instantiates a class that implements
>>>> IWorkbenchAction.
>>>> The run method in this class displays a ProgressMonitorDialog and later
>>>> displays an ordinary Dialog that requests typed inputs from the user.
>>>>
>>>> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
>>>> until I press the Cancel button. (I think that it is flashing between
>>>> the ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>>>>
>>>> (This pattern works well in several existing plugins, it only causes a
>>>> problem in the AGR.)
>>>>
>>>> The thrashing stops after I press "Cancel". Then I can type inputs into
>>>> the ordinary Dialog. The problem is the I can't run the Test after it
>>>> is recorded. It generates the following:
>>>>
>>>>
>>>> org.eclipse.core.CoreException
>>>> Line 41: The UI object with reference id 42 was not found
>>>>
>>>>
>>>> In advance, thanks for your help/suggestions.
>>>>
>>>> Charlie
>
Re: AGR "thrashing" [message #108351 is a reply to message #108289] Fri, 10 August 2007 14:21 Go to previous messageGo to next message
Charlie Kelly is currently offline Charlie Kelly
Messages: 276
Registered: July 2009
Senior Member
Hi Paul and Barbara,

Please see my comments below.

Charlie


Barbara Rosi-Schwartz wrote:
> Hi Paul.
>
> I think your first reason is the most likely for myself, especially
> since I see the problem typically when I change desktop in the middle of
> a test (I have a number of virtual desktops and have to move between the
> one in which I am doing the test and another in order to launch some
> background activity that is needed for my test). The flickering occurs
> when I return to the test desktop and a dialog is produced. I normally
> click within the controller dialog, to give it focus without affecting
> my test, and the flickering stops.
>
> Thanks,
> B.
>
> Paul Slauenwhite wrote:
>> Hi Charlie,
>> This could be caused by one of two reasons:
>> 1) The Window Manager is confused about where the controller dialog
>> was during recording. It always will attempt to place the controller
>> on top of any new shells and it is giving it focus and then when the
>> user tries to select the dialog, losing focus and then trying to give
>> focus back to the controller, thus the 'thrashing' or flicker.
>>
I launch an Eclipse application from the Run menu. This version of
Eclipse contains menu(s) that my code adds to the Eclipse menu bar.
When I select a menu item, the problem begins.

>> 2) A SWT defect where the activate and deactivate events are not
>> getting fired correctly as we rely on these events to guide the process.
>>
>> Please open an AGR defect
>> ( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP%20T esting
>> and Test.Execution.AutoGUIRunner) to investigate this problem
>> further. In the meantime, I would suggest trying another AGR/SWT
>> version to determine if this problem is version specific.
>>
I will file a defect.

>> Paul
>> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
>> news:f99s3n$qi2$1@build.eclipse.org...
>>> Hi Paul,
>>>
>>> Windows XP.
>>>
>>> Thanks
>>>
>>> Charlie
>>>
>>> Paul Slauenwhite wrote:
>>>> Hi Charlie,
>>>> What OS are you recording and playing?
>>>>
>>>> Paul
>>>> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
>>>> news:f8vfqt$dvm$1@build.eclipse.org...
>>>>> Hi All,
>>>>>
>>>>> I used the AGR to call a menu item.
>>>>> The menu item calls a class that implements
>>>>> IWorkbenchWindowActionDelegate.
>>>>>
>>>>> This Delegate then instantiates a class that implements
>>>>> IWorkbenchAction.
>>>>> The run method in this class displays a ProgressMonitorDialog and
>>>>> later displays an ordinary Dialog that requests typed inputs from
>>>>> the user.
>>>>>
>>>>> As soon as the Dialog is displayed, it "thrashes": it rapidly
>>>>> flashes until I press the Cancel button. (I think that it is
>>>>> flashing between the ProgressMonitorDialog ("progress bar") and the
>>>>> ordinary Dialog.
>>>>>
>>>>> (This pattern works well in several existing plugins, it only
>>>>> causes a problem in the AGR.)
>>>>>
>>>>> The thrashing stops after I press "Cancel". Then I can type inputs
>>>>> into the ordinary Dialog. The problem is the I can't run the Test
>>>>> after it is recorded. It generates the following:
>>>>>
>>>>>
>>>>> org.eclipse.core.CoreException
>>>>> Line 41: The UI object with reference id 42 was not found
>>>>>
>>>>>
>>>>> In advance, thanks for your help/suggestions.
>>>>>
>>>>> Charlie
>>
Re: AGR "thrashing" [message #108719 is a reply to message #108351] Mon, 13 August 2007 11:48 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Thanks Charlie.
"Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
news:f9hs9h$p1$1@build.eclipse.org...
> Hi Paul and Barbara,
>
> Please see my comments below.
>
> Charlie
>
>
> Barbara Rosi-Schwartz wrote:
>> Hi Paul.
>>
>> I think your first reason is the most likely for myself, especially since
>> I see the problem typically when I change desktop in the middle of a test
>> (I have a number of virtual desktops and have to move between the one in
>> which I am doing the test and another in order to launch some background
>> activity that is needed for my test). The flickering occurs when I return
>> to the test desktop and a dialog is produced. I normally click within the
>> controller dialog, to give it focus without affecting my test, and the
>> flickering stops.
>>
>> Thanks,
>> B.
>>
>> Paul Slauenwhite wrote:
>>> Hi Charlie,
>>> This could be caused by one of two reasons:
>>> 1) The Window Manager is confused about where the controller dialog was
>>> during recording. It always will attempt to place the controller on top
>>> of any new shells and it is giving it focus and then when the user tries
>>> to select the dialog, losing focus and then trying to give focus back to
>>> the controller, thus the 'thrashing' or flicker.
>>>
> I launch an Eclipse application from the Run menu. This version of
> Eclipse contains menu(s) that my code adds to the Eclipse menu bar. When I
> select a menu item, the problem begins.
>
>>> 2) A SWT defect where the activate and deactivate events are not getting
>>> fired correctly as we rely on these events to guide the process.
>>>
>>> Please open an AGR defect
>>> ( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP%20T esting and
>>> Test.Execution.AutoGUIRunner) to investigate this problem further. In
>>> the meantime, I would suggest trying another AGR/SWT version to
>>> determine if this problem is version specific.
>>>
> I will file a defect.
>
>>> Paul
>>> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
>>> news:f99s3n$qi2$1@build.eclipse.org...
>>>> Hi Paul,
>>>>
>>>> Windows XP.
>>>>
>>>> Thanks
>>>>
>>>> Charlie
>>>>
>>>> Paul Slauenwhite wrote:
>>>>> Hi Charlie,
>>>>> What OS are you recording and playing?
>>>>>
>>>>> Paul
>>>>> "Charlie Kelly" <Eclipse@CharlieKelly.com> wrote in message
>>>>> news:f8vfqt$dvm$1@build.eclipse.org...
>>>>>> Hi All,
>>>>>>
>>>>>> I used the AGR to call a menu item.
>>>>>> The menu item calls a class that implements
>>>>>> IWorkbenchWindowActionDelegate.
>>>>>>
>>>>>> This Delegate then instantiates a class that implements
>>>>>> IWorkbenchAction.
>>>>>> The run method in this class displays a ProgressMonitorDialog and
>>>>>> later displays an ordinary Dialog that requests typed inputs from the
>>>>>> user.
>>>>>>
>>>>>> As soon as the Dialog is displayed, it "thrashes": it rapidly flashes
>>>>>> until I press the Cancel button. (I think that it is flashing between
>>>>>> the ProgressMonitorDialog ("progress bar") and the ordinary Dialog.
>>>>>>
>>>>>> (This pattern works well in several existing plugins, it only causes
>>>>>> a problem in the AGR.)
>>>>>>
>>>>>> The thrashing stops after I press "Cancel". Then I can type inputs
>>>>>> into the ordinary Dialog. The problem is the I can't run the Test
>>>>>> after it is recorded. It generates the following:
>>>>>>
>>>>>>
>>>>>> org.eclipse.core.CoreException
>>>>>> Line 41: The UI object with reference id 42 was not found
>>>>>>
>>>>>>
>>>>>> In advance, thanks for your help/suggestions.
>>>>>>
>>>>>> Charlie
>>>
Previous Topic:Process Memory size grows fast even when profiler is in the pause mode
Next Topic:Sending data from custom java agent
Goto Forum:
  


Current Time: Wed Oct 22 15:40:57 GMT 2014

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

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