Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » JMeter RAP/LoadTesting on RAP 1.5.0 Problem(more than one ${request_counter} parameter in request)
JMeter RAP/LoadTesting on RAP 1.5.0 Problem [message #1018307] Wed, 13 March 2013 15:39 Go to next message
Marcus Kalthoff is currently offline Marcus KalthoffFriend
Messages: 5
Registered: October 2011
Junior Member
Hello,

I tried to use jmeter according to http://wiki.eclipse.org/RAP/LoadTesting
. When I replay, after some correct repsones, I get "Multiple browser-instances" responses. What seems strange to me, is that the ${request_counter} placeholder occurs more then once. For example

?nocache=${request_counter}363${request_counter}796430${request_counter}3
?nocache=${request_counter}363${request_counter}79648529
?nocache=${request_counter}363${request_counter}796492${request_counter}6
?nocache=${request_counter}363${request_counter}79650${request_counter}85

Does anybody have an idea, what I am doing wrong?

Regards
Marcus

[Updated on: Wed, 13 March 2013 15:39]

Report message to a moderator

Re: JMeter RAP/LoadTesting on RAP 1.5.0 Problem [message #1018462 is a reply to message #1018307] Wed, 13 March 2013 21:40 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

I'm not sure about the advanced pattern replacement logic that is
recommended in this FAQ, however it doesn't seem to work correctly in
your case. The request counter should never end up in the URL.

Actually, if you clear the session cookie or close your browser just
before you start recording the test session, the request counter will be
ok and there'll be no need for those variables.

HTH,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: JMeter RAP/LoadTesting on RAP 1.5.0 Problem [message #1018680 is a reply to message #1018307] Thu, 14 March 2013 09:57 Go to previous messageGo to next message
Marcus Kalthoff is currently offline Marcus KalthoffFriend
Messages: 5
Registered: October 2011
Junior Member
Thank You Ralf, it works better now without the request_counter variable. Alas, I get an error after 104 requests

Error 500: java.lang.ClassCastException: org.eclipse.swt.widgets.CoolItem incompatible with org.eclipse.swt.widgets.Control

that has never happened during normal use of the application. Is this a known bug?

Btw: do you have to exclude the images of kind

/generated/
/themes/images/

from the test?
Re: JMeter RAP/LoadTesting on RAP 1.5.0 Problem [message #1018693 is a reply to message #1018680] Thu, 14 March 2013 10:16 Go to previous messageGo to next message
Marcus Kalthoff is currently offline Marcus KalthoffFriend
Messages: 5
Registered: October 2011
Junior Member
The stacktrace on the server is

00000028 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Es wurde eine Ausnahme von einer der Servicemethoden des Servlets in der Anwendung [Smile] ausgelöst. Erstellte Ausnahme: [java.lang.ClassCastException: org.eclipse.swt.widgets.CoolItem incompatible with org.eclipse.swt.widgets.Control
at org.eclipse.swt.internal.widgets.shellkit.ShellLCA.setActiveControl(ShellLCA.java:240)
at org.eclipse.swt.internal.widgets.shellkit.ShellLCA.processActivate(ShellLCA.java:218)
at org.eclipse.swt.internal.widgets.shellkit.ShellLCA.readData(ShellLCA.java:94)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA$1.doVisit(DisplayLCA.java:113)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:35)
at org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:47)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readData(DisplayLCA.java:120)
at org.eclipse.rwt.internal.lifecycle.ReadData.execute(ReadData.java:26)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:158)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:235)
at org.eclipse.swt.widgets.Display.sleep(Display.java:1176)
at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2734)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
at de.cenit.ecliso.ui.workbench.internal.Application.start(Application.java:115)
at org.eclipse.rap.ui.internal.application.EntryPointApplicationWrapper.createUI(EntryPointApplicationWrapper.java:38)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
at java.lang.Thread.run(Thread.java:769)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)

[Updated on: Thu, 14 March 2013 10:17]

Report message to a moderator

Re: JMeter RAP/LoadTesting on RAP 1.5.0 Problem [message #1018704 is a reply to message #1018680] Thu, 14 March 2013 10:32 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

This is a clear indication that the recorded widget ids don't match the
widget ids at runtime. Either you recorded the session with a slightly
different version of your application that the one used for replay, or
you've hit a problem with the text size determination.

The text size determination is a subsystem that can consume an
additional id in the first session, leading to different ids for all
subsequent widgets. You should be able to workaround this by following
these steps:

* Start the server
* Click though the session once without actually recording
(this initializes the text size determination store on the server)
* Remove session cookie or restart browser
(this ensures that your request counter starts at 0)
* Start recording

We plan to make the widget ids more stable in future versions to avoid
this kind of problems.

You don't have to exclude images, but you can because they don#t affect
the UI session.

Regards,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Setting Focus on Table to enable UP/DOWN keys for selection
Next Topic:RAP Tree - moveable columns not working
Goto Forum:
  


Current Time: Fri Mar 29 11:05:07 GMT 2024

Powered by FUDForum. Page generated in 0.02524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top