[Webtest] [webtest][JIRA] Created: (WT-89) java.lang.NullPointerException when reporting failed test
Denis N. Antonioli (JIRA)
webtest@lists.canoo.com
Mon, 3 Oct 2005 09:13:21 +0200 (CEST)
java.lang.NullPointerException when reporting failed test
---------------------------------------------------------
Key: WT-89
URL: http://webtest-community.canoo.com/jira/browse/WT-89
Project: WebTest
Type: Bug
Reporter: Denis N. Antonioli
ivan@sharpmind.de reported:
I am getting this error while running a simple xml project. The 1st scenario is executed correctly, the 2nd crashes while generating the report.
Any suggestion on how I can debug this further?
I am using the latest WebTest with Ant 1.6.5, jdk 5 on SuSE Linux 9.3
thank you,
Ivan
ivan@iridium:~/cvs/repository/internal/testing/mpuserdb/webtest> webtest.sh -buildfile add-one-customer.xml
Will use /opt/jdk1.5.0_03//bin/java
Buildfile: add-one-customer.xml
Trying to override old definition of task sleep
[...]
addCustomer:
[webtest] (ant.WebtestTask 69 ) No configuration defined, using default configuration.
[webtest] (steps.Step 239 ) Start Step: null "[implict setup step]" (1/41)
[webtest] (steps.Setup 67 ) Surfing with browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
[webtest] (ant.WebtestTask 156 ) Writing report using Report class: com.canoo.webtest.reporting.XmlReporter
[webtest] (ant.WebtestTask 174 ) Exception caught while writing test summary
[webtest] java.lang.NullPointerException
[webtest] at com.canoo.webtest.reporting.XmlResultConverter.addResultAttributes(XmlResultConverter.java:188)
[webtest] at com.canoo.webtest.reporting.XmlResultConverter.addToDocument(XmlResultConverter.java:71)
[webtest] at com.canoo.webtest.reporting.XmlReporter.generateReport(XmlReporter.java:55)
[webtest] at com.canoo.webtest.ant.WebtestTask.report(WebtestTask.java:171)
[webtest] at com.canoo.webtest.ant.WebtestTask.callSelectedReporter(WebtestTask.java:163)
[webtest] at com.canoo.webtest.ant.WebtestTask.writeTestReportIfNeeded(WebtestTask.java:157)
[webtest] at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:76)
[webtest] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[webtest] at org.apache.tools.ant.Task.perform(Task.java:364)
[webtest] at org.apache.tools.ant.Target.execute(Target.java:341)
[webtest] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[webtest] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[webtest] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[webtest] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[webtest] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[webtest] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[webtest] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[webtest] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[webtest] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
BUILD SUCCESSFUL
Total time: 3 seconds
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira