【文件属性】:
文件名称:ply:API自动化测试
文件大小:6.54MB
文件格式:ZIP
更新时间:2021-03-07 05:22:20
nodejs testing graphql typescript rest-api
API自动化测试
安装
npm install ply-ct --save-dev
或者,在任何地方运行:
npm install -g ply-ct
用法
Ply API测试从包含请求的YAML文件开始。 这是一个GET请求,用于使用 v3检索存储库的主题:
repositoryTopics :
url : ' https://api.github.com/repos/ply-ct/ply-demo/topics '
method : GET
headers :
Accept : application/vnd.github.mercy-preview+json
运行一个请求
假设您将其保存在名为“ github.ply.yml”的文件中。 然后,您可以从命令行输入以下内容来提交repositoryTopics请求:
ply -s github.ply.yml