SpiraTest Jenkins Integration

Monday, July 29, 2013
Avatar
I installed the Spira plugin in Jenkins and trying to integrate the build with SpiraTest. I have following questions?

1. Does this plugin support being able to update SpiraTest with individual test results?

2. Is this plugin open-source and available somewhere like github? Want to see if we can extend the functionality needed for us.

3. The rest api is mostly around incidents. Do we have a rest api for test cases?



Also,

When I run Jenkins interactively and not as a service on windows, this plugin fails with following error.

Status Code: 500

Exception: java.lang.ExceptionInInitializerError
Stacktrace:
javax.servlet.ServletException: java.lang.ExceptionInInitializerError
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:214)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
	at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ExceptionInInitializerError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:31)
	at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:128)
	at javax.xml.ws.spi.Provider.provider(Provider.java:83)
	at javax.xml.ws.Service.<init>(Service.java:56)
	at com.inflectra.spiratest.plugins.soap.ImportExport.<init>(ImportExport.java:42)
	at com.inflectra.spiratest.plugins.SpiraImportExport.testConnection(SpiraImportExport.java:272)
	at com.inflectra.spiratest.plugins.SpiraBuilder$DescriptorImpl.doTestConnection(SpiraBuilder.java:165)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677)
	... 39 more
Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference. 
	at com.sun.xml.internal.ws.spi.ProviderImpl$2.run(ProviderImpl.java:211)
	at com.sun.xml.internal.ws.spi.ProviderImpl$2.run(ProviderImpl.java:206)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.xml.internal.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:206)
	at com.sun.xml.internal.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:77)
	... 62 more
Caused by: javax.xml.bind.JAXBException
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:195)
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
	at com.sun.xml.internal.ws.spi.ProviderImpl$2.run(ProviderImpl.java:209)
	... 66 more
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at winstone.classLoader.WebappClassLoader.loadClass(WebappClassLoader.java:83)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:191)
	... 70 more
2 Replies
Tuesday, July 30, 2013
Avatar
re: play12k Monday, July 29, 2013
Kiran P
I installed the Spira plugin in Jenkins and trying to integrate the build with SpiraTest. I have following questions?

1. Does this plugin support being able to update SpiraTest with individual test results?

2. Is this plugin open-source and available somewhere like github? Want to see if we can extend the functionality needed for us.

3. The rest api is mostly around incidents. Do we have a rest api for test cases?


 

1) This plugin reports back the build results, the source code revisions and adds links in the build log to artifacts in SpiraTest. If you want to hook up an automated test, that's done by integrating the automation tool to SpiraTest (e.g. use our plugins for NUnit, JUnit, etc. - see https://www.inflectra.com/SpiraTest/Downloads.aspx)

2) No it's not open source and on GitHub, however we can provide you the source code to modify for your own needs if necessary. Send an email to support@inflectra.com to request it.

3) The REST API is still fairly new and only for incidents. The SOAP API is complete and should be used for non-incidents. In v4.1 we shall be extending the REST API to include the rest of the system :-)

Tuesday, July 30, 2013
Avatar
re: play12k Monday, July 29, 2013
Regarding the Jenkins service permissions error, that's something you'll have to ask the Jenkins team.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Monday, July 29, 2013
  • Last Reply: Tuesday, November 26, 2013
  • Replies: 2
  • Views: 13784