Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure...
-
Upload
loreen-matthews -
Category
Documents
-
view
257 -
download
1
Transcript of Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure...
![Page 1: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/1.jpg)
Apache JMeter
By Lamiya Qasim
![Page 2: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/2.jpg)
Apache JMeter• Tool for load test functional behavior and measure
performance.
• Questions:
• Does JMeter offers support for each step of load test process?
• Can we create our own elements?
• How we could enhance JMeter?
![Page 3: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/3.jpg)
Load test Process
• System Analysis
• Creating Virtual User Scripts
• Defining User Behavior
• Creating a Load Test Scenario
• Running Load Test Scenario
• Analyzing Results
![Page 4: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/4.jpg)
System Analysis
• Enable customers to convert their goals and requirements into a successful test script.
• you can:
-Create your own test Script consistently
- Careful UI design allows you to create your own test Easily
![Page 5: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/5.jpg)
Creating Virtual User Scripts
- Tester must emulates the real user by driving the real application as a client. - JMeter support this by adding thread group element, this tell JMeter:- the number of users you want to simulate, - how often the users send requests - how many requests they send.- What request (FTP Request, HTTP Request, and JDBC request). - validate that your application is returning the results you expect.
![Page 6: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/6.jpg)
Defining User Behavior
• JMeter allows you to simulate human actions more closely
- By controlling how long JMeter engine delays between each sample
- So, you can define the way that the script runs
![Page 7: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/7.jpg)
Creating a Load Test Scenario
JMeter offers support for this step by:
• Assign scripts to individual virtual user
• Tester can define any number of virtual users needed to run the tests
• Allows user to simulate concurrent connections to server application.By enables user to create multiple threads ( virtual user) executing different test plan.
• Increasing the number of virtual users inIncreasing the number of virtual users in a controlled a controlled fashion.fashion.
![Page 8: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/8.jpg)
Running Load Test Scenario
• With JMeter you can run your tests in a very easy way
![Page 9: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/9.jpg)
Analyzing Results
JMeter offers support for this step by:
• displaying the data visually (Graph Results) .
• save data in file.
• allows user to see one multiple views of the data
• displays the response from the server.
• shows the URL of each sample taken .
• listeners will show different sets of data.
• it can send email based on test results.
![Page 10: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/10.jpg)
Analyzing Results
• Showing detailed performance results that can be easily understood and analyzed to quickly pinpoint the root cause of problems.
![Page 11: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/11.jpg)
Extending JMeter
• Creating your own Timer.
• Creating your own SampleListener (such as visualizer or reporter).
• Creating your own Config Element.
• Creating your own logic SamplerController.
• Creating your own test sample SamplerController.
• Making your custom elements play nice as a JMeter UI component .
• Making your custom elements saveable and loadable from within JMeter.
![Page 12: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/12.jpg)
Create your own Timer Element
• By default, a JMeter thread sends requests without pausing
between each request. • JMeter could overwhelm the server by making too many
requests in a very short amount of time.
• Timer will cause JMeter to delay a certain amount of time between each request that a thread makes.
![Page 13: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/13.jpg)
Create your own Timer Element
• Timers provide a framework for delaying in between
samples. And contain these methods: - delay() wait for a Timer specific amount of time
JMeter calls this function prior to every sample. The Timer should wait for a period of time and then return.
-set() prepare for sampling
JMeter calls this function prior to the begining of a test
session. The timer should initialize itself, read any values from its UI and prepare for operation.
![Page 14: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/14.jpg)
How we could Enhance JMeter?
- Allows user to modify a Load Test Scenario while JMeter runs.
for Example, add new test sample , new threads,etc.
- Start and stop thread groups individually.
- Add new Functions in the GUI like Cut, Copy, Paste and Insert for manipulating test elements.
- Includes all documentation for all the elements in it’s application, rather than searching the web site.
![Page 15: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/15.jpg)
How we could Enhance JMeter? cont
- generate report act as accuracy report to verify the actual values in the database.
- allow users to move different test elements around the test configuration tree easily.
- adding indicator to indicate, if the user could run the a test or not for some reason.
- Maintaining the test by build reusable tests to use throughout the application’s lifecycle.
![Page 16: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/16.jpg)
Conclusion
• JMeter offers support for each segment of the load test process.
• You can create your own different elements.
• But still JMeter needs some kind of enhancements.
![Page 17: Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.](https://reader036.fdocuments.net/reader036/viewer/2022082404/56649f2f5503460f94c494bd/html5/thumbnails/17.jpg)
Where To Find JMeter
• http://jakarta.apache.org