[Webtest] NullPointer exception in XmlReporter

Denis N. Antonioli webtest@lists.canoo.com
Sun, 28 Aug 2005 09:18:59 +0200


Hallo Stu

yes,
if summary is true, then you must also have a resultfile defined in =20
your configuration.

I've filled a bug report for it.

Best
     dna

On 26 ao=FBt 05, at 13:50, Stu Robertson wrote:

> Ahh, changing to summary=3D"false" in the config makes that go away.
>
> Is this because we have to set a filename when using the summary?
>
> Thanks,
>
> Stu
>
> On Aug 26, 2005, at 5:50 AM, Stu Robertson wrote:
>
>
>> Hi,
>>
>> We've started using canoo, and are very happy with it.  But all of =20=

>> our test runs fail with the following exception.  I didn't see =20
>> anything in the docs about configuring reporting - but obviously =20
>> I'm doing something wrong.
>>
>> [testSpec]  INFO (com.canoo.webtest.ant.TestSpecificationTask) - =20
>> Writing report using Report class: =20
>> com.canoo.webtest.reporting.XmlReporter
>> [testSpec] ERROR (com.canoo.webtest.ant.TestSpecificationTask) - =20
>> Exception caught while writing test summary
>> [testSpec] java.lang.NullPointerException
>> [testSpec]     at =20
>> com.canoo.webtest.reporting.XmlReporter.getDocument=20
>> (XmlReporter.java:65)
>> [testSpec]     at =20
>> com.canoo.webtest.reporting.XmlReporter.generateReport=20
>> (XmlReporter.java:55)
>> [testSpec]     at =20
>> com.canoo.webtest.ant.TestSpecificationTask.report=20
>> (TestSpecificationTask.java:165)
>> [testSpec]     at =20
>> com.canoo.webtest.ant.TestSpecificationTask.callSelectedReporter=20
>> (TestSpecificationTask.java:157)
>> [testSpec]     at =20
>> com.canoo.webtest.ant.TestSpecificationTask.writeTestReportIfNeeded=20=

>> (TestSpecificationTask.java:151)
>>
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>

--=20
El pasado es indestructible; tarde o temprano vuelven todas las cosas,
y una de las cosas que vuelven es el proyecto de abolir el pasado.
   -- J.L. Borges, "Nathaniel Hawthorne"