You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Hari Kishore <ha...@satmetrix.com> on 2009/08/28 22:14:40 UTC

Issue with GWT Application

Hi All,
                    We have a GWT application I recording the script using http proxy. When I replay the script I am not able to submit the data into the database after action clicks . But Jmeter runs without any issues.  But   if we see the Response header no information is shown or it says session expired. Can anybody help me how to work with GWT / AJAX  Load testing using Jmeter...


Thanks
Hari

Re: Issue with GWT Application

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
Looks like my assumption that GWT is just another ajax framework is wrong
:).
You'd need to check what is happening in this request . response. For e.g.
if this is the request on a button click what do you actually see on the UI
, some text somewhere will probably change right, and that text will be
(mostly) unique to this response and thats what you need to assert - the
response must contain this text(or some variation thereof).
Note that assertions wont solve your problem , they will only help to tell
you that there is a problem...
Also in cases like this it is easier to find out the exception on the server
app , what data is it not getting correctly that's causing the update to
fail...

However if all you are interested in is functional (And not load tests) then
Jmeter is probably the wrong tool.

regards
deepak

On Mon, Aug 31, 2009 at 4:41 PM, Hari Kishore <ha...@satmetrix.com>wrote:

> Hi Deepak,
>
>
>            Here is the server response and request info
>
> Request:
> ---------
>
> 5|0|51|
> http://qapapp01.3gqa.test.com:8080/datacollection/com.test.core.webui.app.fbk.Fbk/|6348608F34C7E2419DAB6DAE5E72A58A|com.test.core.webui.app.fbk.client.rpc.FbkDataCollectionRemoteService|applyBranchingRules|com.test.core.webui.app.fbk.client.mvc.model.FbkBranchingInformationModel|com.test.core.webui.app.fbk.client.mvc.model.FbkBranchingInformationModel/1445144130|java.util.HashMap/962170901|java.util.ArrayList/3821976829|com.test.core.webui.app.fbk.client.mvc.model.FbkDataValueModel/1229288205|com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkDataAttrUseModel/281565018|customer<http://qapapp01.3gqa.test.com:8080/datacollection/com.test.core.webui.app.fbk.Fbk/%7C6348608F34C7E2419DAB6DAE5E72A58A%7Ccom.test.core.webui.app.fbk.client.rpc.FbkDataCollectionRemoteService%7CapplyBranchingRules%7Ccom.test.core.webui.app.fbk.client.mvc.model.FbkBranchingInformationModel%7Ccom.test.core.webui.app.fbk.client.mvc.model.FbkBranchingInformationModel/1445144130%7Cjava.util.HashMap/962170901%7Cjava.util.ArrayList/3821976829%7Ccom.test.core.webui.app.fbk.client.mvc.model.FbkDataValueModel/1229288205%7Ccom.satmetrix.core.webui.app.fbk.client.mvc.model.FbkDataAttrUseModel/281565018%7Ccustomer>relationship|com.
> core.webui.app.fbk.client.mvc.model.FbkDataAttrModel/267232082|SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|com.
> core.webui.app.fbk.client.mvc.model.FbkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.lang.String/2004016611|ALL|com.core.webui.app.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10
> - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all
> satisfied|SELECTLIST|SINGLESELECT_63232_15|TEXT|RADIO|COMPETITOR_LIST|COMPANY.COMPETITOR_LIST|STRING|COMPETITOR|competiitor
> 1|competiitor
> 2|SINGLESELECT_63232_19|1|2|3|4|1|5|6|7|0|8|0|7|0|8|2|9|10|11|12|13|11|14|15|8|0|16|0|0|0|0|17|0|18|14|19|10147|0|20|21|18|13|22|23|14|17|7|1|24|25|8|11|26|0|0|0|27|0|19|10172|0|28|19|1|0|26|0|0|0|29|0|19|10173|0|29|19|2|0|26|0|0|0|30|0|19|10174|0|30|19|3|0|26|0|0|0|31|0|19|10175|0|31|19|4|0|26|0|0|0|32|0|19|10176|0|32|19|5|0|26|0|0|0|33|0|19|10177|0|34|19|6|0|26|0|0|0|35|0|19|10178|0|35|19|7|0|26|0|0|0|36|0|19|10179|0|36|19|8|0|26|0|0|0|37|0|19|10180|0|37|19|9|0|26|0|0|0|38|0|19|10181|0|38|19|10|0|26|0|0|0|39|0|19|10182|0|40|19|11|0|14|14|14|0|18|18|0|0|18|14|0|41|13|14|14|14|14|18|18|14|0|0|0|0|0|17|42|43|18|19|10094|0|19|10175|0|14|14|14|18|44|13|19|0|0|-50|14|19|1|0|0|17|0|19|0|0|0|31|0|18|14|14|0|-52|0|0|31|0|9|10|11|12|45|11|14|46|8|0|16|0|0|0|0|47|0|18|14|19|10141|0|20|21|18|48|22|23|14|17|7|1|-13|8|2|26|0|0|0|49|0|19|10183|0|49|19|1|0|26|0|0|0|50|0|19|10184|0|50|19|2|0|14|14|14|0|18|18|0|0|18|14|0|41|48|14|14|14|14|14|18|14|0|0|0|0|0|47|51|43|18|19|10095|0|19|10176|0|14|14|14|18|44|48|-50|-50|14|19|1|0|0|47|0|-52|0|50|0|18|14|14|0|-52|0|0|50|0|
>
> Response
> ---------
>
>
> //OK[0,0,0,0,0,0,0,102,101,0,1,0,7,0,7,100,0,0.0,0.0,5,0,0,0,0,0,-3,11,0,-3,0,99,98,0.0,0.0,5,0,7,0,0,0,0,0,11,0,7,9,0,97,0.0,2.0,5,0,0.0,10173.0,5,0,0,11,88,87,47,10,0,0,0.0,10177.0,5,11,94,46,1,7,87,24,96,88,95,47,10,0,0,0.0,10177.0,5,11,94,46,1,7,95,24,2,23,0,0,0.0,10173.0,5,10,0,0.0,10177.0,5,0,86,94,0.0,3.0,5,0,7,0,0,0,0,0,11,0,7,9,1,-3,0,0.0,10173.0,5,0,0,60,48,73,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,73,24,64,48,71,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,71,24,93,48,61,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,61,24,37,48,58,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,58,24,60,48,70,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,70,24,92,48,55,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,55,24,53,48,52,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,52,24,91,48,50,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,50,24,90,48,45,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,45,24,10,69,68,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,68,24,10,23,0,0,0.0,10173.0,5,10,0,0.0,10178.0,5,0,43,89,0.0,4.0,5,0,7,0,0,0,0,0,10,0,7,9,1,7,8,0.0,1.0,5,0,0.0,10167.0,5,0,0,10,88,87,47,10,0,0,0.0,10174.0,5,11,85,46,1,7,87,24,1,23,0,0,0.0,10173.0,5,10,0,0.0,10174.0,5,0,86,85,0.0,0.0,5,0,7,0,0,0,0,0,11,0,7,9,0,-3,0,0.0,10173.0,5,0,0,60,48,73,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,73,24,64,48,71,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,71,24,84,48,61,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,61,24,37,48,58,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,58,24,83,48,55,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,55,24,60,48,70,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,70,24,53,48,52,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,52,24,51,48,50,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,50,24,49,48,45,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,45,24,10,69,68,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,68,24,10,23,0,0,0.0,10173.0,5,10,0,0.0,10176.0,5,0,43,82,0.0,2.0,5,0.0,1.0,5,10,-53,-53,79,44,11,10,10,10,0.0,10176.0,5,0.0,10095.0,5,11,43,82,78,0,0,0,0,0,10,11,10,10,10,10,10,79,41,0,10,11,0,0,11,11,0,10,10,10,0.0,2.0,5,81,0.0,10184.0,5,0,81,0,0,0,26,0.0,1.0,5,80,0.0,10183.0,5,0,80,0,0,0,26,2,7,-16,1,23,18,10,22,21,79,11,20,19,0.0,10141.0,5,10,11,0,78,0,0,0,0,17,0,7,77,10,13,76,14,13,12,1,7,10,11,0,0,0,10,0,7,9,0,0.0,10173.0,5,0,0,75,48,74,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,74,24,60,48,73,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,73,24,37,48,72,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,72,24,64,48,71,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,71,24,60,48,70,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,70,24,10,69,68,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,68,24,67,48,66,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,66,24,60,48,65,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,65,24,64,48,63,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,63,24,62,48,61,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,61,24,60,48,59,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,59,24,37,48,58,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,58,24,49,48,57,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,57,24,56,48,55,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,55,24,53,48,54,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,54,24,53,48,52,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,52,24,51,48,50,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,50,24,49,48,45,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,45,24,18,23,0,0,0.0,10173.0,5,10,0,0.0,10175.0,5,0,43,42,0.0,1.0,5,0.0,1.0,5,10,-53,0.0,0.0,5,15,44,11,10,10,10,0.0,10175.0,5,0.0,10094.0,5,11,43,42,18,0,0,0,0,0,10,11,11,10,10,10,10,15,41,0,10,11,0,0,11,11,0,10,10,10,0.0,11.0,5,40,0.0,10182.0,5,0,39,0,0,0,26,0.0,10.0,5,38,0.0,10181.0,5,0,38,0,0,0,26,0.0,9.0,5,37,0.0,10180.0,5,0,37,0,0,0,26,0.0,8.0,5,36,0.0,10179.0,5,0,36,0,0,0,26,0.0,7.0,5,35,0.0,10178.0,5,0,35,0,0,0,26,0.0,6.0,5,34,0.0,10177.0,5,0,33,0,0,0,26,0.0,5.0,5,32,0.0,10176.0,5,0,32,0,0,0,26,0.0,4.0,5,31,0.0,10175.0,5,0,31,0,0,0,26,0.0,3.0,5,30,0.0,10174.0,5,0,30,0,0,0,26,0.0,2.0,5,29,0.0,10173.0,5,0,29,0,0,0,26,0.0,1.0,5,28,0.0,10172.0,5,0,27,0,0,0,26,11,7,25,24,1,23,18,10,22,21,15,11,20,19,0.0,10147.0,5,10,11,0,18,0,0,0,0,17,0,7,16,10,13,15,14,13,12,1,7,10,11,0,0,0,10,0,7,9,2,7,8,2,7,0,0,6,0,0.0,10173.0,5,4,3,2,2,1,["com.test.core.webui.app.fbk.client.mvc.model.FbkServerModel/777742734","com.test.core.webui.app.fbk.client.mvc.model.FbkFormModel/1378439716","
> http://webappqa01.testqa.test.com/test//enterprise/haritech/datacollection/FEEDBACK_63232/css/fbkstyles_en_US.css
> ","Test","java.lang.Long/4227064769","
> http://webappqa01.3gqa.satmetrix.com/satmetrix//enterprise/haritech/datacollection/FEEDBACK_63232/images/","java.util.ArrayList/3821976829","com.app.fbk.client.mvc.model.FbkFormPageModel/3964842035","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkFormElementModel/180965630","N","Y","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkDataAttrUseModel/281565018","customer
> relationship","com.fbk.client.mvc.model.FbkDataAttrModel/267232082","SATISFACTION_SCORE","COMPANY.SATISFACTION_SCORE","COMPANY","NUMBER","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkLookupTypeModel/4054514321","CORE.FBK","CORE_LOOKUP_VALUE","TABLE","java.util.HashMap/962170901","java.lang.String/2004016611","ALL","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkLookupValueModel/3297796275","10","10
> - Extremely satisfied","9","8","7","6","5","5 -
> Neutral","4","3","2","1","0","Not at all
> satisfied","SELECTLIST","SINGLESELECT_63232_15","TEXT","RADIO","LABEL_HALIGN","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkElementMetaValueModel/1764022840","WEB","TEXT_DISPLAY","left","LABEL_DIV_FONT_SIZE","14","LABEL_DIV_FONT_FAMILY","Arial","INSTR_DIV_FONT_FAMILY","LABEL","How
> satisfied are you with the way  ACME handled your recent experience of
> joining
> us?","INSTR_HALIGN","QUESTION_TEXT_LINES","INSTR_DIV_FONT_WEIGHT","false","DATACOLLECTION_QUESTION_NAME","Recent
> Experience","INSTR_DIV_FONT_STYLE","true","INSTR_DIV_FONT_DECORATION","INSTR_DIV_FONT_SIZE","11","INPUT_REQUIRED_YN","INPUT_CONTROL_ATTR","LABEL_DIV_FONT_DECORATION","LABEL_DIV_FONT_WEIGHT","Question.Instr.Lines","LABEL_DIV_FONT_STYLE","INSTR_LABEL","Please
> use a 0-10 scale, where 10 represents 'Extremely satisfied' and 0 represents
> 'Not at all
> satisfied'.","COMPETITOR_LIST","COMPANY.COMPETITOR_LIST","STRING","COMPETITOR","competiitor
> 1","competiitor 2","SINGLESELECT_63232_19","Are you satisfied that your
> issue is now resolved? ","Resolution
> Satisfied","PAGEBREAK_63232_2","PAGE_BREAK","THANKYOU_PAGE_YN","PAGE_CONTROL_ATTR","TEXT_63232_22","center","28","THANK
> YOU","Text Question","PAGEBREAK_63232_21","DATACOLLECTION_PAGE_NAME","ThanK
> You","################################################################\n#\n#
> Feedback participant facing messages should be placed here
>  \n#\n################################################################\n\n\nFBK.RESPONSE.REQUIRED=Please
> provide a
> response.\nFBK.BTN.PREVIOUS=Previous\nFBK.BTN.NEXT=Next\nFBK.BTN.OK=Ok\nFBK.BTN.SUBMIT=Submit\nFBK.DROPDOWN.CLICKHERE=Click
> Here\nFBK.GRID.NOTAPPLICABLE=Not Applicable\nFBK.TOKEN.INVALID=The web
> address you used to access this survey does not work. If you copied the
> address into the address field of your browser, make sure you copied the
> entire web address, including the characters following the ?
> character.\nFBK.TOKEN.EXPIRED =We are sorry, but the survey is no longer
> available.\nFBK.SYSTEM.ERROR=We are sorry, but the system experienced
> unexpected error. Please try again later.\nFBK.OFFLINE.MESSAGE=We are sorry,
> but the survey is not available at this time. Please try again
> later.\nFBK.CLOSED.MESSAGE=We are sorry, but the survey is no longer
> available.\nFBK.PARTICIAPTION.COMPLETED=Our records indicate that you have
> already completed this survey. In order to preserve the integrity of the
> survey results, respondents are allowed to complete the survey only
> once.\nFBK.LOOKUPVALUE.NOTAPPLICABLE=Not Applicable\nFBK.SELECT.OTHER.NAME
> =OTHER\nFBK.SELECT.OTHER.DESC=OTHER\nFBK.SELECT.NOTAPPLICABLE.NAME=Not
> Applicable\n","CollectionForm_63232","Form","css/feedback_en_US.css","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkParametersModel/1376871928","en_US"],0,5]
>
>
> Can give a sample on response assertion on the above response & request
> example so that I will get a clear idea how to implement it.
>
> Please help me ....i am not able to proceed...
>
> Thanks
> Hari
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Saturday, August 29, 2009 11:24 AM
> To: JMeter Users List
> Subject: Re: Issue with GWT Application
>
> See also
>
> http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
>
> On 29/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> > the assertion is on the response you receieve not on the data you send.
> ytou
> >  need to check what the browser returns when it makes a similar post
> using
> >  firebug or something
> >  regards
> >  deepak
> >
> >  On Fri, Aug 28, 2009 at 7:51 PM, Hari Kishore <
> hari.kishore@satmetrix.com>wrote:
> >
> >
> >  > Hi,
> >  >   Since I am new I need some help in assertion I am sending a post of
> the
> >  > following values
> >  >
> >  >
> |SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|bkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.util.HashMap/962170901|java.lang.String/2004016611|ALL|com.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10
> >  > - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all
> >  >
> satisfied|SELECTLIST|SINGLESELECT_65510_15|TEXT|RADIO|com.mvc.model.FbkDataInputLogModel/896984277|1|2|3|4|4|5|5|6|6|7|1|8|9|10|11|12|10|13|14|7|0|15|0|0|0|0|16|0|17|13|18|10147|0|19|20|17|12|21|22|13|16|23|1|24|25|7|11|26|0|0|0|27|0|18|10185|0|28|18|1|0|26|0|0|0|29|0|18|10186|0|29|18|2|0|26|0|0|0|30|0|18|10187|0|30|18|3|0|26|0|0|0|31|0|18|10188|0|31|18|4|0|26|0|0|0|32|0|18|10189|0|32|18|5|0|26|0|0|0|33|0|18|10190|0|34|18|6|0|26|0|0|0|35|0|18|10191|0|35|18|7|0|26|0|0|0|36|0|18|10192|0|36|18|8|0|26|0|0|0|37|0|18|10193|0|37|18|9|0|26|0|0|0|38|0|18|10194|0|38|18|10|0|26|0|0|0|39|0|18|10195|0|40|18|11|0|13|13|13|0|17|17|0|0|17|13|0|41|12|13|13|13|13|17|17|13|0|0|0|0|0|16|42|43|17|18|10096|0|18|10183|0|13|13|13|17|44|12|18|0|0|-46|13|18|1|0|0|16|0|18|0|0|0|30|0|17|13|13|0|-48|0|0|30|0|7|1|45|0|-48|18|10097|0|13|17|0|0|
> >  >
> >  >
> >  > I am doing a assertion on text "SINGLESELECT_65510_15" but my
> assertion is
> >  > failing.
> >  >
> >  > Can anybody help how to write simple text or number assertion based on
> the
> >  > above post data
> >  >
> >  >
> >  >
> >  > Thanks
> >  > Hari
> >  >
> >  > -----Original Message-----
> >  > From: Deepak Shetty [mailto:shettyd@gmail.com]
> >  > Sent: Friday, August 28, 2009 2:12 PM
> >  > To: JMeter Users List
> >  > Subject: Re: Issue with GWT Application
> >  >
> >  > GWT is still an HTTP based AJAX app  , it doesnt need any special
> document.
> >  >
> >  > You need to compare what your browser sends (using any browser sniffer
> like
> >  > livehttpheaders and FF) with what you send from Jmeter by enabling
> View
> >  > Results tree. Normally needs you to use Post Processors to extract
> data
> >  > from
> >  > the previous page and post it as part of the next request. Like I said
> look
> >  > through the archives and the wiki on Jmeter ...
> >  >
> >  > If you are getting Session expire as previously posted then you arent
> >  > passing the session id correctly ... See how your app manages session
> id
> >  > (typically a cookie , sometimes URL rewriting)
> >  >
> >  > Its because you get Http 200 , Jmeter will report this is as success.
> You
> >  > must tell it when a page is corrected by asserting the response, a
> test
> >  > (jmeter or otherwise) without assertions is pretty much a bad test.
> >  >
> >  > regards
> >  > deepak
> >  >
> >  > On Fri, Aug 28, 2009 at 2:04 PM, Hari Kishore <
> hari.kishore@satmetrix.com
> >  > >wrote:
> >  >
> >  > > Hi,
> >  > >    I am getting response code 200 from server, but the problem is
> the
> >  > data
> >  > > is not submitted into the database. All the requests are RPC
> requests. I
> >  > can
> >  > > see different sessionid are assigned for the users for every hit on
> the
> >  > > serve page. I can see this in the server log. Any docment on GWT
> testing
> >  > > with Jmeter is appreciated or links...
> >  > >
> >  > > Thanks
> >  > > Hari
> >  > >
> >  > > -----Original Message-----
> >  > > From: Deepak Shetty [mailto:shettyd@gmail.com]
> >  > > Sent: Friday, August 28, 2009 1:39 PM
> >  > > To: JMeter Users List
> >  > > Subject: Re: Issue with GWT Application
> >  > >
> >  > > hi
> >  > > a. By default JMeter errors are  HTTP errors(5xx or 4xx status
> codes).
> >  > You
> >  > > must add response assertions based on what your page should have
> (e.g.
> >  > > Success should be displayed, title of the page should be X, there
> should
> >  > be
> >  > > no error messages etc depending on your app) if you want your app to
> show
> >  > > up
> >  > > as errors
> >  > > b.  Qts like these been answered multiple times in these forums,
> please
> >  > > search the archives. There is also documentation on what to do when
> the
> >  > > browser works but jmeter doesnt seem to. You might have recorded the
> >  > > sessionids when you recorded the script and you are resending the
> >  > requests
> >  > > with the same session id  (or no session id) or you probably arent
> using
> >  > an
> >  > > HTTPCookie manager.
> >  > >
> >  > > regards
> >  > > deepak
> >  > >
> >  > > On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <
> >  > hari.kishore@satmetrix.com
> >  > > >wrote:
> >  > >
> >  > > > Hi All,
> >  > > >                    We have a GWT application I recording the
> script
> >  > using
> >  > > > http proxy. When I replay the script I am not able to submit the
> data
> >  > > into
> >  > > > the database after action clicks . But Jmeter runs without any
> issues.
> >  > >  But
> >  > > >   if we see the Response header no information is shown or it says
> >  > > session
> >  > > > expired. Can anybody help me how to work with GWT / AJAX  Load
> testing
> >  > > using
> >  > > > Jmeter...
> >  > > >
> >  > > >
> >  > > > Thanks
> >  > > > Hari
> >  > > >
> >  > >
> >  > >
> ---------------------------------------------------------------------
> >  > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  > > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  > >
> >  > >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Issue with GWT Application

