def get_rap_db(): """ 从auto_ci获取rap 数据库信息 :return: rap 数据库连接信息 """ rap_db = {"dbhost": MysqlConfig.get("rap_db_host"), "dbport": MysqlConfig.getint("rap_db_port"), "dbname": MysqlConfig.get("rap_db"), "dbuser": MysqlConfig.get("rap_db_name"), "dbpasswd": MysqlConfig.get("rap_db_passwd")} return MysqlClent.get_conn(**rap_db)
def get_testlink_db(): """ 从auto_ci获取testlink 数据库信息 :return: testlink 数据库信息 """ testlink_db = { "dbhost": MysqlConfig.get("testlink_db_host"), "dbport": MysqlConfig.getint("testlink_db_port"), "dbname": MysqlConfig.get("testlink_db_db"), "dbuser": MysqlConfig.get("testlink_db_name"), "dbpasswd": MysqlConfig.get("testlink_db_passwd") } return mydb.get_conn(**testlink_db)
def get_test_suites(testlink_project_id): """ 从nodes_hierarchy表 获取 node_type_id=2的测试套件 :param testlink_project_id: testlink的项目id :return: 返回 测试套件 数组 """ testsuites_list = list() if testlink_project_id not in ('NoneType', 'null', 'Null', '', ' ', None): # node_type_id=2获取testlink测试套件 case_statistics_condition = MysqlConfig.get("testlink_case_statistics") if case_statistics_condition == '': testsuites = select_list( 'node_type_id=2', 'parent_id={}'.format(testlink_project_id)) else: testsuites = select_list( 'node_type_id=2', 'parent_id={}'.format(testlink_project_id), 'name like "%{}%"'.format(case_statistics_condition)) if len(testsuites) > 0: testsuites_list = get_testsuites(testsuites, []) return testsuites_list
""" @Author : QA @File : Center_xqAction.py @desc : 项目:center 模块:center_xq 接口方法封装 """ from center.testAction import encryption import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('center_xq_apiURL', 'center') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } appkey = '1552893617253867' def test_api_v2_1326(apiname, urladdress, taskid): """ 学信网获取报告 :param apiname: 接口标识,string :param urladdress: 项目域名,string :param taskid: 任务id,string
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : 2020-03-16 @Author : QA @File : loginAction.py @desc : """ import json import requests from common.myCommon.Logger import getlog from common.myConfig import MysqlConfig LOGGER = getlog(__name__) API_TEST_HEADERS = {"Content-Type": "application/json"} web_baseUrl = MysqlConfig.get('web_apiURL', 'xyf') email = "*****@*****.**" passwd = "123" rq = requests.Session() def test_nca_login(): pass def test_creditpay_cm_login(): pass def test_creditpay_fm_login(): pass
@Author : QA @File : AppAction.py @desc : 项目:financeCloud 模块:app 接口方法封装 """ from financeCloud.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('app_apiURL', 'financeCloud') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = {"Content-Type": "application/json", "Cache-Control": "no-cache"} LICENCES = loginAction.test_app_login() def test_order_takeGoods(orderid): """ 用户确认收货 :param orderid: 订单id,number :return: response.text """ start_time = time.time() MysqlClent.update(MysqlClent.get_conn(), 't_rap', 'is_exe = "Y"', 'id = 3194') requesturl = baseUrl + "/order/takeGoods"
""" @Author : QA @File : EcommerceAction.py @desc : 项目:ai 模块:Ecommerce 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('Ecommerce_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = {"Content-Type": "application/json", "Cache-Control": "no-cache"} def test_api_taobao_login(name, password, reqid, token): """ 1、使用用户名密码登录并获取信息 :param reqid: 会话id(非必填),string :param name: 用户名(必填),string :param password: 密码(必填),string :param token: 分配的token参数(必填),string :return: response.text """ start_time = time.time()
""" @Author : QA @File : AppserverAction.py @desc : 项目:reborn 模块:appserver 接口方法封装 """ from reborn.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('appserver_apiURL', 'reborn') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } LICENCES = loginAction.test_appserver_login() API_TEST_HEADERS['mytoken'] = LICENCES def test_api_78dk_app_periods_applyPeriods(amount, extra, method, period, periodmoney, productdetailuuid, recommendcode, systemamount, userlocation): """
# -*- coding: utf-8 -*- """ @Author : QA @File : CrawleroperatorAction.py @desc : 项目:ai 模块:crawlerOperator 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('crawlerOperator_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_mobile_phone_config(phone, reqid, token): """ 1、获取运营商授权初始化配置接口 :param reqid: 会话id(非必填),string :param token: 分配的token参数(必填),string :param phone: 11位手机号(必填),string :return: response.text
# -*- coding: utf-8 -*- """ @Author : QA @File : BankccbAction.py @desc : 项目:ai 模块:BankCCB 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('BankCCB_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_bankccb_userid_login(name, password, reqid, token): """ 1、用户名密码登录 :param name: 用户名(必填),string :param password: 密码(必填),string :param reqid: 会话ID(非必填),string :param token: 分配的token参数(必填),string
# -*- coding: utf-8 -*- """ @Author : QA @File : DishonestexecutorAction.py @desc : 项目:ai 模块:DishonestExecutor 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('DishonestExecutor_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_execute_searchnocap(cardnum, name, token): """ 获取失信人数据 :param cardnum: 证件号码(必填),string :param name: 姓名,string :param token: 分配的token参数(必填),string :return: response.text
""" @Author : QA @File : YyglAction.py @desc : 项目:easyloan 模块:yygl 接口方法封装 """ from easyloan.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('yygl_apiURL', 'easyloan') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } LICENCES = loginAction.test_yygl_login() def test_api_manage_versionManage_queryVersionLists(channelno, currentpage, pagesize): """ 版本列表 :param channelno: 渠道编号(Y),string :param currentpage: 当前页(Y),number
@Author : QA @File : ManageAction.py @desc : 项目:finance 模块:manage 接口方法封装 """ from finance.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('manage_apiURL', 'finance') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = {"Content-Type": "application/json", "Cache-Control": "no-cache"} LICENCES = loginAction.test_manage_login() def test_checkPasswordUrl(key): """ 修改密码连接有效性验证 :return: response.text """ start_time = time.time() MysqlClent.update(MysqlClent.get_conn(), 't_rap', 'is_exe = "Y"', 'id = 1') requesturl = baseUrl + "/checkPasswordUrl" LOGGER.info("修改密码连接有效性验证请求地址:【{}】".format(requesturl))
@Author : QA @File : Dp_appAction.py @desc : 项目:dp 模块:dp_app 接口方法封装 """ from dp.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('dp_app_apiURL', 'dp') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = {"Content-Type": "application/json", "Cache-Control": "no-cache"} LICENCES = loginAction.test_dp_app_login() API_TEST_HEADERS['token'] = LICENCES def test_login_getLoginState(tvid): """ 获取登陆状态接口 :param tvid: ,string :return: response.text """ start_time = time.time() MysqlClent.update(MysqlClent.get_conn(), 't_rap', 'is_exe = "Y"', 'id = 1061')
""" import requests import json from common.myConfig import ConfigUtils as conf from common.myCommon.Logger import getlog from common.myConfig import MysqlConfig as ms from common.mydb import MysqlClent User = '******' Passwd = '5e81f67ed14a5443ec6a3682513f0b9b' mobile = '13699479886' app_passwd = 'll123456' DB = MysqlClent.get_conn('192.168.15.159', 3306, 'easyloan', 'easyloan', '78dk.com') web_URL = ms.get('easyloan_web_apiURL') app_URL = ms.get('easyloan_app_apiURL') LOGGER = getlog(__name__) API_TEST_HEADERS = {"Content-Type": "application/json"} rq = requests.Session() sign = conf.get('report', 'sign') def test_easyloan_web_login(): url = web_URL + '/api/78dk/web/login' querystring = json.dumps({"username": User, "password": Passwd}) response = rq.post(url, headers=API_TEST_HEADERS, data=querystring) LOGGER.info("token:【{}】".format(response.json()["data"]["token"])) return response.json()["data"]["token"]
""" @Author : QA @File : AppAction.py @desc : 项目:qiloan 模块:app 接口方法封装 """ from qiloan.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('app_apiURL', 'qiloan') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } LICENCES = loginAction.test_app_login() def test_api_78dk_app_login_register(mobile, vercode): """ 注册 :param mobile: 手机号(Y),string :param vercode: 验证码,string :return: response.text
# -*- coding: utf-8 -*- """ @Author : QA @File : ViolationAction.py @desc : 项目:ai 模块:Violation 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('Violation_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_wz_query(carno, ein, token, vin): """ 获取违章信息 :param carno: 车牌号(必填),string :param ein: 发动机号后六位(必填),string :param token: 分配的token参数(必填),string :param vin: 车架号后六位(必填),string
@Author : QA @File : loginAction.py @desc : """ import json import requests import time from common.myCommon import Assertion from common.myCommon.Logger import getlog from common.myConfig import ConfigUtils from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') web_apiURL = MysqlConfig.get('web_apiURL', 'financeCloud') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } webUser = '' webPasswd = '' def test_web_login(): """ 用户退出登录 :return: response.text """
import ddt import requests from ai.testSource import etl_config, operator_analysis from common.myCommon import Assertion from common.myCommon.Logger import getlog from common.myCommon.TestBaseCase import TestBaseCase from common.myConfig import ConfigUtils from common.myConfig import MysqlConfig from common.myFile.ExcelUtil import ExcelIter from common.myFile.FileUtils import str_to_num from common.myCommon import TimeFormat from common.mydb import MysqlClent TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('operatorETL_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() excel_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'testSource') def operator_etl(data): """ 运营商ETL接口 :param data: ,object :return: response.text """ start_time = time.time() MysqlClent.update(MysqlClent.get_conn(), 't_rap', 'is_exe = "Y"', 'id = 1647')
# -*- coding: utf-8 -*- """ @Author : QA @File : MobilecrawlerAction.py @desc : 项目:ai 模块:MobileCrawler 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('MobileCrawler_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_mobile_phone_config(phone, reqid, token): """ 1、获取运营商授权初始化配置接口 :param reqid: 会话id(非必填),string :param phone: 11位手机号(必填),string :param token: 分配的token参数(必填),string :return: response.text
""" @Author : QA @File : NcaAction.py @desc : 项目:xyf 模块:nca 接口方法封装 """ from xyf.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('nca_apiURL', 'xyf') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } LICENCES = loginAction.test_nca_login() def test_auditing_orderAuditing_rule_approve(orderid): """ 审核详情_认证信息 :param orderid: 订单id,number :return: response.text """
# -*- coding: utf-8 -*- """ @Author : QA @File : BankabcAction.py @desc : 项目:ai 模块:BankABC 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('BankABC_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_bankabc_login(name, password, reqid, token): """ 1.账号密码登录 :param name: 账户名,string :param password: 密码,string :param reqid: 会话id(url参数),string :param token: 分配的token(url参数),string
# -*- coding: utf-8 -*- """ @Author : QA @File : Gw_webAction.py @desc : 项目:gw 模块:gw_web 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('gw_web_apiURL', 'gw') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_78dk_admin_login_pwLogin(loginname, password): """ 帐号登陆 :param loginname: 登陆名称(Y),string :param password: 登陆密码(Y),string :return: response.text """
""" @Author : QA @File : Creditpay_urAction.py @desc : 项目:xyf 模块:creditpay_ur 接口方法封装 """ from xyf.testAction import loginAction import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('creditpay_ur_apiURL', 'xyf') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } LICENCES = loginAction.test_creditpay_ur_login() API_TEST_HEADERS['myToken'] = LICENCES def test_ui_user_findUserBill(cardno, currentpage, loantimebegin, loantimeend, pagesize, phone, realname, shouldrepaymentbegin, shouldrepaymentend, stage): """ 逾期用户-列表4.0.3.1
@Author : 罗林 @File : loginAction.py @desc : """ import json import requests from common.myCommon import Assertion from common.myCommon.Logger import getlog from common.myConfig import ConfigUtils as conf from common.myConfig import MysqlConfig from common.myFile import FileUtils from common.mydb import MysqlClent dp_web_URL = MysqlConfig.get('dp_web_apiURL', 'dp') dp_app_URL = MysqlConfig.get('dp_app_apiURL', 'dp') db_info = {"dbhost": "192.168.15.236", "dbport": 3308, "dbname": "car_screen", "dbuser": "******", "dbpasswd": "78dk.com"} DB = MysqlClent.get_conn(**db_info) LOGGER = getlog(__name__) API_TEST_HEADERS = {"Content-Type": "application/json", "Cache-Control": "no-cache"} rq = requests.Session() sign = conf.get('report', 'sign') username = '******' userpassword = '******' app_username = '******' app_userpassword = '******' def test_dp_web_login():
""" @Author : QA @File : LocaleapiAction.py @desc : 项目:ai 模块:localeApi 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('localeApi_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = {"Content-Type": "application/json", "Cache-Control": "no-cache"} def test_operator(phone_num): """ 请求与相应参数 :param phone_num: 待识别的电话号码,object :return: response.text """ start_time = time.time() MysqlClent.update(MysqlClent.get_conn(), 't_rap', 'is_exe = "Y"', 'id = 1039') requesturl = baseUrl + "/operator" LOGGER.info("请求与相应参数请求地址:【{}】".format(requesturl))
# -*- coding: utf-8 -*- """ @Author : QA @File : TelecomcrawlerAction.py @desc : 项目:ai 模块:TelecomCrawler 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('TelecomCrawler_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_telecom_login_submit(name, password, reqid, token): """ 1、账号密码登录提交接口 :param password: 密码(必填),string :param reqid: 会话id(非必填),string :param token: 分配的token参数(必填),string :param name: 用户名(必填),string
# -*- coding: utf-8 -*- """ @Author : QA @File : LotteryAction.py @desc : 项目:ai 模块:lottery 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('lottery_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_shensheng_login(name, password, reqid, token): """ 1、登录神圣计划 :param token: 分配的token参数(必填),string :param name: 用户名(必填),string :param password: 密码(必填),string :param reqid: 会话id(非必填),string
# -*- coding: utf-8 -*- """ @Author : QA @File : TbAction.py @desc : 项目:ai 模块:tb 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('tb_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_taobao_login(name, password, reqid, token): """ 1、使用用户名密码登录并获取信息 :param password: 密码(必填),string :param reqid: 会话id(非必填),string :param token: 分配的token参数(必填),string :param name: 用户名(必填),string
# -*- coding: utf-8 -*- """ @Author : QA @File : JdetlAction.py @desc : 项目:ai 模块:jdETL 接口方法封装 """ import requests, json, time from common.myCommon import Assertion from common.myConfig import ConfigUtils from common.myCommon.Logger import getlog from common.mydb import MysqlClent from common.myConfig import MysqlConfig TIMEOUT = ConfigUtils.getint('report', 'time_out') baseUrl = MysqlConfig.get('jdETL_apiURL', 'ai') LOGGER = getlog(__name__) rq = requests.Session() API_TEST_HEADERS = { "Content-Type": "application/json", "Cache-Control": "no-cache" } def test_api_etl_jd(reqid): """ 京东ETL :param reqid: 会话Id,string :return: response.text """ start_time = time.time()