Пример #1
0
 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()
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 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)
Пример #6
0
 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')
Пример #7
0
 def __init__(self):
     self._data = get_data.get_yinhe_data(
         'data_module/flow_allot_statistical.yaml')
Пример #8
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('tool_module/part_time.yaml')
Пример #9
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('tool_module/landing_page_mgt.yaml')
Пример #10
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('flow_module/put_record_query.yaml')
Пример #11
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('data_module/dept_order_statistics.yaml')
Пример #12
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('ad_module/ad_idea.yaml')
Пример #13
0
 def __init__(self):
     self._query_data = get_data.get_yinhe_data(
         'flow_module/qry_order_record.yaml')
Пример #14
0
 def __init__(self):
     self._data = get_data.get_yinhe_data(
         'account_module/put_account_manager.yaml')
Пример #15
0
 def __init__(self):
     self._query_data = get_data.get_yinhe_data(
         'flow_module/flow_apply_record_query.yaml')
Пример #16
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('flow_module/student_input.yaml')
Пример #17
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('tool_module/goods_manage.yaml')
Пример #18
0
 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')
Пример #20
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('tool_module/carrier_mgt.yaml')
Пример #21
0
 def __init__(self):
     self._data = get_data.get_yinhe_data(
         'tool_module/landing_page_with_api.yaml')
     self.cqc = CreateQrCode()
Пример #22
0
 def __init__(self):
     self._data = get_data.get_yinhe_data(
         'tool_module/invitation_statistics.yaml')
Пример #23
0
 def __init__(self):
     self._data = get_data.get_yinhe_data(
         'budget_module/flow_cost_mgt.yaml')
Пример #24
0
 def __init__(self):
     self._query_data = get_data.get_yinhe_data(
         'flow_module/allot_prepare.yaml')
Пример #25
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('template.yaml')
Пример #26
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('system_module/ad_channel_mgt.yaml')
Пример #27
0
 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')
Пример #28
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('ad_module/import_batch.yaml')
     self._time = str(GLOBAL_VAR['todayTime'])
Пример #29
0
 def __init__(self):
     self._data = get_data.get_yinhe_data('budget_module/put_budget_manage.yaml')