当前位置:网站首页>Interface testing practical tutorial 01: interface testing environment construction
Interface testing practical tutorial 01: interface testing environment construction
2022-07-27 13:21:00 【Program yuanyuexia】
Here comes the interface testing tutorial !

Do interface test , We have to build a set of interface environment that can run locally . This time I chose an easy to build , A system suitable for learning —— Student management system .
Python install
This management system is Python It's written in code , Therefore need Python Environmental Science .

Installation is quite mindless , Install it according to the installation package and method provided by me .
Postman install
Postman Is an interface testing tool . It is also a mindless installation , Install it according to the installation package and method provided by me .

Pycharm install
Pycharm yes python Language editing tools . Anencephalic installation +3, Don't say ~

Project deployment
01 After decompressing the project , use Pycharm Open the project

02 stay Pycharm Type the command in the command line window of , Install the modules that the project depends on

pip3 install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
03 stay Pycharm Type the command in the command line window of , Start project
python run_server.py
tips: Because avoid 2 The port to take up , I have modified the default port of the project to 8099,IP It's local 127.0.0.1( Can be in run_server.py And modify it by yourself )
Because I'm here py The default port has been modified in the file , It may be related to the interface document to be discussed later URL atypism , But it doesn't hurt ~

If you run the following error (Django Version incompatibility )
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x0000024D934BDD08>
Traceback (most recent call last):
……
File "C:\Python37\lib\site-packages\django\contrib\admin\widgets.py", line 152
'%s=%s' % (k, v) for k, v in params.items(),
^
SyntaxError: Generator expression must be parenthesizedYou need to jump to the error reporting path , Remove this comma , Then retype python run_server.py Command to start the project .

04 Read the interfaces in the project API Document or interface list , Get the interface
05 Type in the browser :IP: port /api/departments/ If you can get the data , Prove that the service was started successfully .

stay Postman Have a try , You can also get results , No problem .

above , The environment is ready . If you need a full set of projects, you can contact me , In case of problems , You can leave a comment below .
To be continued !!!
边栏推荐
- 500强企业如何提升研发效能?来看看行业专家怎么说!
- B站713故障后的多活容灾建设|TakinTalks大咖分享
- 「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader
- MySQL扩展
- [nuxt 3] (XII) project directory structure 2
- Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion
- clearfix的作用
- [node+ts] build node+typescript project
- Feign's overall process
- Flinksql synchronizes data from Oracle to Doris, with a total of more than 50 fields and more than 30 million entries in Oracle tables
猜你喜欢

Xposed+fdex2 app shelling (black cat complains about app shelling)

Why does the class annotated with @configuration generate cglib proxy?

Isolation level

赋能金融风控加分项的这30个问题,您都搞懂了吗

如何调试JNI程序

Amd adrenalin 22.7.1 driver update: double the performance of OpenGL and support Microsoft win11 22h2 system

@Simple understanding and use of conditionalonproperty

Cvpr22 | graph neural architecture search of relational consciousness

Build mtk6765 compilation environment

Seata's landing practice in ant International Banking
随机推荐
Mongodb slow query and index
完美指南|如何使用 ODBC 进行无代理 Oracle 数据库监控?
粘制定位
Connotative quotations
SQL GROUP BY语句
Detail the execution process of JDBC query method
Talk about one of the important classes of feign components, reactivefeign
从tidb实时同步到mysql 只能用 tidb binlog 工具吗?
JS true / false array conversion
xshell7可以登录mysql虚拟机不能登陆mysql
「游戏引擎 浅入浅出」4.1 Unity Shader和OpenGL Shader
[cute new solution] Fibonacci sequence
Background and framework introduction and basic environment preparation of hucang integrated e-commerce project
Wfuzz, a test tool that can blur everything that can be blurred
ECCV2022 | RU&谷歌提出用CLIP进行zero-shot目标检测!
Poj1548 robots [bipartite graph minimum path coverage]
Detail the construction methods, attributes and common methods in reflection
Gan: generate adversarial networks
Sff1004-mhchxm diode sff1004
Map interface