deggis
unread,Jun 4, 2009, 10:55:30 AM6/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to testng-users
Hi,
I'm developing a test result raporter by extending
TestListenerAdapter. Idea is that raporter is run regularly and it
reports differences from previous to current run.
So I'm saving ITestContext to a file for later comparing, but saving
it using serialization on ITestContext causes this:
java.io.NotSerializableException: org.testng.xml.XmlPackage
at java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject
(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject
(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData
(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1392)
...
ITestContext (TestRunner) declares to be Serializable, but seems to be
using XmlPackage that doesn't. Is this a bug? Can you suggest any
workarounds?
Thanks in advance,
Heikki Salo