QSpiders - Presentation JMeter
-
Upload
qspiders-software-testing-training-institute -
Category
Education
-
view
87 -
download
2
Transcript of QSpiders - Presentation JMeter
![Page 1: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/1.jpg)
Introduction
Definition :Jeer is an Apache Jakarta project that can be used as a
load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web
applications.Why ? :
JMeter can be used as a unit test tool for JDBC database connection, FTP, LDAP, WebServices,J MS, HTTP and
generic TCP connections. JMeter can also be configured as a monitor, although this is typically considered an ad-
hoc solution in lieu of advanced monitoring solutions.
![Page 2: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/2.jpg)
Scorecard Ease of use - NO Record and Playback - YES Manual scripting – YES Command Line – YES Script Maintenance - NO User Community - Established
![Page 3: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/3.jpg)
JMeter100% Java desktop applicationFor Web and FTP, Java, SOAP/XML-RPC, JDBC applications
Advantages:Open SourceThe distributed testingVarious target systemsExtensibility: Pluggable samplers allow unlimited testing capabilities
Drawbacks:Chart representation quite confuseTerminology not very clearNecessary to start remote machine one by oneRemote machines must be declared in a property file before starting application
![Page 4: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/4.jpg)
Proxy Server
Record Http requests run by users.
Stick to the exact http request a lambda user.
Record only what is meaningful.
To be organized. Warning
Doesn’t record https.
Role
![Page 5: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/5.jpg)
Organization
Determine
How many users, will concurrently run the tests
How long between 2 launch of the test
How many times the tests will be run.
Thread groups Loop controllersDetermine in a thread group
How long between 2 launch of the same sampler
How many times the set of tests will be run.
![Page 6: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/6.jpg)
OrganizationThread groups Loop controllers
![Page 7: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/7.jpg)
OrganizationThroughput Controller
Make variable pause during the test run to simulate better a client behavior.
Because the thread group doesn’t take in count the server, can take several seconds before responding.
![Page 8: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/8.jpg)
GenericityHttp default Request
Allows you to put a default ip port and path for all the Http Request contained in the scope
Gives you an easy way to run your test from a device to an other one just by changing the default address.
![Page 9: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/9.jpg)
GenericityRegular Expression extractor
If the data has to be used several times along the testLike a session ID for instance.
![Page 10: QSpiders - Presentation JMeter](https://reader033.fdocumento.com/reader033/viewer/2022042510/58719b3e1a28ab044e8b5b13/html5/thumbnails/10.jpg)
AssertionsResponse assertion
To match a pattern in the response code The response code for instance.
Xpath assertion Using the DOM of the response to check if an element appear.
A research result for instance.Size assertion
To know if the size of the response received match with the size expected
To verify if the file received is the good one.