On 19/11/2008, Troy Harris <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I'm having a few problems with testing a jQuery Grid link and would
>  appreciate some direction on where to look next.
>
>  Issue is that the jQuery Grid creates the ID in the URL which I need to
>  navigate to, I can set this statically in Jmeter though
>  this doesnt really work very well with multiple threads and numerous ID's.

Are you sure it sets it in the URL? The example below shows a POST
with parameters.

>  From what I can see the following occurs
>
>  POST
>  ../Questions/GridDataHandler.ashx
>
>  
> POSTDATA=id=grid&ascx=~%2FPortlets%2FQuestionSets.ascx&source=questionsets&page=1&rows=25&sidx=QuestionSetId&sord=asc&_nd=1226990109047&_search=false
>

Looks like the variable part is
  _nd=1226990109047
which can be extracted from the previous page using the Regex
Extractor Post-Processor.

You might find the HTML Link Parser will work for you (depends on how
the previous page is constructed). Worth a try, because it is simple
to add.

Just add all the parameters to the POST sample, and either use .* for
the _id (Link Parser) or use ${variable_name} (Regex Extractor)

>
>  Which should give me
>
>
>
>  RESPONSE
>
>
>
>  {"page":1,"total":1,"records":4,"rows":[{"id":"36","cell":["<a
>  href=\"EditQuestionSet.aspx?QuestionSetId=36\">\r\n
>     yyy</a>","Nov
>  17 2008","Nov 17 2008","7","Nov 17 2008"]},{"id":"42","cell":["<a
>  href=\"EditQuestionSet.aspx?QuestionSetId=42\">\r\n
>     other<>~!\"£$%^&*</a>","Nov
>  17 2008","Nov 17 2008","-","Nov 17 2008"]},{"id":"43","cell":["<a
>  href=\"EditQuestionSet.aspx?QuestionSetId=43\">\r\n
>     new</a>","Nov
>  17 2008","Nov 17 2008","1","Nov 17 2008"]},{"id":"44","cell":["<a
>  href=\"EditQuestionSet.aspx?QuestionSetId=44\">\r\n
>     Ù?تاÙ"بÛOبÙ"Ú(c)Ù.Ù?تاÙ"</a>","Nov
>  17 2008","Nov 17 2008","1","Nov 17 2008"]}]}
>
>
>  From here I should be able to use the regular expression extractor to
>  navigate to this users QuestionSetID.
>
>  I'll also post over on the jGrid forum as I think the next step is trying to
>  workout how the value for _nd=? is created in the POST to
>  GridDataHandler.ashx.
>  If I can find this I should be able to get the RESPONSE required in Jmeter.
>
>  jGrid link
>  http://www.trirand.com/blog/
>
>
>  Any suggestions?
>
>  Troy
>
>
>  --
>  NOTICE:
>  This e-mail message is intended only for the addressee(s) and contains
>  information which may be confidential If you are not the intended recipient
>  please advise the sender by return email, do not use or disclose the
>  contents, and delete the message and any attachments from your system.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to