Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load test a rest-ful web service through JMeter or any other tool?

I have a web service : http://test.hs.com/rest/service/checkUpdate

It takes input : Device MAC Address e.g. 48:02:2a:ed:02:63

Its output :

1 - Device not registered (If Device is not registered)

2 – This code (though I don't know what's this)

<ResourceSettings>
   <accessKey>AKIAI6CZBIRDKHMMN3QA</accessKey>
   <secretKey>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</secretKey>
   <endPoint>s3.amazonaws.com</endPoint>
   <mainBucketPath>healthslate-testing</mainBucketPath>
   <clinicBucketPath>dhjasdhasd</clinicBucketPath>
   <isUpdateAvailable>true</ isUpdateAvailable>
   <allowedBuild>2.3</allowedBuild>
</ResourceSettings>

How can I test the load on this web service through JMeter? I have no idea how to handle input/output of web services in JMeters? I need step-by-step guide regarding this. Please note that the developer of this web service says it is a rest-ful web service. How can I test a rest-ful web service by giving it input as well?

like image 432
asma Avatar asked Oct 11 '13 12:10

asma


People also ask

Does JMeter support testing of RESTful web services?

JMeter is really well suited for Rest API Testing, especially those based on the Json Format.


3 Answers

The basic approach in testing web services using jMemeter I would describe in some steps:

  1. create webService project
  2. deploy it on server
  3. create Thread group
  4. ADD SAMPLER-SOAP/XML -RPC REQUEST /or Http request for REST
  5. add listener (e.g Results Tree)
  6. run the test plan
  7. view output

One can get more details at Webservice Test Plan if you testing SOAP or at Using JMeter to test a RESTful web service if you testing REST. Hope this helps you.

like image 96
eugene.polschikov Avatar answered Nov 15 '22 05:11

eugene.polschikov


Here are some tutorials to get you started with JMeter: http://community.blazemeter.com/knowledgebase/topics/10018-jmeter-tutorials. You will need more information before you start testing

like image 45
Alon Avatar answered Nov 15 '22 03:11

Alon


check out here for jmeter restful webservice tutorial here

like image 23
Matt Cutts Avatar answered Nov 15 '22 03:11

Matt Cutts