Performance test for graphQL API

前端 未结 7 1449
北恋
北恋 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:40

    I am testing our GraphQL Implementation, you will need:

    • Thread Group
    • HTTP Header Manager: You need to add as Content-Type: Application/json https://i.stack.imgur.com/syXqK.png
    • HTTP Request: use GET and add in the Body Data your query https://i.stack.imgur.com/MpxAb.png
    • Response Assertion: You want to count as correct requests only responses without errors https://i.stack.imgur.com/eXWGs.png
    • A Listener: https://i.stack.imgur.com/VOVLo.png

提交回复
热议问题