예제 #1
0
	def test_C_enable(self):
		#获取数据
		enableSrcData, enableDestData = self.data_driver.get_data_from_xls('enable')

		#高级查询筛选数据
		self.common_page.wait_for_loading()
		user_search = SearchForm(self.driver)
		user_search.advance_search(enableSrcData)

		#选中数据
		self.common_page.wait_for_loading()
		user_table = TableForm(self.driver)
		user_table.choose_from_table(0)

		#停用数据
		self.common_page.wait_for_loading()
		self.common_page.enable_()

		#高级查询筛选数据
		self.common_page.wait_for_loading()
		user_search = SearchForm(self.driver)
		user_search.advance_search(enableDestData)

		#判断数据是否正确
		self.common_page.wait_for_loading()
		user_table.compare_from_table(enableDestData)
예제 #2
0
	def test_D_changeManager(self):
		#获取数据
		changeMangerSrcData, changeMangerDestData = self.data_driver.get_data_from_xls('changeManagerData')

		#高级查询筛选数据
		self.common_page.wait_for_loading()
		user_search = SearchForm(self.driver)
		user_search.advance_search(changeMangerSrcData)

		#选中数据
		self.common_page.wait_for_loading()
		user_table = TableForm(self.driver)
		user_table.choose_from_table(0)

		#更换负责人
		change_manager(self.driver, changeMangerDestData.get('saleAreaManagerName'))

		#高级查询筛选数据
		self.common_page.wait_for_loading()
		user_search = SearchForm(self.driver)
		user_search.advance_search(changeMangerDestData)

		#判断数据是否正确
		self.common_page.wait_for_loading()
		user_table.compare_from_table(changeMangerDestData)
예제 #3
0
	def test_A_add(self):
		#获取数据
		addSrcData, addDestData = self.data_driver.get_data_from_xls('addData')

		#新增数据
		self.common_page.wait_for_loading()
		add_user = AddForm(self.driver)
		add_user.add(addDestData)

		#高级查询筛选数据
		self.common_page.wait_for_loading()
		user_search = SearchForm(self.driver)
		user_search.advance_search(addDestData)

		#判断数据是否正确
		self.common_page.wait_for_loading()
		user_table = TableForm(self.driver)
		user_table.compare_from_table(addDestData)