jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From llow...@oreillyauto.com
Subject Re: Setup JMeter to test against a web server
Date Thu, 06 Sep 2012 21:52:22 GMT
Comments inline

Ruiyuan Jiang <RJiang@fnpc.com> wrote on 09/06/2012 04:40:48 PM:

> From: Ruiyuan Jiang <RJiang@fnpc.com>
> To: "user@jmeter.apache.org" <user@jmeter.apache.org>
> Date: 09/06/2012 04:48 PM
> Subject: Setup JMeter to test against a web server
>
> Hi,
>
> I am new to the JMeter. I downloaded the latest version of JMeter. I
> installed it onto my desktop PC. I ran "jmeter.bat" and configured
> it by creating a "Test Plan" name and enabled "Run Thread Groups
> consecutively" and "Functional Test Mode". Then I added a "Thread
> Group" for the Test Plan.
> Under the Thread Group, I only added a "HTTP Request Defaults" under
> "Config Element". In the "HTTP Request Defaults" GUI, I added the
> web server name under "Web Server" section and the port number "80"
> with "Http Client4" implementation under "HTTP Request" and enabled
> "Retrieve All Embedded Resources from HTML Files".

You never included an "HTTP Sampler" or any other sort of sampler.

>
> Above is what I did as a basic configuration for now, when I hit
> "START" button, it came back real quick. I saw messages in the
jmeter.log:
>
> 2012/09/06 17:31:50 INFO  - jmeter.util.JMeterUtils: Setting Locale to
en_US
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: Loading user properties
> from: C:\apache-jmeter-2.7\bin\user.properties
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: Loading system properties
> from: C:\apache-jmeter-2.7\bin\system.properties
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: Copyright (c) 1998-2012
> The Apache Software Foundation
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: Version 2.7 r1342410
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: java.version=1.6.0_35
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot
> (TM) Client VM
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: os.name=Windows XP
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: os.arch=x86
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: os.version=5.1
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: file.encoding=Cp1252
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: Default Locale=English
> (United States)
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: JMeter  Locale=English
> (United States)
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter:
JMeterHome=C:\apache-jmeter-2.7
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: user.dir  =C:\apache-
> jmeter-2.7\bin
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: PWD       =C:\apache-
> jmeter-2.7\bin
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: IP: 10.95.15.242 Name:
> myPC FullName: myPC.ds.corp.com
> 2012/09/06 17:31:50 INFO  - jmeter.JMeter: Loaded icon properties
> from org/apache/jmeter/images/icon.properties
> 2012/09/06 17:31:51 INFO  - jmeter.engine.util.CompoundVariable:
> Note: Function class names must contain the string: '.functions.'
> 2012/09/06 17:31:51 INFO  - jmeter.engine.util.CompoundVariable:
> Note: Function class names must not contain the string: '.gui.'
> 2012/09/06 17:31:51 INFO  - jmeter.gui.action.LookAndFeelCommand:
> Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal,
> CrossPlatform]
> 2012/09/06 17:31:51 INFO  - jmeter.util.BSFTestElement: Registering
> JMeter version of JavaScript engine as work-round for BSF-22
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className
> property for htmlParser, using default
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for
> application/xhtml+xml is
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml
is
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/
> vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
> 2012/09/06 17:31:51 INFO  -
> jmeter.protocol.http.sampler.HTTPSamplerBase: Reuse SSL session
> context on subsequent iterations: true
> 2012/09/06 17:31:51 INFO  - jmeter.gui.util.MenuFactory: Skipping
> org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
> 2012/09/06 17:31:52 INFO  - jmeter.samplers.SampleResult: Note:
> Sample TimeStamps are START times
> 2012/09/06 17:31:52 INFO  - jmeter.samplers.SampleResult:
> sampleresult.default.encoding is set to ISO-8859-1
> 2012/09/06 17:31:52 INFO  - jmeter.samplers.SampleResult:
> sampleresult.useNanoTime=true
> 2012/09/06 17:31:52 INFO  - jmeter.samplers.SampleResult:
> sampleresult.nanoThreadSleep=5000
> 2012/09/06 17:31:55 INFO  - jmeter.services.FileServer: Default
> base='C:\apache-jmeter-2.7\bin'
> 2012/09/06 17:31:55 INFO  - jmeter.gui.action.Load: Loading file: C:
> \apache-jmeter-2.7\bin\fashionnetdev.jmx
> 2012/09/06 17:31:55 INFO  - jmeter.services.FileServer: Set new
> base='C:\apache-jmeter-2.7\bin'
> 2012/09/06 17:31:56 INFO  - jmeter.save.SaveService: Testplan (JMX)
> version: 2.2. Testlog (JTL) version: 2.2
> 2012/09/06 17:31:56 INFO  - jmeter.save.SaveService: Using
> SaveService properties file encoding UTF-8
> 2012/09/06 17:31:56 INFO  - jmeter.save.SaveService: Using
> SaveService properties file version 1332608
> 2012/09/06 17:31:56 INFO  - jmeter.save.SaveService: Using
> SaveService properties version 2.3
> 2012/09/06 17:31:56 INFO  - jmeter.save.SaveService: All converter
> versions present and correct
> 2012/09/06 17:31:56 INFO  - jmeter.services.FileServer: Set new
> base='C:\apache-jmeter-2.7\bin'
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine:
> Listeners will be started after enabling running version
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine: To
> revert to the earlier behaviour, define
> jmeterengine.startlistenerslater=false
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine:
> Running the test!
> 2012/09/06 17:32:07 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,*local*)
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine:
> Starting 1 threads for group Thread Group.
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine:
> Thread will continue on error
> 2012/09/06 17:32:07 INFO  - jmeter.threads.JMeterThread:
> jmeterthread.startearlier=true (see jmeter.properties)
> 2012/09/06 17:32:07 INFO  - jmeter.threads.JMeterThread: Running
> PostProcessors in forward order
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine: All
> threads have been started
> 2012/09/06 17:32:07 INFO  - jmeter.threads.JMeterThread: Thread
> started: Thread Group 1-1
> 2012/09/06 17:32:07 INFO  - jmeter.threads.JMeterThread: Thread
> finished: Thread Group 1-1
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine:
> Ending thread Thread Group 1-1
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listeners of end of test
> 2012/09/06 17:32:07 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(false,*local*)
> 2012/09/06 17:32:07 INFO  - jmeter.engine.StandardJMeterEngine: Test
> has ended on host null
>
> From the last log, someone on the internet suggested to put the web
> site's IP and name in the hosts file which I did on my PC and the
> result is the same. I watched the network packets on my PC when I
> did "START" and I don't see any network traffic sent to the web
> server which is on a HPUX server from my PC. Does JMeter support
> test across the network? Thanks.
>

Yes, jmeter supports tests across the network. It'd be kinda useless
otherwise.

You never told it to actually send any requests to your webserver.

Might want to read through the manual:
http://jmeter.apache.org/usermanual/index.html

> Ryan Jiang
>
>
>

Lee

This communication and any attachments are confidential, protected by Communications Privacy
Act 18 USCS  2510, solely for the use of the intended recipient, and may contain legally
privileged material. If you are not the intended recipient, please return or destroy it immediately.
Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message