Go to file
chenyongzhiaaron e5a2e5f3f3 修改打印日志及去掉一些重复的函数 2023-03-28 10:59:31 +08:00
.idea 修改打印日志及去掉一些重复的函数 2023-03-28 10:59:31 +08:00
OutPut 修改打印日志及去掉一些重复的函数 2023-03-28 10:59:31 +08:00
__pycache__ first commit 2023-03-28 09:54:53 +08:00
common 修改打印日志及去掉一些重复的函数 2023-03-28 10:59:31 +08:00
data first commit 2023-03-28 09:54:53 +08:00
debug first commit 2023-03-28 09:54:53 +08:00
ext_script first commit 2023-03-28 09:54:53 +08:00
image first commit 2023-03-28 09:54:53 +08:00
temp first commit 2023-03-28 09:54:53 +08:00
test_script first commit 2023-03-28 09:54:53 +08:00
upload_server first commit 2023-03-28 09:54:53 +08:00
.gitignore Initial commit 2023-03-20 03:14:05 +00:00
HTMLTestRunnerN.py first commit 2023-03-28 09:54:53 +08:00
HTMLTestRunnerNew.py first commit 2023-03-28 09:54:53 +08:00
Pipfile 修改打印日志及去掉一些重复的函数 2023-03-28 10:59:31 +08:00
Pipfile.lock 修改打印日志及去掉一些重复的函数 2023-03-28 10:59:31 +08:00
README.md first commit 2023-03-28 09:54:53 +08:00
Read.md first commit 2023-03-28 09:54:53 +08:00
main_personal_information.py first commit 2023-03-28 09:54:53 +08:00
test_main.py first commit 2023-03-28 09:54:53 +08:00

README.md

Case

项目介绍

接口自动化测试项目

软件架构

软件架构说明 unittest + pymysql + openpyxl + HTMLTestRunner

安装教程

  1. pip install -r requirement.txt
  2. excel 按照格式写入测试用例
  3. 执行.bat 文件

使用说明

  1. 提取参数方式可以使用正则jsonpath及json逐层取值
  2. xxxx
  3. Personalinformation

介绍

Python随机生成个人信息, 包括姓名、性别、年龄、出生日期、身份证号、银行卡号、电话、手机号、邮箱等信息。

1、生成随机个人信息

PS D:\api-test-project> python .\main_personal_information.py                                                                                                                                                                                                 海省广州市南
请输入你需要生成的数据总数:10
+--------+------+------+------------+--------------------+----------------------+--------------+-------------+-------------------------+----------------------------------------+--------------------+                                                        门特别行政区
| 用户名 | 性别 | 年龄 |    生日    |       身份证       |    银行卡或信用卡    |     座机     |    手机号   |           邮箱          |                  地址                  |  统一社会信用代码  |
+--------+------+------+------------+--------------------+----------------------+--------------+-------------+-------------------------+----------------------------------------+--------------------+                                                        西省张家港市
|  刘世  |  男  |  57  | 1965-07-21 | 342422196507219413 |  62263745016607204   | 0744-3715089 | 14705083324 |     liushi@tianya.cn    |    甘肃省辽阳县沙湾海口街y座 180548    | 713101514054645086 |
| 龙清承 |  男  |  56  | 1966-08-21 | 342400196608212132 | 62284150185529051643 | 0893-4423648 | 13487550352 | longqingcheng@tianya.cn |    辽宁省玉珍市黄浦重庆街z座 401247    | 93421303115117882W |
|  刘娴  |  女  |  37  | 1985-05-23 | 411023198505239964 | 6213058212589619696  | 0562-0004972 | 17303409666 |    liuxian@tianya.cn    |     福建省拉萨县朝阳胡街X座 479131     | 92341122605351081N |
|  朱晨  |  男  |  55  | 1967-10-08 | 142733196710082991 |  45128971703439970   | 0375-7394954 | 18024463495 |     zhuchen@139.com     | 宁夏回族自治区秀云县高坪任路Q座 544781 | 955205231604137955 |
| 许天有 |  男  |  51  | 1971-10-17 | 330901197110176212 |  62592648755593670   | 0973-8733227 | 13413236004 |     xutianyou@wo.cn     |    辽宁省天津市南长深圳路f座 952461    | 91120114649961877C |
|  陈锦  |  女  |  29  | 1993-02-12 | 452123199302128568 |  62260020819291645   | 0915-7410180 | 17509030433 |    chenjin@icloud.com   |    重庆市西安市沙湾广州街G座 531384    | 92445302298701343Q |
+--------+------+------+------------+--------------------+----------------------+--------------+-------------+-------------------------+----------------------------------------+--------------------+