Posts

Showing posts from June, 2013

Testing REST API using Jmeter

Image
Now a days REST APIs are widely used in web applications. REST API are light weight and provide faster response and easy to use Webservices. REST APIs are used in BigData applications using Hadoop Environment, Amazon Webservices etc. Here are simple steps to test REST API using Apache Jemeter. Pre-requisites: Java...Hmm yeah obviously. Start Jmeter 1.   Initially You see Testplan in left plane. 2.  Right click on it->Add->Config Element ->select HTTP Request defaults  (needed if you want to make request url by default for all your rest calls 3. Right click Test plan->Add->Threads->Select Thread Group( to select a Thread to run testcases) 4.Right click Thread Group->Add->Sampler -> Select HTTP request 4. Select Method as GET/POST based on your requirement. 5. Enter Basepath to url ( hmm..yeah got it. you can enter request parameters also here along with your basepath Example: "/basepath/info.xml?id=234" 6.Right click Thread G