JavaShuo
欄目
標籤
接口測試之postman-簡單使用
時間 2019-12-05
標籤
接口
測試
postman
簡單
使用
简体版
原文
原文鏈接
Postman功能(
https://www.getpostman.com/features
)
主要用於模擬網絡請求包
快速建立請求
回放、管理請求
快速設置網絡代理
安裝
下載地址:
https://www.getpostman.com/
直接安裝,成功後在chorme的應用程序中會多出一個Postman
頁面訪問請求:www.baidu.com
點擊應用中「Postman」,會彈出登錄頁面,完成登錄,進入Postman主頁面
在Get後面的輸入框中輸入:http://www.baidu.com,點擊send按鈕
請求參數修改
百度搜索內容參數化:https://www.baidu.com/s?wd=111111&rsv_spt=1&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_enter=1&rsv_sug3=6&rsv_sug1=5&rsv_sug2=0&inputT=1212&rsv_sug4=1212。針對請求中的wd:111111,進行修改
將此地址複製到Postman的地址欄中,點擊Params
將wd對應的值「111111」,修改成「222222」,點擊Send。請求的搜索內容變爲「222222」的搜索結果
驗證接口請求
驗證返回的頁面中包括指定的字符串:頁面中包括「222222」
點擊地址欄下面的Tests頁卡,進入Tests腳本編寫頁面
點擊右側的「Response body:Contains string」,腳本編輯框中會顯示出驗證的具體腳本:tests[「Body matches string」] = responseBody.has(「string_you_want_to_search」);
修改「string_you_want_to_search」爲「222222」,完成驗證代碼的編寫
點擊Send按鈕,從新發送請求,並執行測試:Tests(1/2)
相關文章
1.
postman簡單接口測試
2.
postman接口測試使用
3.
使用postman測試接口
4.
postman單接口測試
5.
postman--簡單接口調試
6.
接口測試之Postman簡介
7.
接口測試之postman
8.
Postman之接口測試
9.
接口測試系列(二)-POSTMAN的簡單使用
10.
使用postman做簡單的接口測試
更多相關文章...
•
Kotlin 接口
-
Kotlin 教程
•
C# 接口(Interface)
-
C#教程
•
Git可視化極簡易教程 — Git GUI使用方法
•
Composer 安裝與使用
相關標籤/搜索
Postman 接口測試工具
簡簡單單
接口調用
單元測試
調試使用
測試用例
接口
popupMenu的簡單使用
postman+postman
postman
Spring教程
MyBatis教程
Hibernate教程
面試
應用
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
Appium入門
2.
Spring WebFlux 源碼分析(2)-Netty 服務器啓動服務流程 --TBD
3.
wxpython入門第六步(高級組件)
4.
CentOS7.5安裝SVN和可視化管理工具iF.SVNAdmin
5.
jedis 3.0.1中JedisPoolConfig對象缺少setMaxIdle、setMaxWaitMillis等方法,問題記錄
6.
一步一圖一代碼,一定要讓你真正徹底明白紅黑樹
7.
2018-04-12—(重點)源碼角度分析Handler運行原理
8.
Spring AOP源碼詳細解析
9.
Spring Cloud(1)
10.
python簡單爬去油價信息發送到公衆號
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
postman簡單接口測試
2.
postman接口測試使用
3.
使用postman測試接口
4.
postman單接口測試
5.
postman--簡單接口調試
6.
接口測試之Postman簡介
7.
接口測試之postman
8.
Postman之接口測試
9.
接口測試系列(二)-POSTMAN的簡單使用
10.
使用postman做簡單的接口測試
>>更多相關文章<<