Posted by Hari Kishore <ha...@satmetrix.com>.
Hi Deepak,


            Here is the server response and request info

Request:
---------

5|0|51|http://qapapp01.3gqa.test.com:8080/datacollection/com.test.core.webui.app.fbk.Fbk/|6348608F34C7E2419DAB6DAE5E72A58A|com.test.core.webui.app.fbk.client.rpc.FbkDataCollectionRemoteService|applyBranchingRules|com.test.core.webui.app.fbk.client.mvc.model.FbkBranchingInformationModel|com.test.core.webui.app.fbk.client.mvc.model.FbkBranchingInformationModel/1445144130|java.util.HashMap/962170901|java.util.ArrayList/3821976829|com.test.core.webui.app.fbk.client.mvc.model.FbkDataValueModel/1229288205|com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkDataAttrUseModel/281565018|customer relationship|com. core.webui.app.fbk.client.mvc.model.FbkDataAttrModel/267232082|SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|com. core.webui.app.fbk.client.mvc.model.FbkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.lang.String/2004016611|ALL|com.core.webui.app.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10 - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all satisfied|SELECTLIST|SINGLESELECT_63232_15|TEXT|RADIO|COMPETITOR_LIST|COMPANY.COMPETITOR_LIST|STRING|COMPETITOR|competiitor 1|competiitor 2|SINGLESELECT_63232_19|1|2|3|4|1|5|6|7|0|8|0|7|0|8|2|9|10|11|12|13|11|14|15|8|0|16|0|0|0|0|17|0|18|14|19|10147|0|20|21|18|13|22|23|14|17|7|1|24|25|8|11|26|0|0|0|27|0|19|10172|0|28|19|1|0|26|0|0|0|29|0|19|10173|0|29|19|2|0|26|0|0|0|30|0|19|10174|0|30|19|3|0|26|0|0|0|31|0|19|10175|0|31|19|4|0|26|0|0|0|32|0|19|10176|0|32|19|5|0|26|0|0|0|33|0|19|10177|0|34|19|6|0|26|0|0|0|35|0|19|10178|0|35|19|7|0|26|0|0|0|36|0|19|10179|0|36|19|8|0|26|0|0|0|37|0|19|10180|0|37|19|9|0|26|0|0|0|38|0|19|10181|0|38|19|10|0|26|0|0|0|39|0|19|10182|0|40|19|11|0|14|14|14|0|18|18|0|0|18|14|0|41|13|14|14|14|14|18|18|14|0|0|0|0|0|17|42|43|18|19|10094|0|19|10175|0|14|14|14|18|44|13|19|0|0|-50|14|19|1|0|0|17|0|19|0|0|0|31|0|18|14|14|0|-52|0|0|31|0|9|10|11|12|45|11|14|46|8|0|16|0|0|0|0|47|0|18|14|19|10141|0|20|21|18|48|22|23|14|17|7|1|-13|8|2|26|0|0|0|49|0|19|10183|0|49|19|1|0|26|0|0|0|50|0|19|10184|0|50|19|2|0|14|14|14|0|18|18|0|0|18|14|0|41|48|14|14|14|14|14|18|14|0|0|0|0|0|47|51|43|18|19|10095|0|19|10176|0|14|14|14|18|44|48|-50|-50|14|19|1|0|0|47|0|-52|0|50|0|18|14|14|0|-52|0|0|50|0|

