Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishiqing/rishiqing-testing
Rishqing backend interface testing framework
https://github.com/rishiqing/rishiqing-testing
Last synced: about 2 months ago
JSON representation
Rishqing backend interface testing framework
- Host: GitHub
- URL: https://github.com/rishiqing/rishiqing-testing
- Owner: rishiqing
- Created: 2019-04-16T07:27:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T01:52:22.000Z (over 2 years ago)
- Last Synced: 2023-03-03T17:06:41.355Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 61.5 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rishiqing-testing
日事清接口测试python框架v0.1框架说明
-----
1.framework
框架基本支持,抽象层,包括网络连接、基础用例父类、工具类等。2.rishiqing
业务逻辑类入口
-----
entry.py
entry.py是唯一运行入口开发环境配置
-----
1.安装pipenv
pip install pipenv2.使用pipenv安装依赖
pipenv --python pypy3
pipenv install3.根据使用的IDE自行设置pipenv虚拟环境解释器
ui测试方法
-----
1.使用测试模板case/example.xlsx2.在模板中编写测试用例
3.在程序中运行测试用例查看结果,示例在example.py
ui测试用例说明
-----
遵循json语法,使用css选择器进行选择,一个测试用例的简单示例:
[{"action":[{"homePage":""}]},
{"element":"link_text=登录","action":[{"click":""}]},
{"element":"name=username","action":[{"click":""},{"clear":""},{"sendKey":"[email protected]"}]},
{"element":"name=password","action":[{"click":""},{"clear":""},{"sendKey":"rsq123456"}]},
{"element":"css_selector=button:nth-child(5)","action":[{"click":""}]},
{"element":"css=.error-msg > span","action":[{"sleep": 10},{"check":"用户名或密码错误"}]}]ui测试语法详解
-----