Posts

Showing posts with the label loadtesting

Load Testing an nodejs API

Image
Load Testing is quite a stream of its own all I did was smoothly sailed on top of it. With not much time in hand, the only weapon of choice was Jmeter, Well quite brilliant a tool!! We had to test a facebook chat-bot built with nodejs. This app is a webhook for FB to push the chat messages down to our app. This is how we achieved it On Windows: Download JMeter from  here . Now run the jmeter.bat, this will open up a java GUI where you can easily configure the endpoints you want to test. Add a thread group and set the number of users/thread you want to spawn to test your API Add an Http request sampler  Fill in the intuitive fields like URL, request body, Method, etc., For setting up HTTP headers like content-type or authorization fields right click on HTTP request and add config element HTTP header manager, then the key values as you may To see the results on all the requests that will spawn create add listener View results tree.  You are ready ...