![]() In HTTP Request Control Panel, the Path field indicates which URL request you want to send The JMeter element used here is HTTP Request Sampler. For example, if we have 5 users and a 5 -second Ramp-Up period, then the delay between starting users would be 1 second (5 seconds /5 users) Ramp-Up Period: 5 – It tells JMeter how long to delay before starting the next user.Loop Count: 5 – Number of time to execute testing.Number of Threads: 5 – Number of users connects to the target website.In the Thread Group control panel, enter Thread Properties as follows: We will take an example of row no 5.Add Thread Group To add Thread Group: Right click on the “Test Plan” and add a new thread group: Add -> Threads (Users) -> Thread Group.In the previous tutorial, I have explained how we can send GET request in JMeter.Ĭreate a Test Plan in JMeter by following below mentioned steps In this tutorial, we will only explain how we send POST HTTP request in JMeter. Set the value of the custom cookie to ‘ $’.We can perform GET as well as POST operation in JMeter. For example, by sending a request with cookies that contain a local date/time, the server can identify the local time of the user. This can be used to provide information to the server. This property defines if a variable is allowed in the User-Defined cookies section. CookieManager.allow_variable_cookies property.Add a row to the User-Defined Cookies section of the HTTP Cookie Manager config element.Īll requests have a cookie with the name ‘ TEST ’ and the value ‘ RICHACOOKIE ’.In such a case you could distinguish JMeter script requests from the real users on the server. For example, you can pass the name of the Test script with custom cookies. It is valuable for passing information to the server. ![]() ![]() Saved cookies in this section are added to each request in the current Thread Group. User-Defined Cookies are an interesting feature made possible with the HTTP Cookie Manager. This means that the cookie is passing from the response to the next request, and it isn’t cleared when a new iteration starts. All the other requests have cookie data in the request header. The ‘Login page’ request on the first iteration has no cookies. Thread Group -> Add -> Listener -> View Results TreeĪs we check the cookie data of each request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |