Excel接口自动化(1)公共变量

import os

# 整个项目的根目录绝对路径
BASEDTR = os.path.dirname(os.path.dirname(__file__))

# 测试数据文件的绝对路径
FILEPATH = BASEDTR + "\\TestData\\inter_test_data.xlsx"

# API的sheet表中各个列的编号(符合直观的显示,从1开始)
API_apiName = 2
API_requestUrl = 3
API_requestMothod = 4
API_paramsType = 5
API_apiTestCaseFileName = 6
API_active = 7

# 接口用例的sheet表中各个列的编号(符合直观的显示,从1开始)
CASE_requestData = 1
CASE_relyData = 2
CASE_responseCode = 3
CASE_responseData = 4
CASE_dataStore = 5
CASE_checkPoint = 6
CASE_active = 7
CASE_status = 8
CASE_errorInfo = 9

#存储依赖的数据
REQUEST_DATA = {}  # 来自于request请求
RESPONSE_DATA = {} # 来自于response响应


if __name__ == "__main__":
    print(FILEPATH)

你可能感兴趣的:(【接口自动化】)