apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.23k stars 2.08k forks source link

User is asked to install ApacheJMeterTemporaryRootCA.crt certificate every time while it's already installed. #3422

Closed asfimport closed 10 years ago

asfimport commented 10 years ago

Abhishek (Bug 56916): Unable to record the scenario using "HTTP(S) Test Script Recorder" as it ask to install ApacheJMeterTemporaryRootCA.crt certificate every time while it's already installed.

Real problem occurs when i clicks on 'start' button under "HTTP(S) Test Script Recorder" section under workbench and try to capture scenario by performing various steps in the in the browser (after completing proxy setting), no step is get recorded under pre-specified 'logic controller'. e.g. i follow below mentioned steps:

  1. Open 'https://www.gmail.com' in browser.
  2. Provide valid 'email' and 'password'
  3. Click on 'sign in' button.

Now when i see the section of logic controller, there is no steps is getting recorded.


(In reply to Abhishek from comment 15)

Does the browser show the correct pages? In which case, the browser proxy has not been set up correctly, so it is not routing requests via the JMeter Recorder.

If the browser does not appear to work, then please check for any errors in the jmeter.log file.

Created attachment Jmeter Log's screen shot for scenario.PNG: Jmeter log file screenshot

<img src='https://apache.github.io/jmeter-bugzilla-attachments/16/56916/31965/Jmeter%20Log's%20%20screen%20shot%20for%20scenario.PNG' alt='Jmeter log file screenshot'>

Severity: critical OS: All Resolution: WORKSFORME

asfimport commented 10 years ago

Abhishek (migrated from Bugzilla): i have earlier communicated regarding this issue under

https://github.com/apache/jmeter/issues/3307

For the last comment i have received (which i have added in the description already), i want to say i had set proxy settings properly.

as i selected 'manual proxy configuration' in the 'settings' sub section of 'network' tab of firefox's 'Options' section. and fill same port no. e.g. 1234 in both places.

but i have a doubt, as after setting proxy, when reload the page, server not found message generally displayed. but in this case it's not happening.

is there any possibility for such a problem due to network setting/ firewalls set by the network administrator of the organization???

asfimport commented 10 years ago

Abhishek (migrated from Bugzilla): Created attachment Jmeter.log.txt: latest log file

