brookshi / Hitchhiker

a Restful Api test tool
http://www.hitchhiker-api.com
Other
2.19k stars 402 forks source link

Response返回的json串可以与mysql中的数据对比吗 #225

Closed duqinghong closed 6 years ago

duqinghong commented 6 years ago

我想把结果中的json串与我项目中的mysql数据表的数据进行比较,能实现吗

brookshi commented 6 years ago

是可以的,但是需要用脚本来实现,引入mysql的nodejs脚本库,从数据库中取值来对比。 以后我会考虑加些sample

duqinghong commented 6 years ago

可以具体点,告诉我在哪引吗,怎么使用

brookshi commented 6 years ago

参考文档: http://doc.hitchhiker-api.com/cn/Script/custom-javascript-lib.html 如果不了解node的话可能会比较麻烦

duqinghong commented 6 years ago

好的,多谢,敢快恶补去

brookshi commented 6 years ago

ok, 过程中有什么问题可以收集起来发给我,我有时间就会解答下