While running an application on JBoss7, during RunTime I want to not only run JUnit Tests (which I can), but their results shall be exported into an XML file (JUnit.xsd Standard) like Ant does it on Build.
I google a little but I am stuck.
That is the code to simply run the test and display results in the console of Jboss7. Which works perfectly fine.
Now I am trying to use the ANT Api to generate the typical JUnit Result XML, to be able to give it to other tools like Jenkins.
Problems : To be able to cast to JUnitTest, I had to make my HelloWorldSecurityTest extend JUnitTest, which I am not sure was the right thing to do?
And now I got some exceptions like :
I suppose it tries to write the xml ? , and it is missing the libs/jars for the xml model?
[I could write my own "XMLWriter" and based on the Result.java export the data, but that seems to much overhead since Ant is able to that as well?]