Handling graphql requests with JMeter 4.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Handling graphql requests with JMeter 4.0

Prateek Dua-2
Hi Team,

Any help to send Post request ( query ) for  graphql using JMeter 4.0 via  HTTP request.  Attached is  query & GRAPHQL variables that needs to be passed in body data. 

Thanks,
Prateek


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Handling graphql requests with JMeter 4.0

Prateek Dua-2
>
> Hi Team,
>
> Any help to send Post request ( query ) for  graphql using JMeter 4.0 via
> HTTP request.
>
>
Thanks,
> Prateek
>
Reply | Threaded
Open this post in threaded view
|

Re: Handling graphql requests with JMeter 4.0

support@ubikloadpack.com
Hello,
Since JMeter 5.4, there is a GraphQL view in HTTP Request:

   -
   https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request
   look for GraphQL

Before, you'll have to manually handle it.

Regards

On Tue, Mar 9, 2021 at 2:16 PM Prateek Dua <[hidden email]> wrote:

> >
> > Hi Team,
> >
> > Any help to send Post request ( query ) for  graphql using JMeter 4.0 via
> > HTTP request.
> >
> >
> Thanks,
> > Prateek
> >
>


--

Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
Reply | Threaded
Open this post in threaded view
|

Re: Handling graphql requests with JMeter 4.0

Prateek Dua-2
Yes I'm aware of JMeter 5.4 support on it but currently seeking out
solution to handle it via JMeter 4.0 as complete system has been set up
using JMeter 4.0.

So any solution / syntax to handle it manually via plain http request will
be help.

Thanks,
Prateek

On Tue, Mar 9, 2021 at 8:04 PM UBIK LOAD PACK Support <
[hidden email]> wrote:

> Hello,
> Since JMeter 5.4, there is a GraphQL view in HTTP Request:
>
>    -
>
> https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request
>    look for GraphQL
>
> Before, you'll have to manually handle it.
>
> Regards
>
> On Tue, Mar 9, 2021 at 2:16 PM Prateek Dua <[hidden email]> wrote:
>
> > >
> > > Hi Team,
> > >
> > > Any help to send Post request ( query ) for  graphql using JMeter 4.0
> via
> > > HTTP request.
> > >
> > >
> > Thanks,
> > > Prateek
> > >
> >
>
>
> --
>
> Regards
> Ubik Load Pack <http://ubikloadpack.com> Team
> Follow us on Twitter <http://twitter.com/ubikloadpack>
>
>
> Cordialement
> L'équipe Ubik Load Pack <http://ubikloadpack.com>
> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
>


--
Thanks,
Prateek Dua
Reply | Threaded
Open this post in threaded view
|

Re: Handling graphql requests with JMeter 4.0

Woonsan Ko-2
On Tue, Mar 9, 2021 at 12:32 PM Prateek Dua <[hidden email]> wrote:
>
> Yes I'm aware of JMeter 5.4 support on it but currently seeking out
> solution to handle it via JMeter 4.0 as complete system has been set up
> using JMeter 4.0.
>
> So any solution / syntax to handle it manually via plain http request will
> be help.

You will need to escape the GraphQL query or mutation and other params
manually in the JSON post payload like the following example:

{"operationName":null,"variables":{},"query":"{\n fineSomethings(text:
\"\", offset: 0, limit: 200) {\n offset\n limit\n count\n total\n
items {\n ... }\n }\n }\n }\n}\n"}

Any developer tools, such as browser debugger tools, can help you
capture the http request headers and payload data.

Regards,

Woonsan

>
> Thanks,
> Prateek
>
> On Tue, Mar 9, 2021 at 8:04 PM UBIK LOAD PACK Support <
> [hidden email]> wrote:
>
> > Hello,
> > Since JMeter 5.4, there is a GraphQL view in HTTP Request:
> >
> >    -
> >
> > https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request
> >    look for GraphQL
> >
> > Before, you'll have to manually handle it.
> >
> > Regards
> >
> > On Tue, Mar 9, 2021 at 2:16 PM Prateek Dua <[hidden email]> wrote:
> >
> > > >
> > > > Hi Team,
> > > >
> > > > Any help to send Post request ( query ) for  graphql using JMeter 4.0
> > via
> > > > HTTP request.
> > > >
> > > >
> > > Thanks,
> > > > Prateek
> > > >
> > >
> >
> >
> > --
> >
> > Regards
> > Ubik Load Pack <http://ubikloadpack.com> Team
> > Follow us on Twitter <http://twitter.com/ubikloadpack>
> >
> >
> > Cordialement
> > L'équipe Ubik Load Pack <http://ubikloadpack.com>
> > Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
> >
>
>
> --
> Thanks,
> Prateek Dua

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]