wsyu / easytest Goto Github PK
View Code? Open in Web Editor NEW自动化接口测试
自动化接口测试
(第三方补充,经过本人对Django的理解,个人得出安装方法)
进入EasyTest-master\EasyTest\settings.py修改DATABASES为你当前mysql参数
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': "127.0.0.1",
'NAME': "EasyTest",
'USER': "...",
'PASSWORD': "superuser",
'PORT': "3000",
}
}
# 生成数据库迁移脚本,并生成表结构
python36 manage.py makemigrations base
python36 manage.py migrate
'''
System check identified some issues:
WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion,
by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/e
n/2.0/ref/databases/#mysql-sql-mode
Operations to perform:
Apply all migrations: admin, auth, base, contenttypes, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
'''''
# 创建超级用户,用户后台管理数据库,并按提示输入相应用户名,密码,邮箱。 如不需用,可跳过此步骤
python36 manage.py createsuperuser # 创建超级管理员(可忽略)
# 启动服务
python36 manage.py runserver 127.0.0.1:8000 # 启动EasyTest服务
# 访问
http://127.0.0.1:8000/index/
File "EasyTest-master\base\views.py", line 134, in interface_add
project = Project.objects.get(prj_id=prj_id)
File "C:\Python36\lib\site-packages\django\utils\datastructures.py", line 77, in __getitem__
list_ = super().__getitem__(key)
KeyError: 'is_sign'
需要增加个默认选项,不能为空
File "C:\1\EasyTest-master\base\views.py", line 176, in case_run
case_result = execute.run_case()
File "C:\1\EasyTest-master\lib\execute.py", line 33, in run_case
step_info = self.step(step)
File "C:\1\EasyTest-master\lib\execute.py", line 72, in step
if_dict["body"], if_dict["data_type"])
File "C:\1\EasyTest-master\lib\execute.py", line 205, in call_interface
res = requests.post(url=url, json=data, headers=header, verify=False)
The current path, base/plan_update, didn't match any of these.
readme里为什么不加上如何使用?
想问一下您页面样式加载不出来是为什么?
非python开发,对这个项目有兴趣,请问如何初始化,把项目启动起来。
macOS系统,python3 、Django、Pymysql、Requests 环境已安装.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.