Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webservice call from Jenkins

I need to write a webservice client and call it from Jenkins. Below are my questions:

  • What is the best way to call a web service from Jenkins? Any default plug in available? I need to pass a XML data as input to the web service.
  • If plug in is not the option, can you please let me know what are the other ways we can achieve this (ANT+JAVA etc)?
  • If you have any sample code, that would be great.

Thanks Aravind

like image 968
user1961768 Avatar asked Jan 09 '13 15:01

user1961768


1 Answers

It would be great to know you just need to call your client as part of some complex flow, implemented as a Jenkins job, or you want to concentrate on webservice testing.

WillieT has pointed you to several simple recipes which can be used to solve some basic tasks. If you need more power, better reporting, some additional features please consider the following:

Apache JMeter (details)

  • Building a WebService Test Plan
  • Web Service Testing in JMeter
  • Webservice testing with JMeter

JMeter can be integrated into Jenkins using Performance plugin. Report example:

enter image description here

Grinder (details)

I prefer to use this tool, but it might be to complex/heavy for you.

  • Grinder script gallery
  • How to Test REST Web Service Using The Grinder

Grinder can be integrated into Jenkins using Grinder plugin. Report example:

enter image description here

like image 135
Renat Gilmanov Avatar answered Oct 18 '22 18:10

Renat Gilmanov