Performance Testing with JMeter - Second Edition by Bayo Erinle

Performance Testing with JMeter - Second Edition by Bayo Erinle

Author:Bayo Erinle [Erinle, Bayo]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-04-24T04:00:00+00:00


Attempting to execute the recorded scenario on saving it will not yield the expected results. Go ahead and add a View Results Tree listener (right-click on Test Plan and go to Add | Listener | View Results Tree) to diagnose what is actually going on. Once the simulation is run, examine the responses from the server through the View Results Tree listener. Even though all responses are green, indicating successful requests (since we got a response code of 200 from the server), we are actually still just getting back the login page after successfully logging in (see the Response tab of View Results Tree for subsequent requests after successful authentication). Ensure that you switch to the HTML view from the drop-down menu to correctly have the page rendered to see things more clearly.

If you examine the Request tab, then you will see the reason for using that. Here is a snippet of the Request data of the login process. You will see something similar to this:

GET http://jmeterbook.aws.af.cm/;jsessionid=2CE58BC032344AA90CA60C6C880687A4 [no cookies] Request Headers: Connection: keep-alive Content-Type: application/x-www-form-urlencoded Accept-Language: en-US,en;q=0.8 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Origin: http://jmeterbook.aws.af.cm User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.99 Safari/537.22 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cache-Control: max-age=0 Referer: http://jmeterbook.aws.af.cm/login/auth Accept-Encoding: gzip,deflate,sdch Host: jmeterbook.aws.af.cm



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.