[prev in list] [next in list] [prev in thread] [next in thread]
List: jmeter-user
Subject: Re: Executing request with JSON
From: Toni Menendez Lopez <tonimenen () gmail ! com>
Date: 2011-04-16 7:55:09
Message-ID: BANLkTinQC448cnQNT6Ti7ALw=HFaEfwdAg () mail ! gmail ! com
[Download RAW message or body]
Great man,
I´ve been working on it last days and it work perfectly.
Thanks one more time !
2011/4/13 sebb <sebbaz@gmail.com>
> On 13 April 2011 10:04, Toni Menendez Lopez <tonimenen@gmail.com> wrote:
> > Deepack,
> >
> > My json rquest is so easy, I have to send this reques for example,
> >
> > POST /Mytest/beta?
> >
> > Accept: application/json
> > user-agent: automationDM
> > x-odp-version: 1.0
> > x-locale: en
> > Content-Length: 322
> > Content-Type: application/json;charset=utf-8
> > Content-Encoding: gzip
> > Host: 1.1.1.1
> > Connection: Keep-Alive
> > Expect: 100-Continue
> > Accept-Encoding: gzip
> >
> > {
> > "id": 1,
> > "jsonrpc": "2.0",
> > "method": "startSession",
> > "params": {
> > "deviceId": {
> > "iccid": "12345678",
> > "value": "12332111"
> > },
> > "hash": "JtcJvlRe13rNSAfzTynp9Ibve3Q=",
> > "subscriberId": {
> > "type": "mobile",
> > "value": "666777888"
> > }
> > }
> > }
> >
> > And of course values inside the json, can be variables ?
> >
> > Waht do you think is the best solution ?
>
> You might find that
>
>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#SOAP/XML-RPC_Request
>
> will work for you (obviously don't select "Send Soap Action")
>
> Adjust headers using a child header manager.
>
> > Toni.
> >
> > 2011/4/11 Deepak Shetty <shettyd@gmail.com>
> >
> >> Depends on how it is being passed - If you passing it as the value of a
> >> parameter , then its just a string , no different from anything else.
> >>
> >> if you are just posting the value , then you have to ensure that in
> JMeter
> >> you dont give a name (in send parameters with request), just the value
> (its
> >> still a string , no different from any other).
> >> JSON as response is also a string , no different from any other
> response.
> >> perhaps if you tell us what problem you are facing , it might help.
> >>
> >> regards
> >> deepak
> >>
> >>
> >> On Mon, Apr 11, 2011 at 7:45 AM, Toni Menendez Lopez <
> tonimenen@gmail.com>wrote:
> >>
> >>> Hello everybody,
> >>>
> >>> As anyone of you created any scenarios with JSON in the requests ? I
> need
> >>> to
> >>> create one, and no idea how to do it !
> >>>
> >>> Toni.
> >>>
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic