# mkTestCase
这个项目诞生的初衷是为了解决编写繁琐重复编写用例情况,**特别是 web 页面表单类的测试用例**。
### 背景:
某web系统,我正在A模块下a页面的测试用例,该页面的功能可概括为对数据的增删改查。当我写b页面时,同样是增删改查。当我来到c页面时,也是增删改查。
**于是我发现,这些页面就是模块名称以及字段不一样而已,本质上都是对表单的增删改查验证**
改变的就是模块名称,其他都套路都是一样不变的!
那么我是否可以就只写一些模块名称,其余通用部分是否可以让程序自动完成呢?
此想法变引出以下目标
### 目标:**像搭积木一样自动生成测试用例**
### 初步设计:
1. 把增删改查这种普适性的用例先写好
2. 输入模块标题,然后设置该模块需要新增还是查询还是 xxx
- 例如 我这个用例的 模块依次 **设备管理 -> 设备保养 -> 保养工单**,需要进行增删改查操作,那么是否可以这样输入 **["设备管理", "设备保养", "保养工单", ["Add", "Modify", "Delete","Search"]**
这个目标当前已经完成
- [ ] 前端页面设计
- [x] 后台逻辑编写
后端其实已经初步完成了,以列表方式输入一波数据,
```python
[
["设备管理", "设备保养", "保养工单", ["Add", "Modify", "Delete", "Search"]]
["质量管理", "破四口资料", ["Add", "Modify", "Delete"]]
]
```
就能自动生成测试用例
Raw data
{
"_id": null,
"home_page": "https://github.com/yongchin0821/mkTestCase",
"name": "mkTestCase",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "testcase,automatically generate test cases,automated test",
"author": "Yongchin",
"author_email": "yongchin39@qq.com",
"download_url": "https://files.pythonhosted.org/packages/77/0c/d0e0133cef47a6914f6defb6d5f2b4de1d2fee28fd426156f07ee9f7543c/mkTestCase-0.1.1.tar.gz",
"platform": null,
"description": "# mkTestCase\n\n\u8fd9\u4e2a\u9879\u76ee\u8bde\u751f\u7684\u521d\u8877\u662f\u4e3a\u4e86\u89e3\u51b3\u7f16\u5199\u7e41\u7410\u91cd\u590d\u7f16\u5199\u7528\u4f8b\u60c5\u51b5\uff0c**\u7279\u522b\u662f web \u9875\u9762\u8868\u5355\u7c7b\u7684\u6d4b\u8bd5\u7528\u4f8b**\u3002\n\n### \u80cc\u666f\uff1a\n\n\u67d0web\u7cfb\u7edf\uff0c\u6211\u6b63\u5728A\u6a21\u5757\u4e0ba\u9875\u9762\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u8be5\u9875\u9762\u7684\u529f\u80fd\u53ef\u6982\u62ec\u4e3a\u5bf9\u6570\u636e\u7684\u589e\u5220\u6539\u67e5\u3002\u5f53\u6211\u5199b\u9875\u9762\u65f6\uff0c\u540c\u6837\u662f\u589e\u5220\u6539\u67e5\u3002\u5f53\u6211\u6765\u5230c\u9875\u9762\u65f6\uff0c\u4e5f\u662f\u589e\u5220\u6539\u67e5\u3002\n**\u4e8e\u662f\u6211\u53d1\u73b0\uff0c\u8fd9\u4e9b\u9875\u9762\u5c31\u662f\u6a21\u5757\u540d\u79f0\u4ee5\u53ca\u5b57\u6bb5\u4e0d\u4e00\u6837\u800c\u5df2\uff0c\u672c\u8d28\u4e0a\u90fd\u662f\u5bf9\u8868\u5355\u7684\u589e\u5220\u6539\u67e5\u9a8c\u8bc1**\n\u6539\u53d8\u7684\u5c31\u662f\u6a21\u5757\u540d\u79f0\uff0c\u5176\u4ed6\u90fd\u5957\u8def\u90fd\u662f\u4e00\u6837\u4e0d\u53d8\u7684\uff01\n\u90a3\u4e48\u6211\u662f\u5426\u53ef\u4ee5\u5c31\u53ea\u5199\u4e00\u4e9b\u6a21\u5757\u540d\u79f0\uff0c\u5176\u4f59\u901a\u7528\u90e8\u5206\u662f\u5426\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u81ea\u52a8\u5b8c\u6210\u5462\uff1f\n\u6b64\u60f3\u6cd5\u53d8\u5f15\u51fa\u4ee5\u4e0b\u76ee\u6807\n\n### \u76ee\u6807\uff1a**\u50cf\u642d\u79ef\u6728\u4e00\u6837\u81ea\u52a8\u751f\u6210\u6d4b\u8bd5\u7528\u4f8b**\n\n### \u521d\u6b65\u8bbe\u8ba1\uff1a\n\n1. \u628a\u589e\u5220\u6539\u67e5\u8fd9\u79cd\u666e\u9002\u6027\u7684\u7528\u4f8b\u5148\u5199\u597d\n\n2. \u8f93\u5165\u6a21\u5757\u6807\u9898\uff0c\u7136\u540e\u8bbe\u7f6e\u8be5\u6a21\u5757\u9700\u8981\u65b0\u589e\u8fd8\u662f\u67e5\u8be2\u8fd8\u662f xxx\n- \u4f8b\u5982 \u6211\u8fd9\u4e2a\u7528\u4f8b\u7684 \u6a21\u5757\u4f9d\u6b21 **\u8bbe\u5907\u7ba1\u7406 -> \u8bbe\u5907\u4fdd\u517b -> \u4fdd\u517b\u5de5\u5355**\uff0c\u9700\u8981\u8fdb\u884c\u589e\u5220\u6539\u67e5\u64cd\u4f5c\uff0c\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u8fd9\u6837\u8f93\u5165 **[\"\u8bbe\u5907\u7ba1\u7406\", \"\u8bbe\u5907\u4fdd\u517b\", \"\u4fdd\u517b\u5de5\u5355\", [\"Add\", \"Modify\", \"Delete\",\"Search\"]**\n\n\n\n\u8fd9\u4e2a\u76ee\u6807\u5f53\u524d\u5df2\u7ecf\u5b8c\u6210\n\n\n\n- [ ] \u524d\u7aef\u9875\u9762\u8bbe\u8ba1\n\n- [x] \u540e\u53f0\u903b\u8f91\u7f16\u5199\n\n\n\n\u540e\u7aef\u5176\u5b9e\u5df2\u7ecf\u521d\u6b65\u5b8c\u6210\u4e86\uff0c\u4ee5\u5217\u8868\u65b9\u5f0f\u8f93\u5165\u4e00\u6ce2\u6570\u636e\uff0c\n\n```python\n[\n [\"\u8bbe\u5907\u7ba1\u7406\", \"\u8bbe\u5907\u4fdd\u517b\", \"\u4fdd\u517b\u5de5\u5355\", [\"Add\", \"Modify\", \"Delete\", \"Search\"]]\n [\"\u8d28\u91cf\u7ba1\u7406\", \"\u7834\u56db\u53e3\u8d44\u6599\", [\"Add\", \"Modify\", \"Delete\"]]\n]\n```\n\n\u5c31\u80fd\u81ea\u52a8\u751f\u6210\u6d4b\u8bd5\u7528\u4f8b\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Write test cases like building blocks",
"version": "0.1.1",
"project_urls": {
"Bug Tracker": "https://github.com/yongchin0821/mkTestCase/issues",
"Homepage": "https://github.com/yongchin0821/mkTestCase"
},
"split_keywords": [
"testcase",
"automatically generate test cases",
"automated test"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "770cd0e0133cef47a6914f6defb6d5f2b4de1d2fee28fd426156f07ee9f7543c",
"md5": "dfa3ca735d931199dab20f5d66d9306a",
"sha256": "a08128c457ef77a0d3e063611da74d2cd8591574015757077c0e386ce0b25dba"
},
"downloads": -1,
"filename": "mkTestCase-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "dfa3ca735d931199dab20f5d66d9306a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 32057,
"upload_time": "2023-09-04T02:31:18",
"upload_time_iso_8601": "2023-09-04T02:31:18.712803Z",
"url": "https://files.pythonhosted.org/packages/77/0c/d0e0133cef47a6914f6defb6d5f2b4de1d2fee28fd426156f07ee9f7543c/mkTestCase-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-04 02:31:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yongchin0821",
"github_project": "mkTestCase",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "mktestcase"
}