Hello, I have tested our Jetspeed application with JMeter - using a login page and then hitting a page with our portlets, changing the CGI parameters for different functionality.
I use the Http Cookie Manager and it seems to work for me. I am attaching a sanitized, small version of our testplan which I think has the important parts of it. Perhaps it works for me because of the way our app is structured. At any rate, I hope it helps. Pat "Luta, Raphael (VUN)" wrote: > De : Ching Chen [mailto:[EMAIL PROTECTED]] > > > > Hi, > > > > I know this is a JMeter question, but I thought maybe some of > > you have used > > it to test your Jetspeed application, and so may be able to help me. > > > > Has anyone successfully tested a Jetspeed application using JMeter? > > I am trying to benchmark my web server using JMeter. I > > created a test plan > > in JMeter where it simulates a normal user logging in to the Jetspeed > > application, and then just navigate through different > > portlets afterwards. > > > > The problem begins when after the test plan successfully logs > > in to the > > application, Jetspeed returns the application home page for > > all subsequent > > requests by the JMeter test plan. It seems that JMeter HTTP > > cookie manager > > is not handling any cookies at all. > > > > Has anyone had this problem? Or does anyone know how I can > > fix this problem? > > > > Strange, I'm pretty sure JMeter has a CookieJar implementation to > store cookies but I have not checked it out recently. > In any case, if cookies are your issue, configure your web application > server (Tomcat or whatever else) to use URL rewriting to track sessions > instead of cookies. > > Jetspeed does not depend on any cookie by itself. > > -- > Rapha�l Luta - [EMAIL PROTECTED] > Jakarta Jetspeed - Enterprise Portal in Java > http://jakarta.apache.org/jetspeed/ > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
<?xml version="1.0" encoding="UTF-8"?> <node> <testelement class="org.apache.jmeter.testelement.TestPlan"> <testelement class="org.apache.jmeter.config.Arguments" name="TestPlan.user_defined_variables"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.config.gui.ArgumentsPanel</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.config.Arguments</property> <collection class="java.util.ArrayList" name="Arguments.arguments"/> <property xml:space="preserve" name="TestElement.name">Argument List</property> </testelement> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.control.gui.TestPlanGui</property> <collection class="java.util.LinkedList" name="TestPlan.thread_groups"/> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.testelement.TestPlan</property> <property xml:space="preserve" name="TestElement.name">Test Plan</property> <property xml:space="preserve" name="TestPlan.functional_mode">false</property> </testelement> <node> <testelement class="org.apache.jmeter.threads.ThreadGroup"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.threads.gui.ThreadGroupGui</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.threads.ThreadGroup</property> <testelement class="org.apache.jmeter.control.LoopController" name="ThreadGroup.main_controller"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.control.gui.LoopControlPanel</property> <property xml:space="preserve" name="LoopController.loops">2</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.control.LoopController</property> <property xml:space="preserve" name="TestElement.name">Loop Controller</property> <property xml:space="preserve" name="LoopController.continue_forever">false</property> </testelement> <property xml:space="preserve" name="TestElement.name">Thread Group</property> <property xml:space="preserve" name="ThreadGroup.num_threads">30</property> <property xml:space="preserve" name="ThreadGroup.ramp_time">0</property> </testelement> <node> <testelement class="org.apache.jmeter.control.GenericController"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.control.gui.LogicControllerGui</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.control.GenericController</property> <property xml:space="preserve" name="TestElement.name">Simple Controller</property> </testelement> <node> <testelement class="org.apache.jmeter.control.OnceOnlyController"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.control.gui.OnceOnlyControllerGui</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.control.OnceOnlyController</property> <property xml:space="preserve" name="TestElement.name">Once Only Controller</property> </testelement> <node> <testelement class="org.apache.jmeter.protocol.http.sampler.HTTPSampler"> <property xml:space="preserve" name="HTTPSampler.mimetype"/> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui</property> <property xml:space="preserve" name="HTTPSampler.path">/yourindex.jsp</property> <collection class="java.util.ArrayList" name="AbstractSampler.assertions"/> <property xml:space="preserve" name="HTTPSampler.FILE_FIELD"/> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.HTTPSampler</property> <property xml:space="preserve" name="HTTPSampler.method">POST</property> <property xml:space="preserve" name="TestElement.name">Login</property> <property xml:space="preserve" name="HTTPSampler.domain">yourhost.something.com</property> <property xml:space="preserve" name="HTTPSampler.use_keepalive">true</property> <property xml:space="preserve" name="HTTPSampler.protocol">http</property> <property xml:space="preserve" name="HTTPSampler.follow_redirects">true</property> <property xml:space="preserve" name="HTTPSampler.port">80</property> <testelement class="org.apache.jmeter.config.Arguments" name="HTTPsampler.Arguments"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.config.Arguments</property> <collection class="java.util.ArrayList" name="Arguments.arguments"> <testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument"> <property xml:space="preserve" name="Argument.value">something</property> <property xml:space="preserve" name="Argument.name">user</property> <property xml:space="preserve" name="HTTPArgument.always_encode">false</property> <property xml:space="preserve" name="HTTPArgument.encoded_name">user</property> <property xml:space="preserve" name="HTTPArgument.encoded_value">something</property> </testelement> <testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument"> <property xml:space="preserve" name="Argument.value">something</property> <property xml:space="preserve" name="Argument.name">password</property> <property xml:space="preserve" name="HTTPArgument.always_encode">false</property> <property xml:space="preserve" name="HTTPArgument.encoded_name">password</property> <property xml:space="preserve" name="HTTPArgument.encoded_value">something</property> </testelement> </collection> <property xml:space="preserve" name="TestElement.name">Argument List</property> </testelement> <property xml:space="preserve" name="HTTPSampler.FILE_NAME"/> </testelement> </node> </node> <node> <testelement class="org.apache.jmeter.protocol.http.control.CookieManager"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.protocol.http.gui.CookiePanel</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.protocol.http.control.CookieManager</property> <property xml:space="preserve" name="TestElement.name">HTTP Cookie Manager</property> <collection class="java.util.ArrayList" name="CookieManager.cookies"/> </testelement> </node> <node> <testelement class="org.apache.jmeter.protocol.http.sampler.HTTPSamplerFull"> <property xml:space="preserve" name="HTTPSampler.mimetype"/> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui</property> <property xml:space="preserve" name="HTTPSampler.path">/yourcontextpath</property> <collection class="java.util.ArrayList" name="AbstractSampler.assertions"/> <property xml:space="preserve" name="HTTPSampler.FILE_FIELD"/> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.HTTPSamplerFull</property> <property xml:space="preserve" name="HTTPSampler.method">GET</property> <property xml:space="preserve" name="TestElement.name">Welcome</property> <property xml:space="preserve" name="HTTPSampler.domain">your host</property> <property xml:space="preserve" name="HTTPSampler.use_keepalive">true</property> <property xml:space="preserve" name="HTTPSampler.protocol">http</property> <property xml:space="preserve" name="HTTPSampler.follow_redirects">true</property> <property xml:space="preserve" name="HTTPSampler.port">80</property> <testelement class="org.apache.jmeter.config.Arguments" name="HTTPsampler.Arguments"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.config.Arguments</property> <collection class="java.util.ArrayList" name="Arguments.arguments"> <testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument"> <property xml:space="preserve" name="Argument.value">yourvalue</property> <property xml:space="preserve" name="Argument.name">yourcgiparam</property> <property xml:space="preserve" name="HTTPArgument.always_encode">false</property> <property xml:space="preserve" name="HTTPArgument.encoded_name">yourcgiparam</property> <property xml:space="preserve" name="HTTPArgument.encoded_value">yourvalue</property> </testelement> </collection> <property xml:space="preserve" name="TestElement.name">Argument List</property> </testelement> <property xml:space="preserve" name="HTTPSampler.FILE_NAME"/> </testelement> </node> </node> <node> <testelement class="org.apache.jmeter.timers.UniformRandomTimer"> <property xml:space="preserve" name="TestElement.gui_class">org.apache.jmeter.timers.gui.UniformRandomTimerGui</property> <property xml:space="preserve" name="TestElement.test_class">org.apache.jmeter.timers.UniformRandomTimer</property> <property xml:space="preserve" name="TestElement.name">Uniform Random Timer</property> <property xml:space="preserve" name="RandomTimer.range">10000.0</property> <property xml:space="preserve" name="ConstantTimer.delay">500</property> </testelement> </node> </node> </node>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
