Re: Handling graphql requests with JMeter 4.0

2021-03-11 Thread Woonsan Ko
On Tue, Mar 9, 2021 at 12:32 PM Prateek Dua  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 <
> supp...@ubikloadpack.com> 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  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  Team
> > Follow us on Twitter 
> >
> >
> > Cordialement
> > L'équipe Ubik Load Pack 
> > Suivez-nous sur Twitter 
> >
>
>
> --
> Thanks,
> Prateek Dua

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



Re: Handling graphql requests with JMeter 4.0

2021-03-09 Thread Prateek Dua
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 <
supp...@ubikloadpack.com> 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  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  Team
> Follow us on Twitter 
>
>
> Cordialement
> L'équipe Ubik Load Pack 
> Suivez-nous sur Twitter 
>


-- 
Thanks,
Prateek Dua


Re: Handling graphql requests with JMeter 4.0

2021-03-09 Thread UBIK LOAD PACK Support
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  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  Team
Follow us on Twitter 


Cordialement
L'équipe Ubik Load Pack 
Suivez-nous sur Twitter 


Re: Handling graphql requests with JMeter 4.0

2021-03-09 Thread glin...@live.com
You need to basically send a JSON Object with "query" attribute and put the
GraphQL query there making sure to properly escape the query itself so it
would be a valid JSON. 

In general  according to JMeter Best Practices you should always use the
latest version of JMeter
  
and  JMeter 5.4

  
and above come with  GraphQL HTTP Request
  
sampler where you can put your GraphQL query as it is without having to
encode something. 



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

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



Handling graphql requests with JMeter 4.0

2021-03-09 Thread Prateek Dua
>
> Hi Team,
>
> Any help to send Post request ( query ) for  graphql using JMeter 4.0 via
> HTTP request.
>
>
Thanks,
> Prateek
>


Handling graphql requests with JMeter 4.0

2021-03-09 Thread Prateek Dua
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: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org

Handling graphql requests with JMeter 4.0

2021-03-09 Thread Prateek Dua
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

The contents of this email, including the attachments, are privileged and 
confidential to the intended recipient at the email address to which it has 
been addressed. If you receive it in error, please notify the sender 
immediately by return email and then permanently delete it from your system. 
The unauthorized use, distribution, copying or alteration of this email, 
including the attachments, is strictly forbidden. Please note that neither the 
sender nor the company accepts any responsibility for viruses and it is your 
responsibility to scan the email and attachments (if any).

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