Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Any changes on how JMeter tests should be recorded ?
Any changes on how JMeter tests should be recorded ? [message #554775] Tue, 24 August 2010 11:48
Stefan Hansel is currently offline Stefan HanselFriend
Messages: 103
Registered: July 2009
Senior Member
<font size=2 face="sans-serif">Hi there, </font>
<br>
<br><font size=2 face="sans-serif">I'm currently struggling to write a
JMeter Stress Test for our current RAP UI. </font>
<br><font size=2 face="sans-serif">Part of the problems seems to be a progressbar.</font>
<br>
<br><font size=2 face="sans-serif">Of course I deleted all double calls
to UICallbackServiceHandler &nbsp;(as of this wiki page: </font><a href=http://wiki.eclipse.org/RAP/LoadTesting><font size=2 face="sans-serif">http://wiki.eclipse.org/RAP/LoadTesting</font></a><font size=2 face="sans-serif">)
and the test also passes the first progressbar.</font>
<br>
<br><font size=2 face="sans-serif">Now when it works, JMeter issues the
following commands/requests:</font>
<br>
<br><font size=2 face="sans-serif">#1 request (widgetSelected), response:
&nbsp; var w = wm.newWidget( &quot;w57&quot;, &quot;w58&quot;, true, &quot;org.eclipse.swt.widgets.ProgressBar&quot;
)</font>
<br><font size=2 face="sans-serif">#2 request (UICallBackServiceHandler),
response: org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstance().enableUICallBack(); </font>
<br><font size=2 face="sans-serif">#3 request (w1.cursorLocation.x=39&amp;w1.cursorLocation.y=362& amp;w1.focusControl=w54&amp;uiRoot=w1),
response: org.eclipse.swt.LabelUtil.setText( wm.findWidgetById( &quot;w55&quot;
), &quot;Anfrage wird bearbeitet.&quot; );var w = wm.findWidgetById( &quot;w57&quot;
);w.setVisibility( true );</font>
<br><font size=2 face="sans-serif">#4 request (UICallBackServiceHandler),
response: org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstance().enableUICallBack(); </font>
<br><font size=2 face="sans-serif">#5 request (w1.cursorLocation.x=39&amp;w1.cursorLocation.y=362& amp;w1.focusControl=w54&amp;uiRoot=w1),
response: var w = wm.findWidgetById( &quot;w57&quot; );w.setVisibility(
false );</font>
<br><font size=2 face="sans-serif">#6 request (UICallBackServiceHandler),
response: org.eclipse.swt.Request.getInstance().send();</font>
<br><font size=2 face="sans-serif">#7 request (w1.cursorLocation.x=39&amp;w1.cursorLocation.y=362& amp;w1.focusControl=w54&amp;uiRoot=w1),
response: new UI</font>
<br>
<br><font size=2 face="sans-serif">so #1 opens the progressbar, #3 changes
text in the progressbar, #5 hides the progressbar, #7 shows new UI.</font>
<br>
<br><font size=2 face="sans-serif">Unfortunately I regularly get the following
variations of the above requests/responses from within JMeter:</font>
<br>
<br><font size=2 face="sans-serif">Variation 1:</font>
<br><font size=2 face="sans-serif">#3: response hides the Progressbar and
creates the new UI that follows the progressbar</font>
<br><font size=2 face="sans-serif">#5 + #7: still sends the cursor-position
to the server, response is: &quot;var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter(
&quot;4&quot; );&quot;, so does nothing (except increasing the counter).</font>
<br>
<br><font size=2 face="sans-serif">Variation 2: </font>
<br><font size=2 face="sans-serif">#5: response hides the UI and shows
the new UI, </font>
<br><font size=2 face="sans-serif">#7: still sends the cursor-position
to the server, response is: &quot;var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter(
&quot;4&quot; );&quot;, so does nothing (except increasing the counter).</font>
<br>
<br><font size=2 face="sans-serif">Variation 3: </font>
<br><font size=2 face="sans-serif">#5: response just contains &quot;var
req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( &quot;4&quot;
);&quot;</font>
<br><font size=2 face="sans-serif">everything else is in subsequent requests.</font>
<br>
<br>
<br><font size=2 face="sans-serif">So as a result I have timing problems,
because JMeter doesn't properly track, when a progessbar is closed - at
least not when progressbars are closing quite fast it seems.</font>
<br>
<br><font size=2 face="sans-serif">Any suggestions ?</font>
<br>
<br><font size=2 face="sans-serif">Kind Regards</font>
<br><font size=2 face="sans-serif">Stefan</font>
<br>
Previous Topic:RAP Deployment on Tomcat with WYSIWYG editor
Next Topic:How to get .swf running in a browser?
Goto Forum:
  


Current Time: Thu Feb 29 13:13:36 GMT 2024

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

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

Back to the top