知识卡片

普通读书笔记卡 · 3521

GraphQL模式驱动查询测试

理解等级:中级

GraphQL 测试工具可从模式发现查询和变更操作,生成带有效或无效参数、选择集的请求,以检查服务端处理。生成测试的覆盖能力取决于工具和配置;随机请求无服务器错误不等于每个变更的业务结果正确。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 12 章《Testing and validating APIs》(源文件:_epub-src/OEBPS/Text/12.htm) - 结论依据:原文展示从 GraphQL 模式生成操作测试;其示例只通过无服务器错误检查,卡片明确该断言范围。 - 原始内容:Schemathesis parses a GraphQL API specification in search of available operations and generates query documents with both valid and invalid parameters and selection sets to test the server’s response.