Response
---------

//OK[0,0,0,0,0,0,0,102,101,0,1,0,7,0,7,100,0,0.0,0.0,5,0,0,0,0,0,-3,11,0,-3,0,99,98,0.0,0.0,5,0,7,0,0,0,0,0,11,0,7,9,0,97,0.0,2.0,5,0,0.0,10173.0,5,0,0,11,88,87,47,10,0,0,0.0,10177.0,5,11,94,46,1,7,87,24,96,88,95,47,10,0,0,0.0,10177.0,5,11,94,46,1,7,95,24,2,23,0,0,0.0,10173.0,5,10,0,0.0,10177.0,5,0,86,94,0.0,3.0,5,0,7,0,0,0,0,0,11,0,7,9,1,-3,0,0.0,10173.0,5,0,0,60,48,73,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,73,24,64,48,71,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,71,24,93,48,61,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,61,24,37,48,58,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,58,24,60,48,70,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,70,24,92,48,55,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,55,24,53,48,52,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,52,24,91,48,50,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,50,24,90,48,45,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,45,24,10,69,68,47,10,0,0,0.0,10178.0,5,11,89,46,1,7,68,24,10,23,0,0,0.0,10173.0,5,10,0,0.0,10178.0,5,0,43,89,0.0,4.0,5,0,7,0,0,0,0,0,10,0,7,9,1,7,8,0.0,1.0,5,0,0.0,10167.0,5,0,0,10,88,87,47,10,0,0,0.0,10174.0,5,11,85,46,1,7,87,24,1,23,0,0,0.0,10173.0,5,10,0,0.0,10174.0,5,0,86,85,0.0,0.0,5,0,7,0,0,0,0,0,11,0,7,9,0,-3,0,0.0,10173.0,5,0,0,60,48,73,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,73,24,64,48,71,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,71,24,84,48,61,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,61,24,37,48,58,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,58,24,83,48,55,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,55,24,60,48,70,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,70,24,53,48,52,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,52,24,51,48,50,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,50,24,49,48,45,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,45,24,10,69,68,47,10,0,0,0.0,10176.0,5,11,82,46,1,7,68,24,10,23,0,0,0.0,10173.0,5,10,0,0.0,10176.0,5,0,43,82,0.0,2.0,5,0.0,1.0,5,10,-53,-53,79,44,11,10,10,10,0.0,10176.0,5,0.0,10095.0,5,11,43,82,78,0,0,0,0,0,10,11,10,10,10,10,10,79,41,0,10,11,0,0,11,11,0,10,10,10,0.0,2.0,5,81,0.0,10184.0,5,0,81,0,0,0,26,0.0,1.0,5,80,0.0,10183.0,5,0,80,0,0,0,26,2,7,-16,1,23,18,10,22,21,79,11,20,19,0.0,10141.0,5,10,11,0,78,0,0,0,0,17,0,7,77,10,13,76,14,13,12,1,7,10,11,0,0,0,10,0,7,9,0,0.0,10173.0,5,0,0,75,48,74,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,74,24,60,48,73,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,73,24,37,48,72,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,72,24,64,48,71,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,71,24,60,48,70,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,70,24,10,69,68,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,68,24,67,48,66,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,66,24,60,48,65,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,65,24,64,48,63,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,63,24,62,48,61,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,61,24,60,48,59,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,59,24,37,48,58,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,58,24,49,48,57,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,57,24,56,48,55,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,55,24,53,48,54,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,54,24,53,48,52,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,52,24,51,48,50,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,50,24,49,48,45,47,10,0,0,0.0,10175.0,5,11,42,46,1,7,45,24,18,23,0,0,0.0,10173.0,5,10,0,0.0,10175.0,5,0,43,42,0.0,1.0,5,0.0,1.0,5,10,-53,0.0,0.0,5,15,44,11,10,10,10,0.0,10175.0,5,0.0,10094.0,5,11,43,42,18,0,0,0,0,0,10,11,11,10,10,10,10,15,41,0,10,11,0,0,11,11,0,10,10,10,0.0,11.0,5,40,0.0,10182.0,5,0,39,0,0,0,26,0.0,10.0,5,38,0.0,10181.0,5,0,38,0,0,0,26,0.0,9.0,5,37,0.0,10180.0,5,0,37,0,0,0,26,0.0,8.0,5,36,0.0,10179.0,5,0,36,0,0,0,26,0.0,7.0,5,35,0.0,10178.0,5,0,35,0,0,0,26,0.0,6.0,5,34,0.0,10177.0,5,0,33,0,0,0,26,0.0,5.0,5,32,0.0,10176.0,5,0,32,0,0,0,26,0.0,4.0,5,31,0.0,10175.0,5,0,31,0,0,0,26,0.0,3.0,5,30,0.0,10174.0,5,0,30,0,0,0,26,0.0,2.0,5,29,0.0,10173.0,5,0,29,0,0,0,26,0.0,1.0,5,28,0.0,10172.0,5,0,27,0,0,0,26,11,7,25,24,1,23,18,10,22,21,15,11,20,19,0.0,10147.0,5,10,11,0,18,0,0,0,0,17,0,7,16,10,13,15,14,13,12,1,7,10,11,0,0,0,10,0,7,9,2,7,8,2,7,0,0,6,0,0.0,10173.0,5,4,3,2,2,1,["com.test.core.webui.app.fbk.client.mvc.model.FbkServerModel/777742734","com.test.core.webui.app.fbk.client.mvc.model.FbkFormModel/1378439716","http://webappqa01.testqa.test.com/test//enterprise/haritech/datacollection/FEEDBACK_63232/css/fbkstyles_en_US.css","Test","java.lang.Long/4227064769","http://webappqa01.3gqa.satmetrix.com/satmetrix//enterprise/haritech/datacollection/FEEDBACK_63232/images/","java.util.ArrayList/3821976829","com.app.fbk.client.mvc.model.FbkFormPageModel/3964842035","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkFormElementModel/180965630","N","Y","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkDataAttrUseModel/281565018","customer relationship","com.fbk.client.mvc.model.FbkDataAttrModel/267232082","SATISFACTION_SCORE","COMPANY.SATISFACTION_SCORE","COMPANY","NUMBER","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkLookupTypeModel/4054514321","CORE.FBK","CORE_LOOKUP_VALUE","TABLE","java.util.HashMap/962170901","java.lang.String/2004016611","ALL","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkLookupValueModel/3297796275","10","10 - Extremely satisfied","9","8","7","6","5","5 - Neutral","4","3","2","1","0","Not at all satisfied","SELECTLIST","SINGLESELECT_63232_15","TEXT","RADIO","LABEL_HALIGN","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkElementMetaValueModel/1764022840","WEB","TEXT_DISPLAY","left","LABEL_DIV_FONT_SIZE","14","LABEL_DIV_FONT_FAMILY","Arial","INSTR_DIV_FONT_FAMILY","LABEL","How satisfied are you with the way  ACME handled your recent experience of joining us?","INSTR_HALIGN","QUESTION_TEXT_LINES","INSTR_DIV_FONT_WEIGHT","false","DATACOLLECTION_QUESTION_NAME","Recent Experience","INSTR_DIV_FONT_STYLE","true","INSTR_DIV_FONT_DECORATION","INSTR_DIV_FONT_SIZE","11","INPUT_REQUIRED_YN","INPUT_CONTROL_ATTR","LABEL_DIV_FONT_DECORATION","LABEL_DIV_FONT_WEIGHT","Question.Instr.Lines","LABEL_DIV_FONT_STYLE","INSTR_LABEL","Please use a 0-10 scale, where 10 represents 'Extremely satisfied' and 0 represents 'Not at all satisfied'.","COMPETITOR_LIST","COMPANY.COMPETITOR_LIST","STRING","COMPETITOR","competiitor 1","competiitor 2","SINGLESELECT_63232_19","Are you satisfied that your issue is now resolved? ","Resolution Satisfied","PAGEBREAK_63232_2","PAGE_BREAK","THANKYOU_PAGE_YN","PAGE_CONTROL_ATTR","TEXT_63232_22","center","28","THANK YOU","Text Question","PAGEBREAK_63232_21","DATACOLLECTION_PAGE_NAME","ThanK You","################################################################\n#\n# Feedback participant facing messages should be placed here  \n#\n################################################################\n\n\nFBK.RESPONSE.REQUIRED=Please provide a response.\nFBK.BTN.PREVIOUS=Previous\nFBK.BTN.NEXT=Next\nFBK.BTN.OK=Ok\nFBK.BTN.SUBMIT=Submit\nFBK.DROPDOWN.CLICKHERE=Click Here\nFBK.GRID.NOTAPPLICABLE=Not Applicable\nFBK.TOKEN.INVALID=The web address you used to access this survey does not work. If you copied the address into the address field of your browser, make sure you copied the entire web address, including the characters following the ? character.\nFBK.TOKEN.EXPIRED =We are sorry, but the survey is no longer available.\nFBK.SYSTEM.ERROR=We are sorry, but the system experienced unexpected error. Please try again later.\nFBK.OFFLINE.MESSAGE=We are sorry, but the survey is not available at this time. Please try again later.\nFBK.CLOSED.MESSAGE=We are sorry, but the survey is no longer available.\nFBK.PARTICIAPTION.COMPLETED=Our records indicate that you have already completed this survey. In order to preserve the integrity of the survey results, respondents are allowed to complete the survey only once.\nFBK.LOOKUPVALUE.NOTAPPLICABLE=Not Applicable\nFBK.SELECT.OTHER.NAME=OTHER\nFBK.SELECT.OTHER.DESC=OTHER\nFBK.SELECT.NOTAPPLICABLE.NAME=Not Applicable\n","CollectionForm_63232","Form","css/feedback_en_US.css","com.satmetrix.core.webui.app.fbk.client.mvc.model.FbkParametersModel/1376871928","en_US"],0,5]


