asma
asma

Reputation: 2835

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?

Upvotes: 5

Views: 14480

Answers (4)

vins
vins

Reputation: 15400

Adding this answer for people who are looking for some detailed steps to test a REST API using JMeter.

http://www.testautomationguru.com/how-to-test-rest-api-using-jmeter/

Upvotes: 0

eugene.polschikov
eugene.polschikov

Reputation: 7339

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.

Upvotes: 12

Alon
Alon

Reputation: 374

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

Upvotes: 1

Related Questions