Performance test for graphQL API

前端 未结 7 1454
北恋
北恋 2021-02-04 20:07

Today I\'m doing my API automation testing and performance testing with Jmeter when the server is a REST API.

Now the development changed to graphQL API, and I have two

7条回答
  •  无人共我
    2021-02-04 20:45

    Looking into Serving over HTTP section of the GraphQL documentation

    When receiving an HTTP GET request, the GraphQL query should be specified in the "query" query string.

    So you can just append your GraphQL query to your request URL.

    With regards to "best practices" - you should follow "normal" recommendations for web applications and HTTP APIs testing, for example check out REST API Testing - How to Do it Right article.

提交回复
热议问题