当前位置:网站首页>Postman common assertions
Postman common assertions
2022-06-10 16:44:00 【Acridine】

One 、Response time is less than 200ms ( Response time is less than 200ms)
pm.test(“Response time is less than 200ms”, function () {
pm.expect(pm.response.responseTime).to.be.below(200);
});
Two 、Status code is 200 ( Status code is 200)
pm.test(“Status code is 200”, function () {
pm.response.to.have.status(200);
});
3、 ... and 、Check if response body contains a string ( Check whether the response body contains a string )
pm.test(“Body matches string”, function () {
pm.expect(pm.response.text()).to.include(“string_you_want_to_search”);
});
边栏推荐
- Software test architects, 16 pieces of advice for future generations, take a look and don't miss it
- Jerry's ble timer clock source cannot choose OSC crystal oscillator [chapter]
- 纽约金融监管机构发布正式的稳定币指南
- Bluetooth - Bluetooth SIG
- Middle office: Data middle office, business middle office, technology middle office, application middle office, AI middle office
- When visual studio 2019 is installed, vs installer cannot download files. The progress bar is 0. It shows the solutions to network problems
- You have a ml.net quick reference manual to check!
- College entrance examination that year
- Hoo Hufu Research Institute | noteworthy track in March 2022
- Fiddler为测试做什么
猜你喜欢

Fiddler过滤会话

Fiddler模拟低速网络环境

Nerf: the popularity of using deep learning to complete 3D rendering tasks

Can deleted wechat friends be recovered? How to retrieve wechat friends after they are accidentally deleted

靠,嘉立创打板又降价

Research Report on the development scale of Chinese sanatorium industry and the 14th five year plan (2022-2028)

Report on development status and investment planning recommendations of global and Chinese fuel filler pipe markets (2022-2028)

Shit, jialichuang's price is reduced again

What are the pitfalls of redis's current network: using a cache and paying for disk failures?

What open source tools are actually used in the black cool monitoring interface?
随机推荐
打造隐私计算领先方案 冲量在线数据互联平台获得鲲鹏Validated认证
技术分享| 快对讲,全球对讲
Common sense: the number of neurons in the brain of mice is about 70million and that of humans is about 86billion
postman切换主题
【无标题】
Li Ling: in six years, how did I go from open source Xiaobai to Apache top project PMC
Pictographic dynamic graphic ideographic data
Software College of Shandong University Project Training - Innovation Training - network security range experimental platform (XVII)
Full array of arrays
The guide to the application of all-in-one privacy computing machine - the technical requirements for financial application of all-in-one privacy computing machine was officially released to help the
You have a ml.net quick reference manual to check!
Link multiple alamofire requests - chain multiple alamofire requests
Devops-1- introduction
C # homework - student information management system
Thinking and precipitation after docking with hundreds of third-party APIs
Why do I need a thread pool? What is pooling technology?
Customization development of defi cross chain mining DAPP system
Analysis report on market demand trend and sales strategy of global and Chinese automatic marshmallow machines (2022-2028)
PV operation daily question - black and white chess question
Zhangxiaobai teaches you how to use Ogg to synchronize Oracle 19C data with MySQL 5.7 (3)