def test_datacleaning_receiver_null_template_list_url(self):
     """
     验证数据清洗—接收器—模板列表,ENV_OUTPUT_DATA_LIST为空,页面id为__data_template-list元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_template_list_url(None)  # 获取数据源触发器—新增数据url
     ps_value = dcr.get_datacleaning_receiver_page_value(
         url)  # 打开url地址,获取id为__data_template-list的元素是否存在,返回布尔值
     assert '__data_template_list' not in ps_value
 def test_datacleaning_receiver_null_template_details_url(self):
     """
     验验证数据清洗—接收器—模板详情,ENV_OUTPUT_DATA_DETAIL为空,页面id为__data_template-detail元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_template_details_url(None)  # 获取数据源触发器—新增数据url
     ps_value = dcr.get_datacleaning_receiver_page_value(
         url)  #data_template-detail的元素是否存在,返回布尔值
     assert '__data_template-detail' not in ps_value
 def test_datacleaning_receiver_null_data_list_url(self):
     """
     验证数据清洗—接收器—数据列表,ENV_OUTPUT_TEMPLATE_LIST为空,页面id为__data_source_list元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_dataclean_receiver_datalist_url(None)  # 获取数据源触发器—新增数据url
     ps_value = dcr.get_datacleaning_receiver_page_value(
         url, )  # 打开url地址,获取id为__data_source_list的元素是否存在,返回布尔值
     assert '__data_source_list' not in ps_value
 def test_datacleaning_receiver_template_list_url(self):
     """
     验证数据清洗—接收器—模板列表,ENV_OUTPUT_DATA_LIST非空,页面id为__data_template-list元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_template_list_url(template_list)  # 获取数据源触发器—新增数据url
     boolean_value = dcr.get_datacleaning_receiver_id(
         url, '__data_template_list'
     )  # 打开url地址,获取id为__data_template-list的元素是否存在,返回布尔值
     assert boolean_value == True
 def test_datacleaning_receiver_null_data_details_url(self):
     """
     验证数据清洗—接收器—数据列表,ENV_OUTPUT_DATA_DETAIL为空,页面id为__data_source_detail元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_dataclean_receiver_datadetails_url(
         None)  # 获取数据源触发器—新增数据url
     ps_value = dcr.get_datacleaning_receiver_page_value(
         url)  # 打开url地址,获取id为__data_source_detail的元素是否存在,返回布尔值
     assert '__data_source_detail' not in ps_value
 def test_datacleaning_receiver_template_details_url(self):
     """
     验证数据清洗—接收器—模板详情,ENV_OUTPUT_DATA_DETAIL非空,页面id为__data_template-detail元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_template_details_url(
         template_details)  # 获取数据源触发器—新增数据url
     boolean_value = dcr.get_datacleaning_receiver_id(
         url, '__data_template-detail'
     )  # 打开url地址,获取id为__data_template-detail的元素是否存在,返回布尔值
     assert boolean_value == True
 def test_datacleaning_receiver_data_list_url(self):
     """
     验证数据清洗—接收器—数据列表,ENV_OUTPUT_TEMPLATE_LIST非空,页面id为__data_source_list元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_dataclean_receiver_datalist_url(
         data_source_list)  # 获取数据源触发器—新增数据url
     print(url)
     boolean_value = dcr.get_datacleaning_receiver_id(
         url, '__data_source_list'
     )  # 打开url地址,获取id为__data_source_list的元素是否存在,返回布尔值
     assert boolean_value == True
 def test_datacleaning_receiver_data_details_url(self):
     """
     验证数据清洗—接收器—数据列表,ENV_OUTPUT_DATA_DETAIL非空,页面id为__data_source_detail元素是否存在
     """
     dcr = DataCleaningReceiver(self.driver)  # 打开浏览器
     url = dcr.get_dataclean_receiver_datadetails_url(
         data_source_details)  # 获取数据源触发器—新增数据url
     print(url)
     boolean_value = dcr.get_datacleaning_receiver_id(
         url, '__data_source_detail'
     )  # 打开url地址,获取id为__data_source_detail的元素是否存在,返回布尔值
     assert boolean_value == True