Jmeter 2.10 HTTP recorder throws keytool exception

后端 未结 4 1642
鱼传尺愫
鱼传尺愫 2020-12-20 20:12

I am trying to investigate jmeter and have quickly run into some problems. I am attempting to follow the tutorial at http://jmeter.apache.org/usermanual/jmeter_proxy_step_by

相关标签:
4条回答
  • 2020-12-20 20:48

    Try running JMeter from a command prompt with admin privs, works for me !

    0 讨论(0)
  • 2020-12-20 20:55

    Since the version JMeter 2.10, you must configure the var PATH in Windows.

    The problem become from new PROXY HTTPS.

    To avoid configuration of JMeter and JDK from Oracle, I make a package for installation.

    • http://sourceforge.net/projects/jmeterforwindows/

    A new package was created for JMeter 2.11

    0 讨论(0)
  • 2020-12-20 21:01

    Since JMeter 2.10, recording has been improved to better handle embedded resources and creation of certificates on the fly. This makes recording complex HTTPS websites much easier.

    To add these features, JMeter now uses keytool utility (available in JDK) so you need to ensure your configuration is correct, read this wiki page before starting:

    • https://wiki.apache.org/jmeter/TestRecording210

    Also ensure you read:

    • http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder

    Note it is much better to use a JDK7. (jdk7 should be installed on the system)

    If you don't want to read the long answer (which you should :-) ), then: Ensure you have JAVA_HOME and PATH set correctly, to do it: Open jmeter.bat and add this (at the top after launch.exe command):

    SET JAVA_HOME=Path to JDK

    SET PATH=%PATH%;%JAVA_HOME%\bin

    Restart JMeter and retest.

    If it doesn't work, you can workaround by defining the following JMeter property in user.properties:

    proxy.cert.alias=anything

    If you're looking to learn jmeter correctly, this book will help you.

    0 讨论(0)
  • 2020-12-20 21:04

    Also I would recommend you to consider alternatives in automatic script writing. Actually there are some ways of .jmx scripts writing:

    1. using proxy as described in the tutorial you've given

    2. using badBoy tool .

      http://www.badboy.com.au/ http://www.badboysoftware.biz/docs/ http://www.youtube.com/watch?v=OX9NbYuE07I

      benefits: easy record, easy export to jmeter.

    3. using blazemeter chrome extenstion:

      http://community.blazemeter.com/knowledgebase/articles/231479-chrome-extension

      benefits: You can export the script written to jmeter and/or to cloud as well and run it on the cloud.

      As soon as you try these approaches probably you'll find out what you've missed.

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