Elments Used on Jmeter

1,358 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,358
On SlideShare
0
From Embeds
0
Number of Embeds
148
Actions
Shares
0
Downloads
60
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Elments Used on Jmeter

  1. 1. 2INTRODUCTION TOJMETER
  2. 2. WHAT IS JMETER? JMeter was first developed byStefano Mazzocchi of the Apache Software Foundation, designed totest and measure the performance and functional behavior of client/server applications, such as web applications or FTP applications.
  3. 3. A TYPICAL TEST PLAN WILL CONSISTOF ONE OR MORE : Thread Group: Each thread group simulates a single user. Listeners: Provide access to the information gathered by JMeter about the test cases while JMeter runs. Since there are several listeners that come with JMeter it’s important to say that all of them save the same data, the only difference is in the way the data is presented on the screen. Sampler: Tell JMeter to send a request to a server. Logic Controllers: Determine the order in which samplers are processed.
  4. 4. To understand the effect of Logic Controllers on a test plan, consider thefollowing test tree: Test Plan  Thread Group  Once Only Controller  Login Request (an HTTP Request )  Load Search Page (HTTP Sampler)  Interleave Controller  Search "A" (HTTP Sampler)  Search "B" (HTTP Sampler)  HTTP default request (Configuration Element)  HTTP default request (Configuration Element)  Cookie Manager (Configuration Element) The first thing about this test is that the login request will be executed only the first time through. Subsequent iterations will skip it. This is due to the effects of the Once Only Controller .
  5. 5.  Timers: Allow JMeter to delay between each request that a thread makes. Assertions: Allow you to test that your application is returning the results you expect it to. Configuration Elements: A configuration element works closely with a Sampler. Although it does not send requests (except for HTTP Proxy Server ), it can add to or modify requests. Pre-processor Elements: A Pre-Processor executes some action prior to a Sampler Request being made. Post-Processor Elements: A Post-Processor executes some action after a Sampler Request has been madeA Post- Processor executes some action after a Sampler Request has been made.
  6. 6. Once JMeter runs, you will see twoelements, Test Plan and WorkBench
  7. 7. Test Plan sample consisting of more than oneThread Group and multiple elements in each Thread Group
  8. 8. Test Plan sample having a single Thread Group incorporating multiple elements
  9. 9. Thread Group sample with details is shown below
  10. 10. The Response Assertion element shown in the following figure predefines the pattern matching conditions
  11. 11. The Assertion Results element shown in following figure will capture these predefined patterns in the data or page response and display them for further analysis
  12. 12. Bibliography:http://jmeter.apache.org/usermanual/test_plan.html

×