Cannot capture jmeter traffic in fiddler

后端 未结 3 2221
野的像风
野的像风 2021-02-19 06:10

I created a JMeter recording. But when I start the Test, I don\'t see any request going in Fiddler. I changed the port number in Fiddler to 8080, that I am using in JMeter.

相关标签:
3条回答
  • 2021-02-19 06:53

    To record traffic from JMeter via Fiddler use the next setup Importent

    • I used JMeter 5.0
    • Recheck that your Fiddler listing port set to 8888

    UI Mode

    1. Create Thread Group --> HTTP Request
    2. Go to Advanced fill "Server Name or IP:" = 127.0.0.1 , "Port Number:" = 8888

    Non UI MODE

    1. Add to your command -H 127.0.0.1 for Proxy Host
    2. -P 8888 for Proxy port
    3. Example: C:\jmeter5.0\bin>jmeter -n -t C:\example.jmx -l C:\scriptresults.jtl -H 127.0.0.1 -P 8888
    0 讨论(0)
  • 2021-02-19 07:06

    First, change Fiddler's port back to 8888 as it was originally.

    Next, change JMeter's proxy settings to point at 127.0.0.1 on port 8888 as its proxy settings.

    Then, run your test.

    0 讨论(0)
  • 2021-02-19 07:12

    I would not suggest using fiddler as JMeter has its own recorder now.

    To record a series of requests you need to follow the below steps.

    1. Open JMeter
    2. Right-click on 'Test Plan' and navigate to 'Threads (Users)' under 'Add' menu and then choose 'Thread Group'
    3. Now, right-click on 'Thread Group' and navigate to 'Login Controller' under 'Add' menu and then choose 'Recording Controller'
    4. Now right-click on 'Test Plan' again then navigate to 'Non-Test Elements' under 'Add' menu and then click on 'HTTP(S) Test Script Recorder'
    5. Now without making any changes, click on the start button in the right section and then move to your browser.
    6. Now configure your browser to use the proxy Host: localhost Port: 8888 (You can change this if you have changed the same in JMeter but make sure both have same values)
    7. Now browse the internet as you normally do.

    The above procedure will enable you to record traffic without hassles. Remember, this will work for websites without HTTPS only.

    You can refer to this video in case you feel confused: https://youtu.be/zXHs5Ts6JBc

    0 讨论(0)
提交回复
热议问题