PHPBuilder - Regression Testing With JMeter Page 2



RSS Twitter
Articles Tricks And Hacks

Regression Testing With JMeter - Page 2

by: AJ Bommarito
|
June 11, 2003

We don't have a web application handy, so we'll just make a pseudo application like so:

<?php
    
echo 'This is data that should show up on this page!';
?>
JMeter will test for the existence of the echoed text. In practice, the echoed text should be out of the database, or another choke point in your code. Now, we'll configure a "Response Assertion" element to ensure the text "This is data" is present on the page (Note that you can use regular expressions in the assertion elements for more advanced validation). If the data doesn't show up on our page, the assertion element will mark the test as a failure.
Response Assertion sample
Then, using the "Not" checkbox we'll add another Response Assertion to make sure that other text is not present, such as the common error strings "warning" and "Parse error".
Response Assertion sample 2
Now, we could start the test, but we'd have no way of knowing what the results of the test were. So we add another element to the HTTP Request: a "View Results in Table" Listener. The Listener group gives feedback on your requests. This particular Listener doesn't need any additional configuration.

« Previous Page
1
|
2
|
3
|
4
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
AJ Bommarito

Comment:



Comment:

(Maximum characters: 1200). You have characters left.