邮递员的外部图书馆 [英] External library in Postman

查看:100
本文介绍了邮递员的外部图书馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 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/

这篇关于邮递员的外部图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