Jmeter - automatic recording script

Table of contents

1. Jmeter configuration

1.1 Add a new thread group

1.2 Add HTTP proxy in Jmeter

1.3 Configure HTTP proxy server

2. Record script

2.1 Configure local proxy

2.2 Visit the page for operation

2.3 Script processing

1. Jmeter configuration

1.1 Add a new thread group

1.2 Add HTTP proxy in Jmeter

1.3 Configure HTTP proxy server

  • modify port

  • Modify Target Cintroller (target controller)

  • Modify Grouping

  • Editing Inclusions and Exclusions in Recordings

    • Fill in .*(123456).* in "URL Patterns to include" to filter requests that do not contain 1 23456 in the request address

    • Fill in (?i).*\.(bmp|css|js|gif|ico|jpe?g|png|swf|woff|woff2) in "URL Patterns to exclude" to filter js, pictures, html and other resource file requests

  • Start the HTTP proxy

2. Record script

2.1 Configure local proxy

2.2 Visit the page for operation

2.3 Script processing

At this time, when we open Jmeter, we can see that JMeter has recorded the requests of the entire process. We need to do some deletion operations on these requests, keep what we need, and finally make an assertion or parameterization

The following are supporting learning materials. For friends who do [software testing], it should be the most comprehensive and complete preparation warehouse. This warehouse also accompanied me through the most difficult journey. I hope it can help you too!

Software testing interview applet

The software test question bank maxed out by millions of people! ! ! Who is who knows! ! ! The most comprehensive quiz mini program on the whole network, you can use your mobile phone to do the quizzes, on the subway or on the bus, roll it up!

The following interview question sections are covered:

1. Basic theory of software testing, 2. web, app, interface function testing, 3. network, 4. database, 5. linux

6. web, app, interface automation, 7. performance testing, 8. programming basics, 9. hr interview questions, 10. open test questions, 11. security testing, 12. computer basics

Information acquisition method:

Guess you like

Origin blog.csdn.net/IT_LanTian/article/details/132299417