Home » Archived » Test and Performance Tools Platform (TPTP) » NullPointerException from TestSuitesTabularPublicationService class
NullPointerException from TestSuitesTabularPublicationService class [message #108317] |
Fri, 10 August 2007 07:20  |
Eclipse User |
|
|
|
Hello everybody.
I am trying to get ant to automatically publish my test results via
<tptp:publication> and I am getting a NullPointerException from the
TestSuitesTabularPublicationService class as follows:
[tptp:publication] at
org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
[tptp:publication] at
org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
[tptp:publication] at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
[tptp:publication] at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
[tptp:publication] at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
[tptp:publication] at java.lang.Thread.run(Unknown Source)
Funnily enough, I get a successful report if I only have the results
from one test suite, but as soon as I add a second test suite, the above
exception shows up.
I tried running the report manually, as suggested by Joe in the thread
"Running tptp:publication getting java.lang.Exception" on this mailing
list and all works fine.
I am using version 4.4.0v200705300100 for the
org.eclipse.tptp.test.report.birt plugin.
Any hint of what might be going wrong?
TIA,
B.
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108364 is a reply to message #108317] |
Fri, 10 August 2007 11:22   |
Eclipse User |
|
|
|
Hi Barbara,
Although the the defect is not exactly the same as what you describe, I
suspect that this problem is also fixed by the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
current 4.4.1 builds.) This bug fix does a better job of interpreting
the paths to the input test suites for reporting (if the paths passed
from ant are relative, then they are interpreted as relative to the
workspace, while if they are absolute they are treated as normal
filesystem paths.) I suspect your issue is resolved because the code
throwing the NPE in 4.4 no longer exists in 4.4.1.
As an aside, there are about half a dozen other ASF related fixes in
4.4.1, with hopefully a couple of more to come. I hope you find it much
better than in prior releases.
Thanks,
--Joe
Barbara Rosi-Schwartz wrote:
> Hello everybody.
>
> I am trying to get ant to automatically publish my test results via
> <tptp:publication> and I am getting a NullPointerException from the
> TestSuitesTabularPublicationService class as follows:
>
> [tptp:publication] at
> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>
> [tptp:publication] at
> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>
> [tptp:publication] at
> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>
> [tptp:publication] at
> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>
> [tptp:publication] at
> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>
> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>
> Funnily enough, I get a successful report if I only have the results
> from one test suite, but as soon as I add a second test suite, the above
> exception shows up.
>
> I tried running the report manually, as suggested by Joe in the thread
> "Running tptp:publication getting java.lang.Exception" on this mailing
> list and all works fine.
>
> I am using version 4.4.0v200705300100 for the
> org.eclipse.tptp.test.report.birt plugin.
>
> Any hint of what might be going wrong?
>
> TIA,
> B.
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108404 is a reply to message #108364] |
Fri, 10 August 2007 11:50   |
Eclipse User |
|
|
|
Thanks Joe,
I'll give it a spin and update this thread.
B.
Joe Toomey wrote:
> Hi Barbara,
>
> Although the the defect is not exactly the same as what you describe, I
> suspect that this problem is also fixed by the fix for
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
> current 4.4.1 builds.) This bug fix does a better job of interpreting
> the paths to the input test suites for reporting (if the paths passed
> from ant are relative, then they are interpreted as relative to the
> workspace, while if they are absolute they are treated as normal
> filesystem paths.) I suspect your issue is resolved because the code
> throwing the NPE in 4.4 no longer exists in 4.4.1.
>
> As an aside, there are about half a dozen other ASF related fixes in
> 4.4.1, with hopefully a couple of more to come. I hope you find it much
> better than in prior releases.
>
> Thanks,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Hello everybody.
>>
>> I am trying to get ant to automatically publish my test results via
>> <tptp:publication> and I am getting a NullPointerException from the
>> TestSuitesTabularPublicationService class as follows:
>>
>> [tptp:publication] at
>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>
>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>
>> Funnily enough, I get a successful report if I only have the results
>> from one test suite, but as soon as I add a second test suite, the
>> above exception shows up.
>>
>> I tried running the report manually, as suggested by Joe in the thread
>> "Running tptp:publication getting java.lang.Exception" on this mailing
>> list and all works fine.
>>
>> I am using version 4.4.0v200705300100 for the
>> org.eclipse.tptp.test.report.birt plugin.
>>
>> Any hint of what might be going wrong?
>>
>> TIA,
>> B.
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108419 is a reply to message #108364] |
Fri, 10 August 2007 12:46   |
Eclipse User |
|
|
|
Joe,
Actually from past experience we would prefer to download stable
releases, so I am wondering if you can give me a rough idea of when
4.4.1 is going to be available.
I would also like to know what the dependencies will be. We use AGR and
work on top of Europa. Will we need any AGR or other updated plugin?
Thanks a lot,
B.
Joe Toomey wrote:
> Hi Barbara,
>
> Although the the defect is not exactly the same as what you describe, I
> suspect that this problem is also fixed by the fix for
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
> current 4.4.1 builds.) This bug fix does a better job of interpreting
> the paths to the input test suites for reporting (if the paths passed
> from ant are relative, then they are interpreted as relative to the
> workspace, while if they are absolute they are treated as normal
> filesystem paths.) I suspect your issue is resolved because the code
> throwing the NPE in 4.4 no longer exists in 4.4.1.
>
> As an aside, there are about half a dozen other ASF related fixes in
> 4.4.1, with hopefully a couple of more to come. I hope you find it much
> better than in prior releases.
>
> Thanks,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Hello everybody.
>>
>> I am trying to get ant to automatically publish my test results via
>> <tptp:publication> and I am getting a NullPointerException from the
>> TestSuitesTabularPublicationService class as follows:
>>
>> [tptp:publication] at
>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>
>> [tptp:publication] at
>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>
>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>
>> Funnily enough, I get a successful report if I only have the results
>> from one test suite, but as soon as I add a second test suite, the
>> above exception shows up.
>>
>> I tried running the report manually, as suggested by Joe in the thread
>> "Running tptp:publication getting java.lang.Exception" on this mailing
>> list and all works fine.
>>
>> I am using version 4.4.0v200705300100 for the
>> org.eclipse.tptp.test.report.birt plugin.
>>
>> Any hint of what might be going wrong?
>>
>> TIA,
>> B.
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108434 is a reply to message #108419] |
Fri, 10 August 2007 13:39   |
Eclipse User |
|
|
|
Barbara,
I don't blame you for not adopting for production use until an official
release. But it may be in your best interest to at least validate
that the problem is fixed in an interim 4.4.1 build -- if it's not, then
you could file a defect and maybe still get it fixed in 4.4.1.
The current plan for the 4.4.1 release is late September, as part of the
Europa fall maintenance release. Despite its "tech preview" status, the
AGR is still part of TPTP, so you should always run use the version of
the AGR that goes with the TPTP release you're using.
Hope this helps,
--Joe
Barbara Rosi-Schwartz wrote:
> Joe,
>
> Actually from past experience we would prefer to download stable
> releases, so I am wondering if you can give me a rough idea of when
> 4.4.1 is going to be available.
>
> I would also like to know what the dependencies will be. We use AGR and
> work on top of Europa. Will we need any AGR or other updated plugin?
>
> Thanks a lot,
> B.
>
> Joe Toomey wrote:
>> Hi Barbara,
>>
>> Although the the defect is not exactly the same as what you describe,
>> I suspect that this problem is also fixed by the fix for
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
>> current 4.4.1 builds.) This bug fix does a better job of interpreting
>> the paths to the input test suites for reporting (if the paths passed
>> from ant are relative, then they are interpreted as relative to the
>> workspace, while if they are absolute they are treated as normal
>> filesystem paths.) I suspect your issue is resolved because the code
>> throwing the NPE in 4.4 no longer exists in 4.4.1.
>>
>> As an aside, there are about half a dozen other ASF related fixes in
>> 4.4.1, with hopefully a couple of more to come. I hope you find it
>> much better than in prior releases.
>>
>> Thanks,
>> --Joe
>>
>> Barbara Rosi-Schwartz wrote:
>>> Hello everybody.
>>>
>>> I am trying to get ant to automatically publish my test results via
>>> <tptp:publication> and I am getting a NullPointerException from the
>>> TestSuitesTabularPublicationService class as follows:
>>>
>>> [tptp:publication] at
>>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>>
>>> [tptp:publication] at
>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>>
>>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>>
>>> Funnily enough, I get a successful report if I only have the results
>>> from one test suite, but as soon as I add a second test suite, the
>>> above exception shows up.
>>>
>>> I tried running the report manually, as suggested by Joe in the
>>> thread "Running tptp:publication getting java.lang.Exception" on this
>>> mailing list and all works fine.
>>>
>>> I am using version 4.4.0v200705300100 for the
>>> org.eclipse.tptp.test.report.birt plugin.
>>>
>>> Any hint of what might be going wrong?
>>>
>>> TIA,
>>> B.
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108489 is a reply to message #108434] |
Fri, 10 August 2007 16:08   |
Eclipse User |
|
|
|
Joe,
Thanks for your words of wisdom. I think your suggestion is sound and we
will try it out.
So long,
B.
Joe Toomey wrote:
> Barbara,
>
> I don't blame you for not adopting for production use until an official
> release. But it may be in your best interest to at least validate that
> the problem is fixed in an interim 4.4.1 build -- if it's not, then you
> could file a defect and maybe still get it fixed in 4.4.1.
>
> The current plan for the 4.4.1 release is late September, as part of the
> Europa fall maintenance release. Despite its "tech preview" status, the
> AGR is still part of TPTP, so you should always run use the version of
> the AGR that goes with the TPTP release you're using.
>
> Hope this helps,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Joe,
>>
>> Actually from past experience we would prefer to download stable
>> releases, so I am wondering if you can give me a rough idea of when
>> 4.4.1 is going to be available.
>>
>> I would also like to know what the dependencies will be. We use AGR
>> and work on top of Europa. Will we need any AGR or other updated plugin?
>>
>> Thanks a lot,
>> B.
>>
>> Joe Toomey wrote:
>>> Hi Barbara,
>>>
>>> Although the the defect is not exactly the same as what you describe,
>>> I suspect that this problem is also fixed by the fix for
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
>>> current 4.4.1 builds.) This bug fix does a better job of
>>> interpreting the paths to the input test suites for reporting (if the
>>> paths passed from ant are relative, then they are interpreted as
>>> relative to the workspace, while if they are absolute they are
>>> treated as normal filesystem paths.) I suspect your issue is
>>> resolved because the code throwing the NPE in 4.4 no longer exists in
>>> 4.4.1.
>>>
>>> As an aside, there are about half a dozen other ASF related fixes in
>>> 4.4.1, with hopefully a couple of more to come. I hope you find it
>>> much better than in prior releases.
>>>
>>> Thanks,
>>> --Joe
>>>
>>> Barbara Rosi-Schwartz wrote:
>>>> Hello everybody.
>>>>
>>>> I am trying to get ant to automatically publish my test results via
>>>> <tptp:publication> and I am getting a NullPointerException from the
>>>> TestSuitesTabularPublicationService class as follows:
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>>>
>>>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>>>
>>>> Funnily enough, I get a successful report if I only have the results
>>>> from one test suite, but as soon as I add a second test suite, the
>>>> above exception shows up.
>>>>
>>>> I tried running the report manually, as suggested by Joe in the
>>>> thread "Running tptp:publication getting java.lang.Exception" on
>>>> this mailing list and all works fine.
>>>>
>>>> I am using version 4.4.0v200705300100 for the
>>>> org.eclipse.tptp.test.report.birt plugin.
>>>>
>>>> Any hint of what might be going wrong?
>>>>
>>>> TIA,
>>>> B.
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108650 is a reply to message #108434] |
Sun, 12 August 2007 11:55   |
Eclipse User |
|
|
|
Hi Joe.
I had a go with build 4.4.1, but unfortunately I cannot get even past
execution of the <tptp:execution> task, no less reporting. All my Ant
scripts fall over with a NullPointerException at the same line of the
scripts. The target is as follows:
<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="suites\projectHandling\SubscribeToProject.testsuite"/ >
</fileset>
</tptp:execution>
</target>
and the NullPointerException occurs on the third line of the target:
<tptp:execution resultsrefid="tptp.test.results">
No further information is provided, at least not in the usual logs.
Have you actually successfully ran Ant scripts over there under 4.4.1?
Any other suggestion?
Thanks,
B.
Joe Toomey wrote:
> Barbara,
>
> I don't blame you for not adopting for production use until an official
> release. But it may be in your best interest to at least validate that
> the problem is fixed in an interim 4.4.1 build -- if it's not, then you
> could file a defect and maybe still get it fixed in 4.4.1.
>
> The current plan for the 4.4.1 release is late September, as part of the
> Europa fall maintenance release. Despite its "tech preview" status, the
> AGR is still part of TPTP, so you should always run use the version of
> the AGR that goes with the TPTP release you're using.
>
> Hope this helps,
> --Joe
>
> Barbara Rosi-Schwartz wrote:
>> Joe,
>>
>> Actually from past experience we would prefer to download stable
>> releases, so I am wondering if you can give me a rough idea of when
>> 4.4.1 is going to be available.
>>
>> I would also like to know what the dependencies will be. We use AGR
>> and work on top of Europa. Will we need any AGR or other updated plugin?
>>
>> Thanks a lot,
>> B.
>>
>> Joe Toomey wrote:
>>> Hi Barbara,
>>>
>>> Although the the defect is not exactly the same as what you describe,
>>> I suspect that this problem is also fixed by the fix for
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=193540 (which is in the
>>> current 4.4.1 builds.) This bug fix does a better job of
>>> interpreting the paths to the input test suites for reporting (if the
>>> paths passed from ant are relative, then they are interpreted as
>>> relative to the workspace, while if they are absolute they are
>>> treated as normal filesystem paths.) I suspect your issue is
>>> resolved because the code throwing the NPE in 4.4 no longer exists in
>>> 4.4.1.
>>>
>>> As an aside, there are about half a dozen other ASF related fixes in
>>> 4.4.1, with hopefully a couple of more to come. I hope you find it
>>> much better than in prior releases.
>>>
>>> Thanks,
>>> --Joe
>>>
>>> Barbara Rosi-Schwartz wrote:
>>>> Hello everybody.
>>>>
>>>> I am trying to get ant to automatically publish my test results via
>>>> <tptp:publication> and I am getting a NullPointerException from the
>>>> TestSuitesTabularPublicationService class as follows:
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.tptp.test.report.birt.services.TestSuitesTabular PublicationService.resolvePaths(TestSuitesTabularPublication Service.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.test.core.services.AbstractTestResultsPub licationService.execute(AbstractTestResultsPublicationServic e.java:100)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
>>>>
>>>> [tptp:publication] at
>>>> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
>>>>
>>>> [tptp:publication] at java.lang.Thread.run(Unknown Source)
>>>>
>>>> Funnily enough, I get a successful report if I only have the results
>>>> from one test suite, but as soon as I add a second test suite, the
>>>> above exception shows up.
>>>>
>>>> I tried running the report manually, as suggested by Joe in the
>>>> thread "Running tptp:publication getting java.lang.Exception" on
>>>> this mailing list and all works fine.
>>>>
>>>> I am using version 4.4.0v200705300100 for the
>>>> org.eclipse.tptp.test.report.birt plugin.
>>>>
>>>> Any hint of what might be going wrong?
>>>>
>>>> TIA,
>>>> B.
|
|
| | | |
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108983 is a reply to message #108914] |
Tue, 14 August 2007 09:42   |
Eclipse User |
|
|
|
Hi Joe.
In actual fact I had not copied the ant-tptp jar file in my plugin's lib
directory, but I have now, with the same results exactly. Below is my
ant script, as you requested.
<?xml version="1.0" encoding="UTF-8"?>
<project name="TPTP Prova Ant Driver"
default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
<tstamp >
<format property="TODAY" pattern="dd-MM-yyyy" />
</tstamp>
<!-- Define common properties for all automatable services -->
<property name="tptp.publication.service"
value=" org.eclipse.tptp.test.report.birt.publish-tabular-testsuites " />
<!-- Define script-local properties, that vary by installation -->
<property name="tptp.test.workspace"
value="C:\projects\Etish-33_prova_for_agr"/>
<property name="tptp.test.project"
value="com.etish.useme.client.editor.test" />
<property name="project.dir"
value="${tptp.test.workspace}\${tptp.test.project}"/>
<property name="report.publication.location"
location="${tptp.test.workspace}\..\agr-reports\CloseDocument " />
<target name="main" depends="test-execution, test-results-interrogation"/>
<!-- Execute test suites using default results name -->
<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="suites\documentHandling\CloseDocument.testsuite"/>
</fileset>
</tptp:execution>
</target>
<!-- Interrogate test suite results for verdict -->
<target name="test-results-interrogation">
<echo message="Interrogating test suite results..." />
<condition property="tptp.test.success">
<tptp:interrogation verdictproperty="tptp.test.verdict">
<filelist refid="tptp.test.results"/>
</tptp:interrogation>
</condition>
<echo message="The overall test result verdict is:
'${tptp.test.verdict}'" />
</target>
</project>
Hope this helps. Thanks again,
B.
Joe Toomey wrote:
> Hmm...
>
> I am running lots of tests from ant via ASF in 4.4.1. Can you confirm
> that you copied the (4.4.1) ant-tptp.jar file into your ant/lib
> directory? If so, please reply and paste the rest of the relevent parts
> of your ant script (where you specify the workspace, project, etc.).
> Below is a complete ant script that I modeled after your target snippet
> and used to run a test in 4.4.1.
>
> Thanks,
> --Joe
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #108995 is a reply to message #108983] |
Tue, 14 August 2007 13:41   |
Eclipse User |
|
|
|
Hi Barbara,
I took your ant script and made a couple of small modifications. The
most significant is that I added the following property:
<property name="tptp.automation.eclipse"
value="C:\TPTP_TestPass\4.4.1 test1\eclipse" />
Without this property, the call will obviously fail, since our adapter
won't know where to find the eclipse installation to use for the service
implementation. I wish I believed this was the problem, but when I ran
without this property, I got a CreateProcessException (which is what I'd
expect), and not a NullPointerException as you have been experiencing.
Beyond that, I changed the project name to one that I had in CVS with
AGR tests in it, and changed the path to the test suite to one that
existed in that project. Then I created that workspace, imported the
project, and ran the ant script. The test execution and interrogation
ran to completion successfully.
I'd really like to understand what the problem is, so can you please
provide me with the following additional information:
1) Which JRE are you using?
2) Which AC (IAC or standalone)?
3) What version of ant?
4) Is this is dirty workspace? (i.e. has it been used with many
different eclipse / TPTP versions?)
I'll also paste my modified version of your ant script below. If you
have the time, you could try running this (after checking out the
project org.eclipse.hyades.test.java.tests from TPTP's CVS repository
(host: dev.eclipse.org, repo path: /cvsroot/tptp, user: anonymous, path
to project: HEAD/test-results/test). Note that you'll have to check out
both this project and org.eclipse.hyades.test.core.tests for the project
to compile.
<?xml version="1.0" encoding="UTF-8"?>
<project name="TPTP Prova Ant Driver"
default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
<tstamp >
<format property="TODAY" pattern="dd-MM-yyyy" />
</tstamp>
<!-- Define common properties for all automatable services -->
<property name="tptp.publication.service"
value=" org.eclipse.tptp.test.report.birt.publish-tabular-testsuites " />
<!-- Define script-local properties, that vary by installation -->
<property name="tptp.test.workspace"
value="C:\projects\Etish-33_prova_for_agr"/>
<property name="tptp.test.project"
value="org.eclipse.hyades.test.java.tests" />
<property name="project.dir"
value="${tptp.test.workspace}\${tptp.test.project}"/>
<property name="report.publication.location"
location="${tptp.test.workspace}\..\agr-reports\CloseDocument " />
<property name="tptp.automation.eclipse"
value="C:\TPTP_TestPass\4.4.1 test2\eclipse" />
<target name="main" depends="test-execution,
test-results-interrogation"/>
<!-- Execute test suites using default results name -->
<target name="test-execution">
<echo message="Executing test suites..." />
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include
name="autoui\Test.Execution.JUnitRunner.testsuite"/>
</fileset>
</tptp:execution>
</target>
<!-- Interrogate test suite results for verdict -->
<target name="test-results-interrogation">
<echo message="Interrogating test suite results..." />
<condition property="tptp.test.success">
<tptp:interrogation verdictproperty="tptp.test.verdict">
<filelist refid="tptp.test.results"/>
</tptp:interrogation>
</condition>
<echo message="The overall test result verdict is:
'${tptp.test.verdict}'" />
</target>
</project>
|
|
|
Re: NullPointerException from TestSuitesTabularPublicationService class [message #111006 is a reply to message #108995] |
Fri, 31 August 2007 11:30  |
Eclipse User |
|
|
|
Hi Joe.
Apologies for the extreme delay, I was snowed under (almost literally,
given the terrible weather we have been having here in the UK!... :-)
I have placed my replies to all your questions into the issue you have
kindly create in Bugzilla for me. Let's continue the discussion on the
issue itself, https://bugs.eclipse.org/bugs/show_bug.cgi?id=199783.
Thanks once again.
Cheerio,
B.
--
Barbara Rosi-Schwartz
Etish Limited [http://www.etish.org]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^...^
/ o,o \ The proud parents of Useme
|) ::: (| The Open Requirements Management Tool
====w=w==== [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joe Toomey wrote:
> Hi Barbara,
>
> I took your ant script and made a couple of small modifications. The
> most significant is that I added the following property:
>
> <property name="tptp.automation.eclipse"
> value="C:\TPTP_TestPass\4.4.1 test1\eclipse" />
>
> Without this property, the call will obviously fail, since our adapter
> won't know where to find the eclipse installation to use for the service
> implementation. I wish I believed this was the problem, but when I ran
> without this property, I got a CreateProcessException (which is what I'd
> expect), and not a NullPointerException as you have been experiencing.
>
> Beyond that, I changed the project name to one that I had in CVS with
> AGR tests in it, and changed the path to the test suite to one that
> existed in that project. Then I created that workspace, imported the
> project, and ran the ant script. The test execution and interrogation
> ran to completion successfully.
>
> I'd really like to understand what the problem is, so can you please
> provide me with the following additional information:
>
> 1) Which JRE are you using?
> 2) Which AC (IAC or standalone)?
> 3) What version of ant?
> 4) Is this is dirty workspace? (i.e. has it been used with many
> different eclipse / TPTP versions?)
>
> I'll also paste my modified version of your ant script below. If you
> have the time, you could try running this (after checking out the
> project org.eclipse.hyades.test.java.tests from TPTP's CVS repository
> (host: dev.eclipse.org, repo path: /cvsroot/tptp, user: anonymous, path
> to project: HEAD/test-results/test). Note that you'll have to check out
> both this project and org.eclipse.hyades.test.core.tests for the project
> to compile.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="TPTP Prova Ant Driver"
> default="main"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>
> <tstamp >
> <format property="TODAY" pattern="dd-MM-yyyy" />
> </tstamp>
>
> <!-- Define common properties for all automatable services -->
> <property name="tptp.publication.service"
> value=" org.eclipse.tptp.test.report.birt.publish-tabular-testsuites " />
>
> <!-- Define script-local properties, that vary by installation -->
> <property name="tptp.test.workspace"
> value="C:\projects\Etish-33_prova_for_agr"/>
> <property name="tptp.test.project"
> value="org.eclipse.hyades.test.java.tests" />
> <property name="project.dir"
> value="${tptp.test.workspace}\${tptp.test.project}"/>
> <property name="report.publication.location"
> location="${tptp.test.workspace}\..\agr-reports\CloseDocument " />
> <property name="tptp.automation.eclipse"
> value="C:\TPTP_TestPass\4.4.1 test2\eclipse" />
>
> <target name="main" depends="test-execution,
> test-results-interrogation"/>
>
> <!-- Execute test suites using default results name -->
> <target name="test-execution">
> <echo message="Executing test suites..." />
> <tptp:execution resultsrefid="tptp.test.results">
> <fileset dir="${project.dir}">
> <include
> name="autoui\Test.Execution.JUnitRunner.testsuite"/>
> </fileset>
> </tptp:execution>
> </target>
>
> <!-- Interrogate test suite results for verdict -->
> <target name="test-results-interrogation">
> <echo message="Interrogating test suite results..." />
> <condition property="tptp.test.success">
> <tptp:interrogation verdictproperty="tptp.test.verdict">
> <filelist refid="tptp.test.results"/>
> </tptp:interrogation>
> </condition>
> <echo message="The overall test result verdict is:
> '${tptp.test.verdict}'" />
> </target>
> </project>
|
|
|
Goto Forum:
Current Time: Sun May 11 22:49:12 EDT 2025
Powered by FUDForum. Page generated in 0.15107 seconds
|