It is set up as a proxy service which you then direct your browser traffic through to record a manual walkthrough of the requests you wish to test.įirst add the Non-test Element “HTTP(S) Test Script Recorder” to the WorkBench. Setting up your testįor building the test JMeter has a nice recording tool included. Also, add a Recording Controller (Add -> Logic Controller -> Recording Controller), which will be used as a reciever for the recording described in the next section. This is where the requests will be defined. You can of course skip this if the site you are testing does not have cookies.įinally add a Thread Group (Add -> Threads(Users) -> Thread Group). Tick the “Clear cookies each iteration?” box. The Cookie Manager will keep track of the cookies recieved for each thread of requests. It is also smart to add the HTTP Cookie Manager from the same menu. For now we will only set one default, in the “Server Name or IP” field. First off, include the config element HTTP Request Defaults, which has a pretty self explanatory name. There are a few basic elements which can be nice to include at this point. If you have many different functionalities you would like to test it may be smart to divide them into different Thread Groups, but for now we will look at one. The Thread Group will include a set of tasks that we want the test to complete. Right click on “Stress test of in the left column, and go to Add -> Threads (Users) -> Thread Group. Let us give our project a new name, “Stress test of The first thing we want to do then is create a new Thread Group. Once you have unpacked the binary package, go to the bin directory and start JMeter with jmeter.bat (on Windows systems) or jmeter.sh (on *NIX). It is also possible to run the software from command line. We are going to use the GUI interface for JMeter in this tutorial. As such, JMeter can be run on any operating system that has a compliant java implementation. The only software requirement is that you have java (JVM) 6 or higher installed. Installation and initial setupįirst, go to the official Apache JMeter website and download the binary, and unpack it on the machine you will be running the test from (your workstation/laptop should be enough to start with). This tutorial is going to show you how to set it up and get started with some basic stress testing. It can be used both for stress testing and functional testing. Apache Jmeter is a nice little tool with tons of functionality for testing web sites.
0 Comments
Leave a Reply. |