Postman 中的外部库

2022-01-22 00:00:00 postman javascript

我想将 linq.js 用于我的断言.有没有办法在 Postman 中包含一个外部库?

I want to use linq.js for my assertions. Is there a way to include an external library in Postman?

推荐答案

不,linq.js 或 Postman Sandbox 不能在 Postman 中使用(默认情况下,有一个变通方法).

No, linq.js, or any library not available in the Postman Sandbox cannot be used in Postman (by default, there is a workaround).

实际上,如果你在请求中获取一个脚本并eval它,你可以在Postman中使用它.此博客文章中给出了一个示例 - http://blog.getpostman.com/2015/09/29/writing-a-behaviour-driven-api-testing-environment-within-postman/

Actually, if you fetch a script in a request and eval it, you can use it in Postman. An example is given in this blog post - http://blog.getpostman.com/2015/09/29/writing-a-behaviour-driven-api-testing-environment-within-postman/

相关文章