Can give a sample on response assertion on the above response & request example so that I will get a clear idea how to implement it.

Please help me ....i am not able to proceed...

Thanks
Hari


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Saturday, August 29, 2009 11:24 AM
To: JMeter Users List
Subject: Re: Issue with GWT Application

See also

http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

On 29/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> the assertion is on the response you receieve not on the data you send. ytou
>  need to check what the browser returns when it makes a similar post using
>  firebug or something
>  regards
>  deepak
>
>  On Fri, Aug 28, 2009 at 7:51 PM, Hari Kishore <ha...@satmetrix.com>wrote:
>
>
>  > Hi,
>  >   Since I am new I need some help in assertion I am sending a post of the
>  > following values
>  >
>  > |SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|bkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.util.HashMap/962170901|java.lang.String/2004016611|ALL|com.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10
>  > - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all
>  > satisfied|SELECTLIST|SINGLESELECT_65510_15|TEXT|RADIO|com.mvc.model.FbkDataInputLogModel/896984277|1|2|3|4|4|5|5|6|6|7|1|8|9|10|11|12|10|13|14|7|0|15|0|0|0|0|16|0|17|13|18|10147|0|19|20|17|12|21|22|13|16|23|1|24|25|7|11|26|0|0|0|27|0|18|10185|0|28|18|1|0|26|0|0|0|29|0|18|10186|0|29|18|2|0|26|0|0|0|30|0|18|10187|0|30|18|3|0|26|0|0|0|31|0|18|10188|0|31|18|4|0|26|0|0|0|32|0|18|10189|0|32|18|5|0|26|0|0|0|33|0|18|10190|0|34|18|6|0|26|0|0|0|35|0|18|10191|0|35|18|7|0|26|0|0|0|36|0|18|10192|0|36|18|8|0|26|0|0|0|37|0|18|10193|0|37|18|9|0|26|0|0|0|38|0|18|10194|0|38|18|10|0|26|0|0|0|39|0|18|10195|0|40|18|11|0|13|13|13|0|17|17|0|0|17|13|0|41|12|13|13|13|13|17|17|13|0|0|0|0|0|16|42|43|17|18|10096|0|18|10183|0|13|13|13|17|44|12|18|0|0|-46|13|18|1|0|0|16|0|18|0|0|0|30|0|17|13|13|0|-48|0|0|30|0|7|1|45|0|-48|18|10097|0|13|17|0|0|
>  >
>  >
>  > I am doing a assertion on text "SINGLESELECT_65510_15" but my assertion is
>  > failing.
>  >
>  > Can anybody help how to write simple text or number assertion based on the
>  > above post data
>  >
>  >
>  >
>  > Thanks
>  > Hari
>  >
>  > -----Original Message-----
>  > From: Deepak Shetty [mailto:shettyd@gmail.com]
>  > Sent: Friday, August 28, 2009 2:12 PM
>  > To: JMeter Users List
>  > Subject: Re: Issue with GWT Application
>  >
>  > GWT is still an HTTP based AJAX app  , it doesnt need any special document.
>  >
>  > You need to compare what your browser sends (using any browser sniffer like
>  > livehttpheaders and FF) with what you send from Jmeter by enabling View
>  > Results tree. Normally needs you to use Post Processors to extract data
>  > from
>  > the previous page and post it as part of the next request. Like I said look
>  > through the archives and the wiki on Jmeter ...
>  >
>  > If you are getting Session expire as previously posted then you arent
>  > passing the session id correctly ... See how your app manages session id
>  > (typically a cookie , sometimes URL rewriting)
>  >
>  > Its because you get Http 200 , Jmeter will report this is as success. You
>  > must tell it when a page is corrected by asserting the response, a test
>  > (jmeter or otherwise) without assertions is pretty much a bad test.
>  >
>  > regards
>  > deepak
>  >
>  > On Fri, Aug 28, 2009 at 2:04 PM, Hari Kishore <hari.kishore@satmetrix.com
>  > >wrote:
>  >
>  > > Hi,
>  > >    I am getting response code 200 from server, but the problem is the
>  > data
>  > > is not submitted into the database. All the requests are RPC requests. I
>  > can
>  > > see different sessionid are assigned for the users for every hit on the
>  > > serve page. I can see this in the server log. Any docment on GWT testing
>  > > with Jmeter is appreciated or links...
>  > >
>  > > Thanks
>  > > Hari
>  > >
>  > > -----Original Message-----
>  > > From: Deepak Shetty [mailto:shettyd@gmail.com]
>  > > Sent: Friday, August 28, 2009 1:39 PM
>  > > To: JMeter Users List
>  > > Subject: Re: Issue with GWT Application
>  > >
>  > > hi
>  > > a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes).
>  > You
>  > > must add response assertions based on what your page should have (e.g.
>  > > Success should be displayed, title of the page should be X, there should
>  > be
>  > > no error messages etc depending on your app) if you want your app to show
>  > > up
>  > > as errors
>  > > b.  Qts like these been answered multiple times in these forums, please
>  > > search the archives. There is also documentation on what to do when the
>  > > browser works but jmeter doesnt seem to. You might have recorded the
>  > > sessionids when you recorded the script and you are resending the
>  > requests
>  > > with the same session id  (or no session id) or you probably arent using
>  > an
>  > > HTTPCookie manager.
>  > >
>  > > regards
>  > > deepak
>  > >
>  > > On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <
>  > hari.kishore@satmetrix.com
>  > > >wrote:
>  > >
>  > > > Hi All,
>  > > >                    We have a GWT application I recording the script
>  > using
>  > > > http proxy. When I replay the script I am not able to submit the data
>  > > into
>  > > > the database after action clicks . But Jmeter runs without any issues.
>  > >  But
>  > > >   if we see the Response header no information is shown or it says
>  > > session
>  > > > expired. Can anybody help me how to work with GWT / AJAX  Load testing
>  > > using
>  > > > Jmeter...
>  > > >
>  > > >
>  > > > Thanks
>  > > > Hari
>  > > >
>  > >
>  > > ---------------------------------------------------------------------
>  > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  > >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>

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


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


