import requests import json import hashlib import random import datetime """对一些必须变化的参数进行参数化配置""" reqSerialNum=datetime.datetime.now().strftime('%Y%m%d%H%M%S')+"py"+str(random.randint(11111,9999999))###请求流水号 tellerId="B1430qq"+str(random.randint(111,9999999))###操作员号 contactIdNo='53012119890311'+str(random.randint(1111,9999)) ###联系人证件号 bankActId='62108112345678'+str(random.randint(1111,9999))###结算银行账户号 """python的接口API请求参数,包括jsondata加密,发送请参""" url='http://152.161.11.11:8080/test/test1234' jsonData={"contactCountryType":"OMA","contactEmail":"12343304@qq.com","provId":"北京","cityId":"北京市","areaId":"东城区","apiVersion":"2.0.0.0","merchName":"个人_热热5","merchShortName":"XC基本信息进件","tellerId":tellerId,&#
python3.6接口自动化测试,pytho加盐加密发送post请求
最新推荐文章于 2023-05-31 20:25:21 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)