Possibility of using maven surfire plugin for SOAP webservice tests - web-services

I have a challenge of using maven surfire plugin for SOAP webservices testing.
What I need to check whether this plugin can be used while running webservices tests in CI environment.
Any suggestions are appreciated.
Many thanks for your comments and feedback.

Take a look at Karate which easily integrates into a standard Java / Maven project. You can actually generate the standard JUnit XML report format which most CI tools understand. Or you have the option of integrating 3rd party reports via Maven. The test execution is via the Maven surefire plugin.
And yes, Karate has excellent support for SOAP and XML.
Disclaimer: I am the dev.

Related

what are the advantages of using maven to generate a WS client from a WSDL?

My WSDL contains 20 web services and I have to generate a WS client to invoke those web services.
I started with wsdl2java to generate the sub then I developed the JSP files and servlets and it seems to work, I am using Axis2 with Tomcat 7 on Eclipse, but many developers use Maven to do the work so I wonder what are the advantages of using Maven to create the client ?
I am a newbie so can you please explain to me this point in a level that I can understand.
Maven itself won't do it for you, it may only be used to trigger generate code for you. So it does not matter whether you use ant or maven or gradle from command line or within eclipse - in the end you always call the same mechanism to generate the portable artifacts from the WSDL.

Can I use ColdFusion using CFWheels test cases (RocketUnit) with Jenkins?

I want to know if anyone out there has tried to using ColdFusion project using the CFWheels framework on Jenkins - Continuous integration server ?
I know Jenkins has support for MXUnit but if I use the CFWheels framework I would be using RocketUnit not MXUnit. Would there be any support for RocketUnit on Jenkins? or anything glue that might make the 2 work ?
Jenkins supports CFWheels only through some plugins that convert the RocketUnit output to JUnit XML. As specified in the link here https://groups.google.com/forum/#!topic/cfwheels/zgeTzLm1IHs provided by #Matt Busche, we can integrate RocketUnit tests with Jenkins.

consuming wsdl in spring mvc

My IDE set up is
Eclipse Indigo
Spring IDE for indigo
Spring STS for indigo
maven integration for eclipse
maven integration for eclipse wtp
Created a sample spring mvc project and performed maven clean and maven build.
I have a wsdl from client which i have included in a project that uses cxf-wsdl2java to generate the proxy code. Not sure if this is the right way to approach this. The web service is on 'axis'
Looking for tutorial on how to consume the wsdl and make the method calls in spring mvc project using maven. also is cxf the right way to approach this? particularly the wsdl2java approach
It is usually a good practice to use the wsdl2java with maven (except that I would have not copied the wsdl inside the resources, but I would have kept it on the distant server). As this if the wsdl change, you will ne notified directly with your build.
For your client, just configure your endpoint. see the 'Configuring a Spring Client' doc from cxf : http://cxf.apache.org/docs/jax-ws-configuration.html
You might want to look into the Spring Web Service project found here:
http://static.springsource.org/spring-ws/site/
Ihere is a tutorial (located here: http://static.springsource.org/spring-ws/site/reference/html/tutorial.html) on their website which goes through both creating a contract first web service, as well as a consumer of that web service.
Hope this helps!

JBoss Arquillian integration with Apache Ant and Junit

Has anyone managed to integrate Arquillian with Ant and JUnit? If so, could you provide an example?
I've prepared a draft of the build integration chapter for Arquillian. This chapter describes how you can use different build systems (namely Ant and Gradle) to drive Arquillian-based test. We'll get this rolled into the next release.
Arquillian build integration chapter
Another interesting article that discusses exactly this is this one:
Integration testing using Arquillian without Maven
Here is a working showcase for ant/gradle https://github.com/arquillian/arquillian-showcase/tree/master/cdi

Test framework for web services

We have a monolithic application written in Visual Dataflex, and various complementing applications written in other (.NET) languages. They all share the same database, and need to follow the same business logic. One way to facilitate unified business logic across these is to provide web services as an interface for testing.
Of course, for this to work, we need a good framework for testing web services. Any suggestions? For example, can Cucumber do this "out of the box"?
I'm assuming you're talking about Soap web services. You can use Soap4R to talk to a Soap web service. Wrapping this all up in Cucumber scenarios should work fine.
SoapUI is a pretty nice product for creating webservice tests, and they're easily callable via junit or just via the command line. It's also got some stuff for creating load tests as well.
They've got an opensource version as well as a professional version.