PyCharm使用技巧:Test RESTful Web Service(RESTful接口测试界面)
来源:互联网 发布:淘宝老年人的冬季帽子 编辑:程序博客网 时间:2024/06/11 21:17
PyCharm的Test RESTful Web Service工具提供了RESTful接口测试界面,如下图所示,提供了get、post,put等http方法,其中的Request子界面headers,Parameters,Body等功能,Response子界面用于显示返回值,Response Headers用于显示返回的消息头。
进入: Tools-> Test RESTful Web Service
我们以下面的Flask代码来简单介绍RESTful接口测试界面:
main.py
from flask import Flask, requestapp = Flask(__name__)@app.route('/hello')def index(): data = request.args.get('data') return 'hello world: ' + dataif __name__ == '__main__': app.run()
测试步骤:
1.运行main.y
2.按照上图输入Host/Port,Path,Parameters
3.点击左边的小三角开始测试。
4.查看Response和Response Headers界面(见下图)
阅读全文
0 0
- PyCharm使用技巧:Test RESTful Web Service(RESTful接口测试界面)
- 接口自动化测试 – Java+TestNG 测试 Restful Web Service
- 接口自动化测试 – Java+TestNG 测试 Restful Web Service
- Intellij IDEA 的 Test Restful Web Service 使用教程
- Intellij IDEA 的 Test Restful Web Service 使用教程
- RESTful Web Service(二):使用eclipse创建restful webservice 工程
- Restful Web Service (1)
- Restful web service (2)
- 什么是RESTful Web Service?
- Restful Web Service
- Web Service RESTful
- springMVC restful web service
- RESTful web service study
- restful web service
- Restful Web Service
- 开发RESTful web Service
- 什么是RESTful Web Service?
- RESTful Web Service
- Java生成一个随机数
- 【Hadoop学习笔记】——HDFS
- 【Hadoop学习笔记】——MapReduce
- JS 输入框银行卡格式 (三)
- poj-2376-Cleaning Shifts
- PyCharm使用技巧:Test RESTful Web Service(RESTful接口测试界面)
- NDK之路-1-(LLDB调试)
- MySQL配置
- Windows 64位下安装Redis详细教程以及RedisManager的使用
- UVA 1610 Party Games 模拟 有细节
- python3 [入门基础实战] 爬虫入门之爬取豆瓣阅读中文电子书[热门排序]
- Andrew Ng, Machine Learning, Week 5 , Programming exercise, nnCostFunction,
- CCF NOI1015 星期几
- Hadoop的namenode没有起来