Gravando testes com o proxy HTTP
Pare de criar requisições manualmente. Use o gravador de scripts de teste HTTP(S) do JMeter para capturar o tráfego do navegador e transformar automaticamente ações reais dos usuários em um plano de teste.
Gravando testes com o proxy HTTP é uma aula grátis de Load Testing & Performance Benchmarking (JMeter & k6) no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Load Testing & Performance Benchmarking (JMeter & k6), e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Load Testing & Performance Benchmarking (JMeter & k6) inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
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 RecorderChoosing 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.
Perguntas Frequentes
A aula “Gravando testes com o proxy HTTP” é grátis?
Sim — o texto completo de “Gravando testes com o proxy HTTP” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Load Testing & Performance Benchmarking (JMeter & k6), atualize para CoddyKit PRO. O curso de Load Testing & Performance Benchmarking (JMeter & k6) inclui 4 aulas no total.
O que vou aprender em “Gravando testes com o proxy HTTP”?
Pare de criar requisições manualmente. Use o gravador de scripts de teste HTTP(S) do JMeter para capturar o tráfego do navegador e transformar automaticamente ações reais dos usuários em um plano de… Você pratica Load Testing & Performance Benchmarking (JMeter & k6) com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar Load Testing & Performance Benchmarking (JMeter & k6)?
Nenhuma experiência prévia é necessária. Load Testing & Performance Benchmarking (JMeter & k6) no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.
Quanto tempo leva a aula “Gravando testes com o proxy HTTP”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de Load Testing & Performance Benchmarking (JMeter & k6)?
Sim. Cada aula de Load Testing & Performance Benchmarking (JMeter & k6) inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- Instalação e interface do JMeter
- Criação de um teste HTTP básico
- Visualização de resultados com ouvintes
- Gravando testes com o proxy HTTP