Re: Issue with GWT Application

Posted by sebb <se...@gmail.com>.
See also

http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

On 29/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> the assertion is on the response you receieve not on the data you send. ytou
>  need to check what the browser returns when it makes a similar post using
>  firebug or something
>  regards
>  deepak
>
>  On Fri, Aug 28, 2009 at 7:51 PM, Hari Kishore <ha...@satmetrix.com>wrote:
>
>
>  > Hi,
>  >   Since I am new I need some help in assertion I am sending a post of the
>  > following values
>  >
>  > |SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|bkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.util.HashMap/962170901|java.lang.String/2004016611|ALL|com.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10
>  > - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all
>  > satisfied|SELECTLIST|SINGLESELECT_65510_15|TEXT|RADIO|com.mvc.model.FbkDataInputLogModel/896984277|1|2|3|4|4|5|5|6|6|7|1|8|9|10|11|12|10|13|14|7|0|15|0|0|0|0|16|0|17|13|18|10147|0|19|20|17|12|21|22|13|16|23|1|24|25|7|11|26|0|0|0|27|0|18|10185|0|28|18|1|0|26|0|0|0|29|0|18|10186|0|29|18|2|0|26|0|0|0|30|0|18|10187|0|30|18|3|0|26|0|0|0|31|0|18|10188|0|31|18|4|0|26|0|0|0|32|0|18|10189|0|32|18|5|0|26|0|0|0|33|0|18|10190|0|34|18|6|0|26|0|0|0|35|0|18|10191|0|35|18|7|0|26|0|0|0|36|0|18|10192|0|36|18|8|0|26|0|0|0|37|0|18|10193|0|37|18|9|0|26|0|0|0|38|0|18|10194|0|38|18|10|0|26|0|0|0|39|0|18|10195|0|40|18|11|0|13|13|13|0|17|17|0|0|17|13|0|41|12|13|13|13|13|17|17|13|0|0|0|0|0|16|42|43|17|18|10096|0|18|10183|0|13|13|13|17|44|12|18|0|0|-46|13|18|1|0|0|16|0|18|0|0|0|30|0|17|13|13|0|-48|0|0|30|0|7|1|45|0|-48|18|10097|0|13|17|0|0|
>  >
>  >
>  > I am doing a assertion on text "SINGLESELECT_65510_15" but my assertion is
>  > failing.
>  >
>  > Can anybody help how to write simple text or number assertion based on the
>  > above post data
>  >
>  >
>  >
>  > Thanks
>  > Hari
>  >
>  > -----Original Message-----
>  > From: Deepak Shetty [mailto:shettyd@gmail.com]
>  > Sent: Friday, August 28, 2009 2:12 PM
>  > To: JMeter Users List
>  > Subject: Re: Issue with GWT Application
>  >
>  > GWT is still an HTTP based AJAX app  , it doesnt need any special document.
>  >
>  > You need to compare what your browser sends (using any browser sniffer like
>  > livehttpheaders and FF) with what you send from Jmeter by enabling View
>  > Results tree. Normally needs you to use Post Processors to extract data
>  > from
>  > the previous page and post it as part of the next request. Like I said look
>  > through the archives and the wiki on Jmeter ...
>  >
>  > If you are getting Session expire as previously posted then you arent
>  > passing the session id correctly ... See how your app manages session id
>  > (typically a cookie , sometimes URL rewriting)
>  >
>  > Its because you get Http 200 , Jmeter will report this is as success. You
>  > must tell it when a page is corrected by asserting the response, a test
>  > (jmeter or otherwise) without assertions is pretty much a bad test.
>  >
>  > regards
>  > deepak
>  >
>  > On Fri, Aug 28, 2009 at 2:04 PM, Hari Kishore <hari.kishore@satmetrix.com
>  > >wrote:
>  >
>  > > Hi,
>  > >    I am getting response code 200 from server, but the problem is the
>  > data
>  > > is not submitted into the database. All the requests are RPC requests. I
>  > can
>  > > see different sessionid are assigned for the users for every hit on the
>  > > serve page. I can see this in the server log. Any docment on GWT testing
>  > > with Jmeter is appreciated or links...
>  > >
>  > > Thanks
>  > > Hari
>  > >
>  > > -----Original Message-----
>  > > From: Deepak Shetty [mailto:shettyd@gmail.com]
>  > > Sent: Friday, August 28, 2009 1:39 PM
>  > > To: JMeter Users List
>  > > Subject: Re: Issue with GWT Application
>  > >
>  > > hi
>  > > a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes).
>  > You
>  > > must add response assertions based on what your page should have (e.g.
>  > > Success should be displayed, title of the page should be X, there should
>  > be
>  > > no error messages etc depending on your app) if you want your app to show
>  > > up
>  > > as errors
>  > > b.  Qts like these been answered multiple times in these forums, please
>  > > search the archives. There is also documentation on what to do when the
>  > > browser works but jmeter doesnt seem to. You might have recorded the
>  > > sessionids when you recorded the script and you are resending the
>  > requests
>  > > with the same session id  (or no session id) or you probably arent using
>  > an
>  > > HTTPCookie manager.
>  > >
>  > > regards
>  > > deepak
>  > >
>  > > On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <
>  > hari.kishore@satmetrix.com
>  > > >wrote:
>  > >
>  > > > Hi All,
>  > > >                    We have a GWT application I recording the script
>  > using
>  > > > http proxy. When I replay the script I am not able to submit the data
>  > > into
>  > > > the database after action clicks . But Jmeter runs without any issues.
>  > >  But
>  > > >   if we see the Response header no information is shown or it says
>  > > session
>  > > > expired. Can anybody help me how to work with GWT / AJAX  Load testing
>  > > using
>  > > > Jmeter...
>  > > >
>  > > >
>  > > > Thanks
>  > > > Hari
>  > > >
>  > >
>  > > ---------------------------------------------------------------------
>  > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  > >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>

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


