{"id":3324,"date":"2020-09-30T05:42:19","date_gmt":"2020-09-30T05:42:19","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=3324"},"modified":"2020-09-30T05:51:49","modified_gmt":"2020-09-30T05:51:49","slug":"testing-the-login-page-using-jmeter","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/","title":{"rendered":"Testing the login page using Jmeter"},"content":{"rendered":"<h2>Jmeter<\/h2>\n<p>Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application. Jmeter is used to analyze, measure, and check the behavior of the application against heavy load, multiple and concurrent user traffic.<\/p>\n<h3>Steps to perform the login page testing with the assertion:<\/h3>\n<p>1. First, we need to add Thread Group to Test Plan:<br \/>\n Right-click on Test Plan> Add > Threads<br \/>\n <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-1.jpg\" alt=\"Jmeter 1\" width=\"970\" height=\"714\" class=\"alignnone size-full wp-image-3325\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-1.jpg 970w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-1-300x221.jpg 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-1-768x565.jpg 768w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/p>\n<p>Number of Threads:  Total number of virtual users.<br \/>\nRamp-Up Period: Time taken to reach the full number of threads.<br \/>\nLoop Count: Loop Count is the number of executions for the script.<\/p>\n<p>2. Add the HTTP Request Default: Here, we need to enter the URL of the testing site.<br \/>\nRight-click on Thread Group> Add > Config Element > HTTP Request Defaults<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-2.jpg\" alt=\"Jmeter 2\" width=\"1267\" height=\"709\" class=\"alignnone size-full wp-image-3326\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-2.jpg 1267w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-2-300x168.jpg 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-2-1024x573.jpg 1024w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-2-768x430.jpg 768w\" sizes=\"(max-width: 1267px) 100vw, 1267px\" \/><\/p>\n<p>Enter the URL\/IP address of the site to perform the performance testing Such as <a href=\"http:\/\/www.studysection.com\">www.studysection.com<\/a><br \/>\n3. Add the HTTP Cookie Manager: Cookie policy should be set to Compatibility.<br \/>\nRight-click on Thread Group > Add > Config Element > HTTP Cookie Manager<\/p>\n<p>4. Add the Simple Controller: A simple controller is used as a container for the request. We add the login and home page under the simple Controller.<br \/>\nRight-click on Thread Group > Add > Logic Controller > Simple Controller<\/p>\n<p>5. Add the HTTP Request: It is used for HTTP page requests. Here we will enter the path of the site page.<br \/>\nRight-click on Simple Controller> Add >Sampler> HTTP Request<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-3.jpg\" alt=\"Jmeter 3\" width=\"960\" height=\"709\" class=\"alignnone size-full wp-image-3327\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-3.jpg 960w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-3-300x222.jpg 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-3-768x567.jpg 768w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/p>\n<p>As you can check in the above screenshot, we added the path of the login page and added two parameters(username and password) with value on the HTTP request page. <\/p>\n<p># Now, we are adding one more HTTP request page to verify the homepage of the site.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-4.jpg\" alt=\"Jmeter4\" width=\"974\" height=\"705\" class=\"alignnone size-full wp-image-3328\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-4.jpg 974w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-4-300x217.jpg 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-4-768x556.jpg 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><br \/>\nThe method should be set to Post to test the login and home page.<\/p>\n<p>6. Now add the Assertion method to verify the Home page after login into the application.<br \/>\nRight-click on Homepage(HTTP request) > Add > Assertions > Response Assertion<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-5.jpg\" alt=\"Jmeter5\" width=\"1266\" height=\"710\" class=\"alignnone size-full wp-image-3329\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-5.jpg 1266w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-5-300x168.jpg 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-5-1024x574.jpg 1024w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-5-768x431.jpg 768w\" sizes=\"(max-width: 1266px) 100vw, 1266px\" \/><\/p>\n<p>Add text to verify the homepage. Here we are adding the title (My Learning) to verify the home page. For that, we need to click on the add button display on the above screenshot. We can assert the home page with other content (title, headings, etc) available on the Home page.<\/p>\n<p>7. The last step to view the result, add Listener: To view the result we can add any listener in the test plan<br \/>\nRight-click on Thread Group > Add > Listener > View Result Tree<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-6.jpg\" alt=\"Jmeter6\" width=\"1263\" height=\"704\" class=\"alignnone size-full wp-image-3330\" srcset=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-6.jpg 1263w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-6-300x167.jpg 300w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-6-1024x571.jpg 1024w, https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/Jmeter-6-768x428.jpg 768w\" sizes=\"(max-width: 1263px) 100vw, 1263px\" \/><\/p>\n<p>As we can check response data in the listener, we get the title of the home page and our test case pass. If My Learning is not displaying in the response then that means the assertion text does not match with response data and our home page test case fails.<\/p>\n<p><small>People having good command over the <a href=\"https:\/\/www.studysection.com\/basics-of-french-foundation\">French language<\/a> can get a French certification from StudySection. StudySection offers both beginner level and expert level French certification exams to test the ability to communicate in the French language.<br \/>\n<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jmeter Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.<\/p>\n","protected":false},"author":1,"featured_media":3335,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Testing The Login Page Using Load Testing Application<\/title>\n<meta name=\"description\" content=\"Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing The Login Page Using Load Testing Application\" \/>\n<meta property=\"og:description\" content=\"Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-30T05:42:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-30T05:51:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/jmeter_login.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"568\" \/>\n\t<meta property=\"og:image:height\" content=\"294\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"Testing the login page using Jmeter\",\"datePublished\":\"2020-09-30T05:42:19+00:00\",\"dateModified\":\"2020-09-30T05:51:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\"},\"wordCount\":486,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\",\"url\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\",\"name\":\"Testing The Login Page Using Load Testing Application\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2020-09-30T05:42:19+00:00\",\"dateModified\":\"2020-09-30T05:51:49+00:00\",\"description\":\"Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testing the login page using Jmeter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Testing The Login Page Using Load Testing Application","description":"Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/","og_locale":"en_US","og_type":"article","og_title":"Testing The Login Page Using Load Testing Application","og_description":"Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.","og_url":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2020-09-30T05:42:19+00:00","article_modified_time":"2020-09-30T05:51:49+00:00","og_image":[{"width":568,"height":294,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2020\/09\/jmeter_login.jpg","type":"image\/jpeg"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"Testing the login page using Jmeter","datePublished":"2020-09-30T05:42:19+00:00","dateModified":"2020-09-30T05:51:49+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/"},"wordCount":486,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/","url":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/","name":"Testing The Login Page Using Load Testing Application","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2020-09-30T05:42:19+00:00","dateModified":"2020-09-30T05:51:49+00:00","description":"Jmeter is a Java-based open-source testing tool. It is designed for the load and performance testing of the application.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/testing-the-login-page-using-jmeter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Testing the login page using Jmeter"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":9370,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/3324"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=3324"}],"version-history":[{"count":5,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/3324\/revisions"}],"predecessor-version":[{"id":3336,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/3324\/revisions\/3336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/3335"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=3324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=3324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=3324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}