def __init__(self): self._data = get_data.get_yinhe_data( 'tool_module/website_link_check.yaml') self._data1 = get_data.get_yinhe_data( 'flow_module/put_record_query/customer_leaning_repeat.yaml') self._data2 = get_data.get_base_data('login_account.yaml') self._data3 = get_data.get_yinhe_data('classroom_check.yaml') self._data4 = get_data.get_yinhe_data( 'tool_module/landing_page_order.yaml')
def __init__(self): self._data = get_data.get_yinhe_data( 'tool_module/landing_page_tool.yaml') GLOBAL_VAR['projectName'] = const.projectName GLOBAL_VAR['ideaName'] = const.ideaName GLOBAL_VAR['websiteName'] = const.websiteName GLOBAL_VAR['landingPageName'] = const.landingPageName self.c = Check()
def get_ad_data_id(self, gatherType=1): ''' 获取广告数据id :param gatherType: 流量类型 1,手机流量,2,QQ流量 3,微信流量 :return: ''' self._data = get_data.get_yinhe_data('ad_module/ad_idea.yaml') ad_data = self._data.get('get_ad_data_id') url, method, header, params, shared, check = cotool.deal_data(ad_data) params['gatherType'] = gatherType res = httprequest(url, method, header, params) cotool.extract_variable(res, shared) cotool.assert_res(res, check) return res
def get_idea_id_for_tools(self, gatherType=3, adid=None): ''' 获取创意ID(工具使用方法) :param gatherType: 流量类型 1,手机流量 2,qq流量 3,微信流量 :return: ''' self._data = get_data.get_yinhe_data('ad_module/ad_idea.yaml') data = self._data.get('get_ad_ideas_id_for_tools') url, method, header, params, shared, check = cotool.deal_data(data) params['gatherType'] = gatherType params['id'] = adid res = httprequest(url, method, header, params) cotool.extract_variable(res, shared) return res
def add_student(self, type, token=None, subject_id=280, subject_name='PHP', rdc='1001-2001-4569-4570-4571-4572'): """ 录入 :param rdc: 部门连 :param subject_name: 科目名称 :param subject_id: 科目id :param type:1,手机流量 2,QQ流量 3,微信流量 :param token:1,拥有免费流量组 2,未拥有免费流量组 :return: """ _data = get_data.get_yinhe_data('flow_module/student_input.yaml') data = _data['add_student'] url, method, header, params, shared, check = cotool.deal_data(data) if token == 1: if rc.get_env() == 'pre': token = login.login_action('t0322511032') header['token'] = token else: token = login.login_action('m17673155297') header['token'] = token elif token == 2: if rc.get_env() == 'pre': token = login.login_action('t0322511032') header['token'] = token else: token = login.login_action('m17673155296') header['token'] = token params['gatherType'] = type params['subjectId'] = subject_id params['subjectName'] = subject_name params['receiveDeptIdChain'] = rdc # data['phoneNumber'] = phone_number res = httprequest(url, method, header, params) cotool.extract_variable(res, shared) cotool.assert_res(res, check)
def __init__(self): self._data = get_data.get_yinhe_data('tool_module/websites.yaml') self._api_data = get_data.get_yinhe_data('tool_module/landing_page_with_api.yaml')
def __init__(self): self._data = get_data.get_yinhe_data( 'data_module/flow_allot_statistical.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('tool_module/part_time.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('tool_module/landing_page_mgt.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('flow_module/put_record_query.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('data_module/dept_order_statistics.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('ad_module/ad_idea.yaml')
def __init__(self): self._query_data = get_data.get_yinhe_data( 'flow_module/qry_order_record.yaml')
def __init__(self): self._data = get_data.get_yinhe_data( 'account_module/put_account_manager.yaml')
def __init__(self): self._query_data = get_data.get_yinhe_data( 'flow_module/flow_apply_record_query.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('flow_module/student_input.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('tool_module/goods_manage.yaml')
def passed_apply(self): data = get_data.get_yinhe_data( 'account_module/recharge_apply_record.yaml') data = data['passed_apply'] cotool.quick_request(data)
def __init__(self): self._data = get_data.get_yinhe_data( 'account_module/recharge_transfer_record.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('tool_module/carrier_mgt.yaml')
def __init__(self): self._data = get_data.get_yinhe_data( 'tool_module/landing_page_with_api.yaml') self.cqc = CreateQrCode()
def __init__(self): self._data = get_data.get_yinhe_data( 'tool_module/invitation_statistics.yaml')
def __init__(self): self._data = get_data.get_yinhe_data( 'budget_module/flow_cost_mgt.yaml')
def __init__(self): self._query_data = get_data.get_yinhe_data( 'flow_module/allot_prepare.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('template.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('system_module/ad_channel_mgt.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('ad_module/consumer_single.yaml') self._time = str(GLOBAL_VAR['todayTime']) self._cad = get_data.get_yinhe_data('ad_module/ad_plan.yaml') self._cct = get_data.get_yinhe_data('ad_module/ad_idea.yaml')
def __init__(self): self._data = get_data.get_yinhe_data('ad_module/import_batch.yaml') self._time = str(GLOBAL_VAR['todayTime'])
def __init__(self): self._data = get_data.get_yinhe_data('budget_module/put_budget_manage.yaml')