Re: Issue with GWT Application

Posted by Deepak Shetty <sh...@gmail.com>.
the assertion is on the response you receieve not on the data you send. ytou
need to check what the browser returns when it makes a similar post using
firebug or something
regards
deepak

On Fri, Aug 28, 2009 at 7:51 PM, Hari Kishore <ha...@satmetrix.com>wrote:

> Hi,
>   Since I am new I need some help in assertion I am sending a post of the
> following values
>
> |SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|bkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.util.HashMap/962170901|java.lang.String/2004016611|ALL|com.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10
> - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all
> satisfied|SELECTLIST|SINGLESELECT_65510_15|TEXT|RADIO|com.mvc.model.FbkDataInputLogModel/896984277|1|2|3|4|4|5|5|6|6|7|1|8|9|10|11|12|10|13|14|7|0|15|0|0|0|0|16|0|17|13|18|10147|0|19|20|17|12|21|22|13|16|23|1|24|25|7|11|26|0|0|0|27|0|18|10185|0|28|18|1|0|26|0|0|0|29|0|18|10186|0|29|18|2|0|26|0|0|0|30|0|18|10187|0|30|18|3|0|26|0|0|0|31|0|18|10188|0|31|18|4|0|26|0|0|0|32|0|18|10189|0|32|18|5|0|26|0|0|0|33|0|18|10190|0|34|18|6|0|26|0|0|0|35|0|18|10191|0|35|18|7|0|26|0|0|0|36|0|18|10192|0|36|18|8|0|26|0|0|0|37|0|18|10193|0|37|18|9|0|26|0|0|0|38|0|18|10194|0|38|18|10|0|26|0|0|0|39|0|18|10195|0|40|18|11|0|13|13|13|0|17|17|0|0|17|13|0|41|12|13|13|13|13|17|17|13|0|0|0|0|0|16|42|43|17|18|10096|0|18|10183|0|13|13|13|17|44|12|18|0|0|-46|13|18|1|0|0|16|0|18|0|0|0|30|0|17|13|13|0|-48|0|0|30|0|7|1|45|0|-48|18|10097|0|13|17|0|0|
>
>
> I am doing a assertion on text "SINGLESELECT_65510_15" but my assertion is
> failing.
>
> Can anybody help how to write simple text or number assertion based on the
> above post data
>
>
>
> Thanks
> Hari
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Friday, August 28, 2009 2:12 PM
> To: JMeter Users List
> Subject: Re: Issue with GWT Application
>
> GWT is still an HTTP based AJAX app  , it doesnt need any special document.
>
> You need to compare what your browser sends (using any browser sniffer like
> livehttpheaders and FF) with what you send from Jmeter by enabling View
> Results tree. Normally needs you to use Post Processors to extract data
> from
> the previous page and post it as part of the next request. Like I said look
> through the archives and the wiki on Jmeter ...
>
> If you are getting Session expire as previously posted then you arent
> passing the session id correctly ... See how your app manages session id
> (typically a cookie , sometimes URL rewriting)
>
> Its because you get Http 200 , Jmeter will report this is as success. You
> must tell it when a page is corrected by asserting the response, a test
> (jmeter or otherwise) without assertions is pretty much a bad test.
>
> regards
> deepak
>
> On Fri, Aug 28, 2009 at 2:04 PM, Hari Kishore <hari.kishore@satmetrix.com
> >wrote:
>
> > Hi,
> >    I am getting response code 200 from server, but the problem is the
> data
> > is not submitted into the database. All the requests are RPC requests. I
> can
> > see different sessionid are assigned for the users for every hit on the
> > serve page. I can see this in the server log. Any docment on GWT testing
> > with Jmeter is appreciated or links...
> >
> > Thanks
> > Hari
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > Sent: Friday, August 28, 2009 1:39 PM
> > To: JMeter Users List
> > Subject: Re: Issue with GWT Application
> >
> > hi
> > a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes).
> You
> > must add response assertions based on what your page should have (e.g.
> > Success should be displayed, title of the page should be X, there should
> be
> > no error messages etc depending on your app) if you want your app to show
> > up
> > as errors
> > b.  Qts like these been answered multiple times in these forums, please
> > search the archives. There is also documentation on what to do when the
> > browser works but jmeter doesnt seem to. You might have recorded the
> > sessionids when you recorded the script and you are resending the
> requests
> > with the same session id  (or no session id) or you probably arent using
> an
> > HTTPCookie manager.
> >
> > regards
> > deepak
> >
> > On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <
> hari.kishore@satmetrix.com
> > >wrote:
> >
> > > Hi All,
> > >                    We have a GWT application I recording the script
> using
> > > http proxy. When I replay the script I am not able to submit the data
> > into
> > > the database after action clicks . But Jmeter runs without any issues.
> >  But
> > >   if we see the Response header no information is shown or it says
> > session
> > > expired. Can anybody help me how to work with GWT / AJAX  Load testing
> > using
> > > Jmeter...
> > >
> > >
> > > Thanks
> > > Hari
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Issue with GWT Application

