def setup_class(self): # print('test start') self.session = Init.BS_SESSION self.base_info = Init.BASE_INFO self.console_host = self.base_info['bsHost'] self.workspace_id = self.base_info['ctyunAcctId'] self.head_json = self.base_info['headers_json'] self.today = CreateLogData().day_time self.now = CreateLogData().now_time self.head_form = self.base_info['headers_form']
def test_CDN_240872(self): url = self.console_host + '/cdn/gw/refresh/CreateRefreshTask' # 只能刷新已启用的域名 used_domain_list = CreateLogData().get_used_domain_list() directory_list = ['/images/', '/text/', '/pdf/'] valuse_list = [] for temp in used_domain_list: valuse_list.append(temp + directory_list[0]) valuse_list.append(temp + directory_list[1]) valuse_list.append(temp + directory_list[2]) payload = { "data": { "workspaceId": self.workspace_id, "values": valuse_list, "domain": "", "task_type": "2" } } print(type(payload), payload) response = self.session.request("POST", url, data=json.dumps(payload), verify=False, timeout=10) print("-------------------查询 CreateRefreshTask 接口-------------------") print('请求url: ' + url) print("请求data: " + str(payload)) print("返回: " + response.text) print("重点验证:" " expect: 返回码与响应时间") assert response.status_code == 200
def __init__(self, session, host, workspaceid): self.domain_info = Init.DOMAIN_INFO self.base_info = Init.BASE_INFO self.session = session self.host = host self.workspaceId = workspaceid self.log = CreateLogData()
def setup_class(self): # print('test start') self.session = Init.CTYUN_SESSION self.base_info = Init.BASE_INFO self.log_info = Init.LOG_INFO self.console_host = self.base_info['ctyunHost'] self.workspaceId = self.base_info['ctyun_workspaceid'] self.log = CreateLogData() self.get_domain_list = self.log.get_ctyun_domain_list(self.console_host, self.workspaceId) # 接口 self.fbrData_url = self.console_host + self.log_info['fbrData'] self.ispList_url = self.console_host + self.log_info['ispList'] # 日期类 self.day_time = self.log.day_time self.yesterday_time = self.log.yesterday_time self.sevenday_time = self.log.sevenday_time self.month_time = self.log.month_time self.now_time = self.log.now_time # 查询数据 self.default_data = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_001 = {"data": {"workspaceId": self.workspaceId, "productType": ['001'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_003 = {"data": {"workspaceId": self.workspaceId, "productType": ['003'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_004 = {"data": {"workspaceId": self.workspaceId, "productType": ['004'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '004'), "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_005 = {"data": {"workspaceId": self.workspaceId, "productType": ['005'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "startTime": self.day_time, "endTime": self.now_time}} self.single_domain = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": [random.choice(self.get_domain_list)], "startTime": self.day_time, "endTime": self.now_time}} self.date_data_yesterday = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.yesterday_time, "endTime": self.now_time}} self.date_data_sevenday = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.sevenday_time, "endTime": self.now_time}} self.date_data_month = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.month_time, "endTime": self.now_time}}
def setup_class(self): print('test start') self.v1_info = Init.V1_INFO self.base_info = Init.V1_BASE_INFO self.host = self.base_info["host"] self.ctyunacctid = self.base_info["ctyunAcctId"] self.domain = self.base_info["domain"] self.log = CreateLogData() self.seven = self.log.sevenday_time self.month = self.log.month_time self.today = self.log.month_time self.now = self.log.now_time
def setup_class(self): print('test start') self.base_info = Init.BASE_INFO self.domain_info = Init.DOMAIN_INFO self.createDomain = CreateDomain() self.assert_common = Assert() self.session = Init.CONSOLE_SESSION self.bs_session = Init.BS_SESSION console_host = self.base_info['host'] workspace_id = self.base_info['workspaceid'] self.verifyDomain_url = console_host + self.domain_info['verifyDomain'] self.check_domain_url = console_host + self.domain_info['detailDomain'] self.domain_list = CreateLogData().get_domain_list()
def setup_class(self): now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) day_time = int(time.mktime(datetime.now().date().timetuple())) now_time = get_unix_time(now) # print('test start') self.session = Init.CONSOLE_SESSION self.base_info = Init.BASE_INFO self.console_host = self.base_info['host'] self.workspace_id = self.base_info['workspaceid'] self.head_json = self.base_info['headers_json'] self.today = day_time self.now = now_time self.head_form = self.base_info['headers_form'] # 提取工作区对应的域名列表 self.log = CreateLogData() self.get_domain_list = self.log.get_available_domain_list()
def setup_class(self): now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) # today = time.strftime("%Y-%m-%d", time.localtime()) # sevenday = (date.today() + timedelta(days=-6)).strftime("%Y-%m-%d %H:%M:%S") # month = (date.today() + timedelta(days=-29)).strftime("%Y-%m-%d %H:%M:%S") now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) day_time = int(time.mktime(datetime.now().date().timetuple())) now_time = get_unix_time(now) # print('test start') self.session = Init.BS_SESSION self.base_info = Init.BASE_INFO self.console_host = self.base_info['bsHost'] self.workspace_id = self.base_info['ctyunAcctId'] self.head_json = self.base_info['headers_json'] self.today = day_time self.now = now_time self.head_form = self.base_info['headers_form'] # 提取工作区对应的域名列表 self.log = CreateLogData() self.get_domain_list = self.log.get_bs_used_domain_list(self.console_host,self.workspace_id) self.get_fan_domain=self.log.get_bs_all_domain(self.console_host,self.workspace_id)
def setup_class(self): # print('test start') self.session = Init.CTYUN_SESSION self.base_info = Init.BASE_INFO self.log_info = Init.LOG_INFO self.console_host = self.base_info['ctyunHost'] self.workspaceId = self.base_info['ctyun_workspaceid'] self.log = CreateLogData() self.get_domain_list = self.log.get_ctyun_domain_list( self.console_host, self.workspaceId) # 接口 self.uri_url = self.console_host + self.log_info['ListTopUri'] self.referer_url = self.console_host + self.log_info['ListTopReferer'] self.domain_url = self.console_host + self.log_info['ListTopDomain'] self.ip_url = self.console_host + self.log_info['ListTopIp'] # 日期类 self.day_time = self.log.day_time self.yesterday_time = self.log.yesterday_time self.before_yesterday = self.log.before_yesterday self.sevenday_time = self.log.sevenday_time self.month_time = self.log.month_time self.now_time = self.log.now_time # 查询数据 self.default_uri_hit_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "httpCode": [], "productCode": [], "status": "HIT", "sortedBy": "flow" } } self.default_uri_miss_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "httpCode": [], "productCode": [], "status": "MISS", "sortedBy": "flow" } } self.default_referer_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "productCode": [], "sortedBy": "flow" } } self.default_domain_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "productCode": [], "sortedBy": "flow" } } self.default_ip_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "provinceCode": [], "sortedBy": "flow" } } self.uri_hit_data_001 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "top": 100, "httpCode": [], "productCode": ["001"], "status": "HIT", "sortedBy": "flow" } } self.uri_miss_data_001 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "top": 100, "httpCode": [], "productCode": ["001"], "status": "MISS", "sortedBy": "flow" } } self.referer_data_001 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "top": 100, "productCode": ["001"], "sortedBy": "flow" } } self.domain_data_001 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "productCode": ["001"], "sortedBy": "flow" } } self.ip_data_001 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "top": 100, "provinceCode": ["001"], "sortedBy": "flow" } } self.uri_hit_data_003 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "top": 100, "httpCode": [], "productCode": ["003"], "status": "HIT", "sortedBy": "flow" } } self.uri_miss_data_003 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "top": 100, "httpCode": [], "productCode": ["003"], "status": "MISS", "sortedBy": "flow" } } self.referer_data_003 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "top": 100, "productCode": ["003"], "sortedBy": "flow" } } self.domain_data_003 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "productCode": ["003"], "sortedBy": "flow" } } self.ip_data_003 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "top": 100, "provinceCode": ["003"], "sortedBy": "flow" } } self.uri_hit_data_004 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "top": 100, "httpCode": [], "productCode": ["004"], "status": "HIT", "sortedBy": "flow" } } self.uri_miss_data_004 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '004'), "top": 100, "httpCode": [], "productCode": ["004"], "status": "MISS", "sortedBy": "flow" } } self.referer_data_004 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '004'), "top": 100, "productCode": ["004"], "sortedBy": "flow" } } self.domain_data_004 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '004'), "productCode": ["004"], "sortedBy": "flow" } } self.ip_data_004 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '004'), "top": 100, "provinceCode": ["004"], "sortedBy": "flow" } } self.uri_hit_data_005 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "top": 100, "httpCode": [], "productCode": ["005"], "status": "HIT", "sortedBy": "flow" } } self.uri_miss_data_005 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "top": 100, "httpCode": [], "productCode": ["005"], "status": "MISS", "sortedBy": "flow" } } self.referer_data_005 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "top": 100, "productCode": ["005"], "sortedBy": "flow" } } self.domain_data_005 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "productCode": ["005"], "sortedBy": "flow" } } self.ip_data_005 = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "top": 100, "provinceCode": ["005"], "sortedBy": "flow" } } self.uri_hit_httpcode_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "httpCode": [random.choice(httpCode)], "productCode": [], "status": "HIT", "sortedBy": "flow" } } self.uri_miss_httpcode_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "httpCode": [random.choice(httpCode)], "productCode": [], "status": "MISS", "sortedBy": "flow" } } self.uri_hit_request_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "httpCode": [], "productCode": [], "status": "HIT", "sortedBy": "request" } } self.uri_miss_request_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "httpCode": [], "productCode": [], "status": "MISS", "sortedBy": "request" } } self.referer_request_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "productCode": [], "sortedBy": "request" } } self.domain_request_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "productCode": [], "sortedBy": "request" } } self.ip_request_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "provinceCode": [], "sortedBy": "request" } } self.ip_province_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.yesterday_time, "endTime": self.day_time, "domain": self.get_domain_list, "top": 100, "provinceCode": [random.choice(province)], "sortedBy": "request" } } self.today_uri_hit_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.day_time, "endTime": self.now_time, "domain": self.get_domain_list, "top": 100, "httpCode": [], "productCode": [], "status": "HIT", "sortedBy": "flow" } } self.today_uri_miss_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.day_time, "endTime": self.now_time, "domain": self.get_domain_list, "top": 100, "httpCode": [], "productCode": [], "status": "MISS", "sortedBy": "flow" } } self.today_referer_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.day_time, "endTime": self.now_time, "domain": self.get_domain_list, "top": 100, "productCode": [], "sortedBy": "flow" } } self.today_domain_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.day_time, "endTime": self.now_time, "domain": self.get_domain_list, "productCode": [], "sortedBy": "flow" } } self.today_ip_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.day_time, "endTime": self.now_time, "domain": self.get_domain_list, "top": 100, "provinceCode": [], "sortedBy": "flow" } } self.seven_domain_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.sevenday_time, "endTime": self.now_time, "domain": self.get_domain_list, "productCode": [], "sortedBy": "flow" } } self.senven_ip_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.sevenday_time, "endTime": self.now_time, "domain": self.get_domain_list, "top": 100, "provinceCode": [], "sortedBy": "flow" } } self.month_domain_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.month_time, "endTime": self.now_time, "domain": self.get_domain_list, "productCode": [], "sortedBy": "flow" } } self.month_ip_data = { "data": { "workspaceId": self.workspaceId, "startTime": self.month_time, "endTime": self.now_time, "domain": self.get_domain_list, "top": 100, "provinceCode": [], "sortedBy": "flow" } }
def setup_class(self): # print('test start') self.session = Init.CTYUN_SESSION self.base_info = Init.BASE_INFO self.log_info = Init.LOG_INFO self.console_host = self.base_info['ctyunHost'] self.workspaceId = self.base_info['ctyun_workspaceid'] self.log = CreateLogData() self.get_domain_list = self.log.get_ctyun_domain_list(self.console_host, self.workspaceId) # 接口 self.flow_url = self.console_host + self.log_info['dataList'] self.miss_dataList_url = self.console_host + self.log_info['missDataList'] self.req_url = self.console_host + self.log_info['requestDataList'] self.hit_url = self.console_host + self.log_info['hit'] self.httpcode_url = self.console_host + self.log_info['httpcode'] self.pvuv_url = self.console_host + self.log_info["pvuv"] # 日期类 self.day_time = self.log.day_time self.yesterday_time = self.log.yesterday_time self.before_yesterday = self.log.before_yesterday self.sevenday_time = self.log.sevenday_time self.month_time = self.log.month_time self.now_time = self.log.now_time # 查询数据 self.default_data = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_001 = {"data": {"workspaceId": self.workspaceId, "productType": ['001'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '001'), "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_003 = {"data": {"workspaceId": self.workspaceId, "productType": ['003'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '003'), "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_004 = {"data": {"workspaceId": self.workspaceId, "productType": ['004'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '004'), "startTime": self.day_time, "endTime": self.now_time}} self.cp_data_005 = {"data": {"workspaceId": self.workspaceId, "productType": ['005'], "isp": [], "province": [], "domain": self.log.get_ctyun_cp_domain(self.console_host, self.workspaceId, '005'), "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_1 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [1], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_2 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [2], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_3 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [3], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_4 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [4], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_5 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [5], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_6 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [6], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.isp_data_100 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [100], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} isp_list = [1, 2, 3, 4, 5, 6, 100] self.isp_data_random = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [random.choice(isp_list)], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.province_data_1 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [random.choice(province)], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time}} self.province_data_2 = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [random.choice(province)], "domain": self.get_domain_list, "startTime": self.yesterday_time, "endTime": self.now_time}} self.date_yesterday = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.yesterday_time, "endTime": self.now_time}} self.date_compare = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.before_yesterday, "endTime": self.yesterday_time}} self.date_sevenday = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.sevenday_time, "endTime": self.now_time}} self.date_month = {"data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.month_time, "endTime": self.now_time}} self.default_pvuv = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": self.get_domain_list, "startTime": self.day_time, "endTime": self.now_time, "ignore": "domain"}} self.random_domain_pvuv = { "data": {"workspaceId": self.workspaceId, "productType": [], "isp": [], "province": [], "domain": [random.choice(self.get_domain_list)], "startTime": self.day_time, "endTime": self.now_time, "ignore": "domain"}}