0Pricing
Load Testing & Performance Benchmarking (JMeter & k6) · บทเรียน

การบันทึกการทดสอบด้วยพร็อกซี HTTP

หยุดสร้างคำขอด้วยตนเอง ใช้ JMeter HTTP(S) Test Script Recorder เพื่อบันทึกทราฟฟิกจากเบราว์เซอร์และเปลี่ยนการกระทำจริงของผู้ใช้ให้เป็นแผนการทดสอบโดยอัตโนมัติ

การบันทึกการทดสอบด้วยพร็อกซี HTTP เป็นบทเรียน Load Testing & Performance Benchmarking (JMeter & k6) ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Load Testing & Performance Benchmarking (JMeter & k6) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Load Testing & Performance Benchmarking (JMeter & k6) มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Why Record Instead of Build?

Hand-building every request is slow and error-prone for a real app. JMeter can record your browser session and generate the requests for you.

The Test Script Recorder

The HTTP(S) Test Script Recorder sits as a proxy between your browser and the server, capturing every request that flows through it.

Adding the Recorder

Add the recorder by right-clicking the Test Plan — it lives under Non-Test Elements, not inside a Thread Group.

Test Plan > Add > Non-Test Elements > HTTP(S) Test Script Recorder

Choosing a Target Controller

Set a target controller so captured requests drop into a Recording Controller in your Thread Group, keeping everything organized.

Configuring the Proxy Port

The recorder listens on a port (default 8888). Point your browser's proxy at localhost:8888 so its traffic flows through JMeter.

Recording HTTPS Traffic

For HTTPS, JMeter generates a temporary root certificate. Install it in your browser so encrypted traffic can be decrypted and recorded.

Starting and Stopping

Click Start, walk through your user journey in the browser, then Stop. Each action becomes an HTTP Request sampler.

Excluding Noise with Filters

Browsers fetch images, CSS, and analytics you don't want to test. Add URL exclude patterns so static assets stay out of your recording.

.*\.(png|jpg|css|js|gif|ico)

Cleaning Up the Recording

After recording, tidy up: rename samplers meaningfully, drop duplicates, and group related requests into Transaction Controllers.

Parameterizing Recorded Values

Recordings capture hardcoded values like session IDs or usernames. Parameterize them with variables so the test works for many users, not just you.

Recording vs Manual

Recording is fastest for complex flows; manual building gives precise control. Most testers record first, then refine and parameterize by hand.

Quick Check

Quick check on what the recorder does and how to clean its output.

Recap

Recap: the Test Script Recorder proxies browser traffic into a Recording Controller. Set the proxy port, install the root CA for HTTPS, filter static assets, then clean up and parameterize.

คำถามที่พบบ่อย

บทเรียน “การบันทึกการทดสอบด้วยพร็อกซี HTTP” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “การบันทึกการทดสอบด้วยพร็อกซี HTTP” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Load Testing & Performance Benchmarking (JMeter & k6) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Load Testing & Performance Benchmarking (JMeter & k6) มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “การบันทึกการทดสอบด้วยพร็อกซี HTTP”

หยุดสร้างคำขอด้วยตนเอง ใช้ JMeter HTTP(S) Test Script Recorder เพื่อบันทึกทราฟฟิกจากเบราว์เซอร์และเปลี่ยนการกระทำจริงของผู้ใช้ให้เป็นแผนการทดสอบโดยอัตโนมัติ คุณปฏิบัติ Load Testing & Performance Benchmarking (JMeter & k6) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Load Testing & Performance Benchmarking (JMeter & k6) หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Load Testing & Performance Benchmarking (JMeter & k6) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน

บทเรียน “การบันทึกการทดสอบด้วยพร็อกซี HTTP” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Load Testing & Performance Benchmarking (JMeter & k6) นี้ได้ไหม

ได้ บทเรียน Load Testing & Performance Benchmarking (JMeter & k6) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. การติดตั้งและอินเทอร์เฟซของเจมีเตอร์
  2. การสร้างการทดสอบ HTTP พื้นฐาน
  3. การดูผลลัพธ์ด้วยตัวรับฟัง
  4. การบันทึกการทดสอบด้วยพร็อกซี HTTP
← กลับไปที่ Load Testing & Performance Benchmarking (JMeter & k6)