Posted by Hari Kishore <ha...@satmetrix.com>.
Hi,
   Since I am new I need some help in assertion I am sending a post of the following values

|SATISFACTION_SCORE|N|COMPANY.SATISFACTION_SCORE|COMPANY|NUMBER|Y|java.lang.Long/4227064769|bkLookupTypeModel/4054514321|CORE.FBK|CORE_LOOKUP_VALUE|TABLE|java.util.HashMap/962170901|java.lang.String/2004016611|ALL|com.fbk.client.mvc.model.FbkLookupValueModel/3297796275|10|10 - Extremely satisfied|9|8|7|6|5|5 - Neutral|4|3|2|1|0|Not at all satisfied|SELECTLIST|SINGLESELECT_65510_15|TEXT|RADIO|com.mvc.model.FbkDataInputLogModel/896984277|1|2|3|4|4|5|5|6|6|7|1|8|9|10|11|12|10|13|14|7|0|15|0|0|0|0|16|0|17|13|18|10147|0|19|20|17|12|21|22|13|16|23|1|24|25|7|11|26|0|0|0|27|0|18|10185|0|28|18|1|0|26|0|0|0|29|0|18|10186|0|29|18|2|0|26|0|0|0|30|0|18|10187|0|30|18|3|0|26|0|0|0|31|0|18|10188|0|31|18|4|0|26|0|0|0|32|0|18|10189|0|32|18|5|0|26|0|0|0|33|0|18|10190|0|34|18|6|0|26|0|0|0|35|0|18|10191|0|35|18|7|0|26|0|0|0|36|0|18|10192|0|36|18|8|0|26|0|0|0|37|0|18|10193|0|37|18|9|0|26|0|0|0|38|0|18|10194|0|38|18|10|0|26|0|0|0|39|0|18|10195|0|40|18|11|0|13|13|13|0|17|17|0|0|17|13|0|41|12|13|13|13|13|17|17|13|0|0|0|0|0|16|42|43|17|18|10096|0|18|10183|0|13|13|13|17|44|12|18|0|0|-46|13|18|1|0|0|16|0|18|0|0|0|30|0|17|13|13|0|-48|0|0|30|0|7|1|45|0|-48|18|10097|0|13|17|0|0|