Jmeter.log.txt ```` 2014/09/05 14:05:17 INFO - jmeter.util.JMeterUtils: Setting Locale to en_IN 2014/09/05 14:05:18 INFO - jmeter.JMeter: Loading user properties from: C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\user.properties 2014/09/05 14:05:18 INFO - jmeter.JMeter: Loading system properties from: C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\system.properties 2014/09/05 14:05:18 INFO - jmeter.JMeter: Copyright (c) 1998-2014 The Apache Software Foundation 2014/09/05 14:05:18 INFO - jmeter.JMeter: Version 2.11 r1554548 2014/09/05 14:05:18 INFO - jmeter.JMeter: java.version=1.7.0_45 2014/09/05 14:05:18 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2014/09/05 14:05:18 INFO - jmeter.JMeter: os.name=Windows 7 2014/09/05 14:05:18 INFO - jmeter.JMeter: os.arch=amd64 2014/09/05 14:05:18 INFO - jmeter.JMeter: os.version=6.1 2014/09/05 14:05:18 INFO - jmeter.JMeter: file.encoding=Cp1252 2014/09/05 14:05:18 INFO - jmeter.JMeter: Default Locale=English (India) 2014/09/05 14:05:18 INFO - jmeter.JMeter: JMeter Locale=English (India) 2014/09/05 14:05:18 INFO - jmeter.JMeter: JMeterHome=C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11 2014/09/05 14:05:18 INFO - jmeter.JMeter: user.dir =C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin 2014/09/05 14:05:18 INFO - jmeter.JMeter: PWD =C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin 2014/09/05 14:05:18 INFO - jmeter.JMeter: IP: 192.168.0.114 Name: Mini-PC6 FullName: Mini-PC6 2014/09/05 14:05:18 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2014/09/05 14:05:19 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2014/09/05 14:05:19 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2014/09/05 14:05:19 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform] 2014/09/05 14:05:20 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 2014/09/05 14:05:21 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 2014/09/05 14:05:21 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2014/09/05 14:05:21 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2014/09/05 14:05:21 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2014/09/05 14:05:21 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2014/09/05 14:05:21 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2014/09/05 14:05:21 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui 2014/09/05 14:05:21 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 2014/09/05 14:05:22 INFO - jorphan.exec.KeyToolUtils: keytool found at 'keytool' 2014/09/05 14:05:22 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\proxyserver.jks 2014/09/05 14:05:23 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 2014/09/05 14:05:23 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2014/09/05 14:05:23 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 2014/09/05 14:05:23 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 2014/09/05 14:05:47 INFO - jmeter.services.FileServer: Default base='C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin' 2014/09/05 14:05:47 INFO - jmeter.gui.action.Load: Loading file: C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\Gmail Login.jmx 2014/09/05 14:05:47 INFO - jmeter.services.FileServer: Set new base='C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin' 2014/09/05 14:05:47 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2014/09/05 14:05:47 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 2014/09/05 14:05:47 INFO - jmeter.save.SaveService: Using SaveService properties version 2.6 2014/09/05 14:05:47 INFO - jmeter.save.SaveService: Using SaveService properties file version 1554411 2014/09/05 14:05:47 INFO - jmeter.save.SaveService: All converter versions present and correct 2014/09/05 14:05:48 INFO - jmeter.services.FileServer: Set new base='C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin' 2014/09/05 14:06:15 WARN - jmeter.protocol.http.proxy.ProxyControl: Problem reading key store: NotAfter: Tue Sep 02 15:59:26 IST 2014 2014/09/05 14:06:15 INFO - jmeter.protocol.http.proxy.ProxyControl: Creating Proxy CA in C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\proxyserver.jks 2014/09/05 14:06:21 INFO - jmeter.protocol.http.proxy.ProxyControl: Created keystore in C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\proxyserver.jks 2014/09/05 14:06:21 INFO - jmeter.protocol.http.proxy.Daemon: Creating Daemon Socket on port: 8080 2014/09/05 14:06:21 INFO - jmeter.protocol.http.proxy.Daemon: Test Script Recorder up and running! 2014/09/05 14:08:44 INFO - jmeter.protocol.http.proxy.Daemon: HTTP(S) Test Script Recorder stopped 2014/09/05 14:08:53 INFO - jmeter.protocol.http.proxy.ProxyControl: Valid alias found for :root_ca: 2014/09/05 14:08:53 INFO - jmeter.protocol.http.proxy.ProxyControl: Valid alias found for :intermediate_ca: 2014/09/05 14:08:53 INFO - jmeter.protocol.http.proxy.Daemon: Creating Daemon Socket on port: 8080 2014/09/05 14:08:53 INFO - jmeter.protocol.http.proxy.Daemon: Test Script Recorder up and running! 2014/09/05 14:09:24 INFO - jmeter.protocol.http.proxy.Daemon: HTTP(S) Test Script Recorder stopped 2014/09/05 14:09:52 INFO - jmeter.protocol.http.proxy.ProxyControl: Valid alias found for :root_ca: 2014/09/05 14:09:52 INFO - jmeter.protocol.http.proxy.ProxyControl: Valid alias found for :intermediate_ca: 2014/09/05 14:09:52 INFO - jmeter.protocol.http.proxy.ProxyControl: Creating entry www.gmail.com in C:\Abhi\apache-jmeter-2.11\apache-jmeter-2.11\bin\proxyserver.jks 2014/09/05 14:09:55 INFO - jmeter.protocol.http.proxy.Daemon: Creating Daemon Socket on port: 8080 2014/09/05 14:09:55 INFO - jmeter.protocol.http.proxy.Daemon: Test Script Recorder up and running! 2014/09/05 14:10:32 INFO - jmeter.protocol.http.proxy.Daemon: HTTP(S) Test Script Recorder stopped ````
asfimport commented 10 years ago

@pmouawad (migrated from Bugzilla): Hello, Log files do not show anything abnormal. The stopped means you clicked stop on Test Script Recorder. The popup you get each time you click start is regular as JMeter cannot check if you already installed or not the ROOT CA. Maybe we will clarify message.

Also it works for me. Please ask this on user mailing list.