Home » Archived » Test and Performance Tools Platform (TPTP) » [AGR] Obscure NullPointerException when playing back a test
| | |
Re: [AGR] Obscure NullPointerException when playing back a test [message #106122 is a reply to message #106093] |
Mon, 23 July 2007 13:31 |
Barbara Rosi-Schwartz Messages: 448 Registered: July 2009 |
Senior Member |
|
|
Hi Paul.
Thanks for your reply. In actual fact some time during the weekend,
after re-recording the same test script a couple of times, it started
playing back properly again and unfortunately I do not have the merest
clue as to what might have been the problem when it was going wrong.
I was hoping for a hint on what to do in the future, other than doggedly
keeping on re-recording the same test, should this happen again, but I
guess you have no recommendation to give me. Please do correct me if
this is not the case.
Thank you very much and regards,
B.
Paul Slauenwhite wrote:
> Hi Barbara,
> After looking at the code, it appears that the object mine is not being
> loaded from the test suite. Can you attach the test suite in question so we
> can debug further?
>
> Paul
> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
> news:f7r1ha$tho$1@build.eclipse.org...
>> Hi.
>>
>> I have a test script that makes use of an object mine. When attempting to
>> play the script back in standard mode, the test script fails and the
>> .execution file shows the following NullPointerException:
>>
>> There was an error while running the macro associated with the test case:
>> TC001. java.lang.NullPointerException
>> at
>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>> at
>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>> at java.lang.Thread.run(Unknown Source)
>>
>> Everything appears all right at visual inspection. I have tried removing
>> both test script and object mine and re-recording, but I get the same
>> error message. From watching the script when it plays back, I can figure
>> out more or less where it is failing, but I cannot see anything wrong with
>> either the script or the mine. Nothing is shown in the Eclipse logs.
>>
>> Any hints on how I could go about debugging this one? I am using TPTP/AGR
>> 4.4 with Eclipse Europa.
>>
>> TIA,
>> B.
>
>
|
|
|
Re: [AGR] Obscure NullPointerException when playing back a test [message #106243 is a reply to message #106122] |
Tue, 24 July 2007 09:55 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Barbara,
Unfortunately, we have to triage these issue on a case-by-case basis,
since this is not a known or expected behavior. If you come across the
problem in the future, open a defect and attach the test suite.
Paul
"Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
news:f82aj3$9ho$1@build.eclipse.org...
> Hi Paul.
>
> Thanks for your reply. In actual fact some time during the weekend, after
> re-recording the same test script a couple of times, it started playing
> back properly again and unfortunately I do not have the merest clue as to
> what might have been the problem when it was going wrong.
>
> I was hoping for a hint on what to do in the future, other than doggedly
> keeping on re-recording the same test, should this happen again, but I
> guess you have no recommendation to give me. Please do correct me if this
> is not the case.
>
> Thank you very much and regards,
> B.
>
> Paul Slauenwhite wrote:
>> Hi Barbara,
>> After looking at the code, it appears that the object mine is not
>> being loaded from the test suite. Can you attach the test suite in
>> question so we can debug further?
>>
>> Paul
>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>> message news:f7r1ha$tho$1@build.eclipse.org...
>>> Hi.
>>>
>>> I have a test script that makes use of an object mine. When attempting
>>> to play the script back in standard mode, the test script fails and the
>>> .execution file shows the following NullPointerException:
>>>
>>> There was an error while running the macro associated with the test
>>> case: TC001. java.lang.NullPointerException
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>>> at
>>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>>> at java.lang.Thread.run(Unknown Source)
>>>
>>> Everything appears all right at visual inspection. I have tried removing
>>> both test script and object mine and re-recording, but I get the same
>>> error message. From watching the script when it plays back, I can figure
>>> out more or less where it is failing, but I cannot see anything wrong
>>> with either the script or the mine. Nothing is shown in the Eclipse
>>> logs.
>>>
>>> Any hints on how I could go about debugging this one? I am using
>>> TPTP/AGR 4.4 with Eclipse Europa.
>>>
>>> TIA,
>>> B.
>>
|
|
| |
Re: [AGR] Obscure NullPointerException when playing back a test [message #113227 is a reply to message #106243] |
Tue, 25 September 2007 08:23 |
Matthias Wiskow Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi,
perhaps this does not fit to the originally reported situation, but I
encountered the same problem after renaming the testsuite file.
Reverting to the original name helped.
This seems to be a bug. Didn't find any in BugZilla.
Matthias
Paul Slauenwhite wrote:
> Hi Barbara,
> Unfortunately, we have to triage these issue on a case-by-case basis,
> since this is not a known or expected behavior. If you come across the
> problem in the future, open a defect and attach the test suite.
>
> Paul
> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in message
> news:f82aj3$9ho$1@build.eclipse.org...
>> Hi Paul.
>>
>> Thanks for your reply. In actual fact some time during the weekend, after
>> re-recording the same test script a couple of times, it started playing
>> back properly again and unfortunately I do not have the merest clue as to
>> what might have been the problem when it was going wrong.
>>
>> I was hoping for a hint on what to do in the future, other than doggedly
>> keeping on re-recording the same test, should this happen again, but I
>> guess you have no recommendation to give me. Please do correct me if this
>> is not the case.
>>
>> Thank you very much and regards,
>> B.
>>
>> Paul Slauenwhite wrote:
>>> Hi Barbara,
>>> After looking at the code, it appears that the object mine is not
>>> being loaded from the test suite. Can you attach the test suite in
>>> question so we can debug further?
>>>
>>> Paul
>>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>>> message news:f7r1ha$tho$1@build.eclipse.org...
>>>> Hi.
>>>>
>>>> I have a test script that makes use of an object mine. When attempting
>>>> to play the script back in standard mode, the test script fails and the
>>>> .execution file shows the following NullPointerException:
>>>>
>>>> There was an error while running the macro associated with the test
>>>> case: TC001. java.lang.NullPointerException
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>>>> at
>>>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>>>> at java.lang.Thread.run(Unknown Source)
>>>>
>>>> Everything appears all right at visual inspection. I have tried removing
>>>> both test script and object mine and re-recording, but I get the same
>>>> error message. From watching the script when it plays back, I can figure
>>>> out more or less where it is failing, but I cannot see anything wrong
>>>> with either the script or the mine. Nothing is shown in the Eclipse
>>>> logs.
>>>>
>>>> Any hints on how I could go about debugging this one? I am using
>>>> TPTP/AGR 4.4 with Eclipse Europa.
>>>>
>>>> TIA,
>>>> B.
>
|
|
|
Re: [AGR] Obscure NullPointerException when playing back a test [message #113581 is a reply to message #113227] |
Mon, 01 October 2007 10:48 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
Hi Matthias,
Yes, there is an issue with renaming (as well as copying and moving)
test assets. This will be address under enhancement:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166025
Paul
"Matthias Wiskow" <matthias.wiskow@windriver.com> wrote in message
news:fdagjj$t4e$1@build.eclipse.org...
> Hi,
>
> perhaps this does not fit to the originally reported situation, but I
> encountered the same problem after renaming the testsuite file.
> Reverting to the original name helped.
> This seems to be a bug. Didn't find any in BugZilla.
>
> Matthias
>
> Paul Slauenwhite wrote:
>> Hi Barbara,
>> Unfortunately, we have to triage these issue on a case-by-case basis,
>> since this is not a known or expected behavior. If you come across the
>> problem in the future, open a defect and attach the test suite.
>>
>> Paul
>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>> message news:f82aj3$9ho$1@build.eclipse.org...
>>> Hi Paul.
>>>
>>> Thanks for your reply. In actual fact some time during the weekend,
>>> after re-recording the same test script a couple of times, it started
>>> playing back properly again and unfortunately I do not have the merest
>>> clue as to what might have been the problem when it was going wrong.
>>>
>>> I was hoping for a hint on what to do in the future, other than doggedly
>>> keeping on re-recording the same test, should this happen again, but I
>>> guess you have no recommendation to give me. Please do correct me if
>>> this is not the case.
>>>
>>> Thank you very much and regards,
>>> B.
>>>
>>> Paul Slauenwhite wrote:
>>>> Hi Barbara,
>>>> After looking at the code, it appears that the object mine is not
>>>> being loaded from the test suite. Can you attach the test suite in
>>>> question so we can debug further?
>>>>
>>>> Paul
>>>> "Barbara Rosi-Schwartz" <Barbara.Rosi-Schwartz@Etish.org> wrote in
>>>> message news:f7r1ha$tho$1@build.eclipse.org...
>>>>> Hi.
>>>>>
>>>>> I have a test script that makes use of an object mine. When attempting
>>>>> to play the script back in standard mode, the test script fails and
>>>>> the .execution file shows the following NullPointerException:
>>>>>
>>>>> There was an error while running the macro associated with the test
>>>>> case: TC001. java.lang.NullPointerException
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.lookupReferenceId(MacroObjectLocator.java:839)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.load(MacroCommandShell.java:222)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell (Macro.java:75)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p lay(MacroManager.java:474)
>>>>> at
>>>>> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $1$MacroPlayWrapper.run(AutoGUIRunner.java:619)
>>>>> at java.lang.Thread.run(Unknown Source)
>>>>>
>>>>> Everything appears all right at visual inspection. I have tried
>>>>> removing both test script and object mine and re-recording, but I get
>>>>> the same error message. From watching the script when it plays back, I
>>>>> can figure out more or less where it is failing, but I cannot see
>>>>> anything wrong with either the script or the mine. Nothing is shown in
>>>>> the Eclipse logs.
>>>>>
>>>>> Any hints on how I could go about debugging this one? I am using
>>>>> TPTP/AGR 4.4 with Eclipse Europa.
>>>>>
>>>>> TIA,
>>>>> B.
>>
|
|
|
Goto Forum:
Current Time: Fri Apr 26 03:35:55 GMT 2024
Powered by FUDForum. Page generated in 0.03447 seconds
|