I am doing a assertion on text "SINGLESELECT_65510_15" but my assertion is failing.

Can anybody help how to write simple text or number assertion based on the above post data



Thanks
Hari

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Friday, August 28, 2009 2:12 PM
To: JMeter Users List
Subject: Re: Issue with GWT Application

GWT is still an HTTP based AJAX app  , it doesnt need any special document.

You need to compare what your browser sends (using any browser sniffer like
livehttpheaders and FF) with what you send from Jmeter by enabling View
Results tree. Normally needs you to use Post Processors to extract data from
the previous page and post it as part of the next request. Like I said look
through the archives and the wiki on Jmeter ...

If you are getting Session expire as previously posted then you arent
passing the session id correctly ... See how your app manages session id
(typically a cookie , sometimes URL rewriting)

Its because you get Http 200 , Jmeter will report this is as success. You
must tell it when a page is corrected by asserting the response, a test
(jmeter or otherwise) without assertions is pretty much a bad test.

regards
deepak

On Fri, Aug 28, 2009 at 2:04 PM, Hari Kishore <ha...@satmetrix.com>wrote:

> Hi,
>    I am getting response code 200 from server, but the problem is the data
> is not submitted into the database. All the requests are RPC requests. I can
> see different sessionid are assigned for the users for every hit on the
> serve page. I can see this in the server log. Any docment on GWT testing
> with Jmeter is appreciated or links...
>
> Thanks
> Hari
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Friday, August 28, 2009 1:39 PM
> To: JMeter Users List
> Subject: Re: Issue with GWT Application
>
> hi
> a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes). You
> must add response assertions based on what your page should have (e.g.
> Success should be displayed, title of the page should be X, there should be
> no error messages etc depending on your app) if you want your app to show
> up
> as errors
> b.  Qts like these been answered multiple times in these forums, please
> search the archives. There is also documentation on what to do when the
> browser works but jmeter doesnt seem to. You might have recorded the
> sessionids when you recorded the script and you are resending the requests
> with the same session id  (or no session id) or you probably arent using an
> HTTPCookie manager.
>
> regards
> deepak
>
> On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <hari.kishore@satmetrix.com
> >wrote:
>
> > Hi All,
> >                    We have a GWT application I recording the script using
> > http proxy. When I replay the script I am not able to submit the data
> into
> > the database after action clicks . But Jmeter runs without any issues.
>  But
> >   if we see the Response header no information is shown or it says
> session
> > expired. Can anybody help me how to work with GWT / AJAX  Load testing
> using
> > Jmeter...
> >
> >
> > Thanks
> > Hari
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: Issue with GWT Application

Posted by Deepak Shetty <sh...@gmail.com>.
GWT is still an HTTP based AJAX app  , it doesnt need any special document.

You need to compare what your browser sends (using any browser sniffer like
livehttpheaders and FF) with what you send from Jmeter by enabling View
Results tree. Normally needs you to use Post Processors to extract data from
the previous page and post it as part of the next request. Like I said look
through the archives and the wiki on Jmeter ...

If you are getting Session expire as previously posted then you arent
passing the session id correctly ... See how your app manages session id
(typically a cookie , sometimes URL rewriting)

Its because you get Http 200 , Jmeter will report this is as success. You
must tell it when a page is corrected by asserting the response, a test
(jmeter or otherwise) without assertions is pretty much a bad test.

regards
deepak

On Fri, Aug 28, 2009 at 2:04 PM, Hari Kishore <ha...@satmetrix.com>wrote:

> Hi,
>    I am getting response code 200 from server, but the problem is the data
> is not submitted into the database. All the requests are RPC requests. I can
> see different sessionid are assigned for the users for every hit on the
> serve page. I can see this in the server log. Any docment on GWT testing
> with Jmeter is appreciated or links...
>
> Thanks
> Hari
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Friday, August 28, 2009 1:39 PM
> To: JMeter Users List
> Subject: Re: Issue with GWT Application
>
> hi
> a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes). You
> must add response assertions based on what your page should have (e.g.
> Success should be displayed, title of the page should be X, there should be
> no error messages etc depending on your app) if you want your app to show
> up
> as errors
> b.  Qts like these been answered multiple times in these forums, please
> search the archives. There is also documentation on what to do when the
> browser works but jmeter doesnt seem to. You might have recorded the
> sessionids when you recorded the script and you are resending the requests
> with the same session id  (or no session id) or you probably arent using an
> HTTPCookie manager.
>
> regards
> deepak
>
> On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <hari.kishore@satmetrix.com
> >wrote:
>
> > Hi All,
> >                    We have a GWT application I recording the script using
> > http proxy. When I replay the script I am not able to submit the data
> into
> > the database after action clicks . But Jmeter runs without any issues.
>  But
> >   if we see the Response header no information is shown or it says
> session
> > expired. Can anybody help me how to work with GWT / AJAX  Load testing
> using
> > Jmeter...
> >
> >
> > Thanks
> > Hari
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Issue with GWT Application

Posted by Hari Kishore <ha...@satmetrix.com>.
Hi,
    I am getting response code 200 from server, but the problem is the data is not submitted into the database. All the requests are RPC requests. I can see different sessionid are assigned for the users for every hit on the serve page. I can see this in the server log. Any docment on GWT testing with Jmeter is appreciated or links...

Thanks
Hari

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Friday, August 28, 2009 1:39 PM
To: JMeter Users List
Subject: Re: Issue with GWT Application

hi
a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes). You
must add response assertions based on what your page should have (e.g.
Success should be displayed, title of the page should be X, there should be
no error messages etc depending on your app) if you want your app to show up
as errors
b.  Qts like these been answered multiple times in these forums, please
search the archives. There is also documentation on what to do when the
browser works but jmeter doesnt seem to. You might have recorded the
sessionids when you recorded the script and you are resending the requests
with the same session id  (or no session id) or you probably arent using an
HTTPCookie manager.

regards
deepak

On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <ha...@satmetrix.com>wrote:

> Hi All,
>                    We have a GWT application I recording the script using
> http proxy. When I replay the script I am not able to submit the data into
> the database after action clicks . But Jmeter runs without any issues.  But
>   if we see the Response header no information is shown or it says session
> expired. Can anybody help me how to work with GWT / AJAX  Load testing using
> Jmeter...
>
>
> Thanks
> Hari
>

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


Re: Issue with GWT Application

Posted by Deepak Shetty <sh...@gmail.com>.
hi
a. By default JMeter errors are  HTTP errors(5xx or 4xx status codes). You
must add response assertions based on what your page should have (e.g.
Success should be displayed, title of the page should be X, there should be
no error messages etc depending on your app) if you want your app to show up
as errors
b.  Qts like these been answered multiple times in these forums, please
search the archives. There is also documentation on what to do when the
browser works but jmeter doesnt seem to. You might have recorded the
sessionids when you recorded the script and you are resending the requests
with the same session id  (or no session id) or you probably arent using an
HTTPCookie manager.

regards
deepak

On Fri, Aug 28, 2009 at 1:14 PM, Hari Kishore <ha...@satmetrix.com>wrote:

> Hi All,
>                    We have a GWT application I recording the script using
> http proxy. When I replay the script I am not able to submit the data into
> the database after action clicks . But Jmeter runs without any issues.  But
>   if we see the Response header no information is shown or it says session
> expired. Can anybody help me how to work with GWT / AJAX  Load testing using
> Jmeter...
>
>
> Thanks
> Hari
>