Exforsys.com
 
Home Tutorials JMeter
 

JMeter - Using JMeter Components

 

Using JMeter Components

We will create a Test Plan in order to demonstrate how we can configure the Test Plan to include functional testing capabilities. The modified Test Plan will include these scenarios:

 

Sponsored Links

 

1. Create Account—New Visitor creating an Account
2. Log in User—User logging in to an Account


Following these scenarios, we will simulate various entries and form submission as a request to a page is made, while checking the correct page response to these user entries. We will add assertions to the samples following these scenarios to verify the 'correctness' of a requested page. In this manner, we can see if the pages responded correctly to invalid data. For example, we would like to check that the page responded with the correct warning message when a user enters an invalid password, or whether a request returns the correct page.


First of all, we will create a series of test cases following the various user actions in each scenario. The test cases may be designed as follows:


CREATE ACCOUNT


 

Sponsored Links

 

With the exception of the Configuration elements, Listeners, and Assertions, which we will add later, our Test Plan will take the form that you see in the following screenshot:







 

 

Comments


Todd said:

Test Steps Data Expected
1 Go to Home page. "www.packtpub.com" target="_blank" rel="nofollow" Home page loads and renders with no page error
2 Click Your Account link (top right). User action 1. Your Account page loads and renders with no page error.
2. Logout link is not found.
3 No Password:
- Enter email address in Email text field.
- Click the Create Account and Continue button.
email=EMAIL 1. Your Account page resets with Warning message—
Please enter password.
2. Logout link not found.
4 Short Password:
- Enter email address in Email text field.
- Enter password in Password text field.
- Enter password in Confirm Password text field.
- Click Create Account and Continue button.
email=EMAIL
password=SHORT_PWD
confirm password=SHORT_PWD
1. Your Account page resets with Warning message—Your password must be 8 characters or longer.
2. Logout link is not found.
5 Unconfirmed Password:
- Enter email address in Email text field.
- Enter password in Password text field.
- Enter password in Confirm Password text field.
- Click Create Account and Continue button.
email=EMAIL
password=VALID_PWD
confirm password=INVALID_PWD
1. Your Account page
resets with Warning message Password does not match.
2. Logout link is not found.
6 Register Valid User:
- Enter email address in Email text field.
- Enter password in Password text field.
- Enter password in Confirm Password text field.
- Click Create Account and Continue button.
email=EMAIL
password=VALID_PWD
confirm password=VALID_PWD
1. Logout link is found.
2. Page redirects to User Account page.
3. Message found: You are registered as: e:.
7 Click Logout link. User action 1. Logout link is NOT found.
     
     
LOGIN USER    
     
Test Steps Data Expected
1 Click Home page. User action 1. WELCOME tab is active.
2 Log in Wrong Password:
- Enter email in Email text field
- Enter password at Password text field.
- Click Login button.
email=EMAIL
password=INVALID_PWD
1. Logout link is NOT found.
2. Page refreshes.
3. Warning message—Sorry your password was incorrect appears.
3 Log in Non-Exist Account:
- Enter email in Email text field.
- Enter password in Password text field.
- Click Login button.
email=INVALID_EMAIL
password=INVALID_PWD
1. Logout link is NOT found.
2. Page refreshes.
3. Warning message—Sorry, this does not match any existing accounts.
Please check your details and try again or open a new account below appears.
4 Log in Valid Account:
- Enter email in Email text field.
- Enter password in Password text field.
- Click Login-button.
email=EMAIL
password=VALID_PWD
1. Logout link is found.
2. Page reloads.
3. Login successful message—You are logged in as: appears.
5 Click Logout link. User action 1. Logout link is NOT found.
  hi, I am new to Jmeter. My company has decided to use Jmeter for Load testing. but I am not sure how to reocrd and play back a script. I would like to follow the test case you have "which will work for my application" please help...
April 7, 2010, 9:39 am

kiran said:

  Let me know what kind of load test you do. Does your application used HTTP?
June 3, 2010, 5:29 am

Deepthi said:

  Can you please tell me step by step as how to use jmeter. Its like testing a website which involves submitting forms and mailer in HTML. I am very new to jmeter. Pls help
July 30, 2010, 7:29 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

 
 


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2010 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape