當前位置: 首頁>>代碼示例>>Python>>正文


Python CommonSuiteData.sys_switch_to_dep方法代碼示例

本文整理匯總了Python中common_suite_file.CommonSuiteData.sys_switch_to_dep方法的典型用法代碼示例。如果您正苦於以下問題:Python CommonSuiteData.sys_switch_to_dep方法的具體用法?Python CommonSuiteData.sys_switch_to_dep怎麽用?Python CommonSuiteData.sys_switch_to_dep使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在common_suite_file.CommonSuiteData的用法示例。


在下文中一共展示了CommonSuiteData.sys_switch_to_dep方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: testAccapproval

# 需要導入模塊: from common_suite_file import CommonSuiteData [as 別名]
# 或者: from common_suite_file.CommonSuiteData import sys_switch_to_dep [as 別名]

#.........這裏部分代碼省略.........
					self.acproval.approval_by_approver(acpData, number)
			except Exception as e:
				print ("urgent_agree_approvel fail: ") + str(e)
		self.log.log_end("urgent_agree_approvel")

	u'''訪問審批流程任務查詢'''
	def access_query_process_task_006(self):
		#日誌開始記錄
		self.log.log_start("access_query_process_task")
		#獲取流程任務查詢的數據
		taskData = self.get_accapproval_data("process_task")

		for dataRow in range(len(taskData)):
			data = taskData[dataRow]
			try:
				#如果不是第1行,讀取數據
				if dataRow != 0:
					if dataRow == 1:
						self.acproval.user_login(data[1])
					self.flow.query_process_task(data)
					self.log.log_detail(data[0], True)
			except Exception as e:
				print ("access_query_process_task fail: ") + str(e)
		self.log.log_end("access_query_process_task")

	u'''訪問審批個人曆史查詢'''
	def access_query_personal_history_007(self):
		#日誌開始記錄
		self.log.log_start("access_query_personal_history")
		#獲取個人曆史查詢的數據
		perData = self.get_accapproval_data("personal_history")

		for dataRow in range(len(perData)):
			data = perData[dataRow]
			try:
				#如果不是第1行,讀取數據
				if dataRow != 0:
					self.flow.query_personal_history(data)
					self.log.log_detail(data[0], True)
			except Exception as e:
				print ("access_query_personal_history fail: ") + str(e)
		self.loginElem.quit()
		self.log.log_end("access_query_personal_history")

	u'''訪問審批申請曆史查詢'''
	def access_query_apply_history_008(self):
		self.comsuit.use_new_user_login()
		#日誌開始記錄
		self.log.log_start("access_query_apply_history")
		#獲取申請曆史查詢的數據
		applyData = self.get_accapproval_data("apply_history")

		for dataRow in range(len(applyData)):
			data = applyData[dataRow]
			try:
				#如果不是第1行,讀取數據
				if dataRow != 0:
					self.flow.query_apply_history(data)
					self.log.log_detail(data[0], True)
			except Exception as e:
				print ("access_query_apply_history fail: ") + str(e)
		self.log.log_end("access_query_apply_history")

	u'''訪問審批全部曆史查詢'''
	def access_query_all_history_009(self):
		self.comsuit.dep_switch_to_sys()
		#日誌開始記錄
		self.log.log_start("access_query_all_history")
		#獲取全部曆史查詢的數據
		allData = self.get_accapproval_data("all_history")

		for dataRow in range(len(allData)):
			data = allData[dataRow]
			try:
				#如果不是第1行,讀取數據
				if dataRow != 0:
					self.flow.query_all_history(data)
					self.log.log_detail(data[0], True)
			except Exception as e:
				print ("access_query_all_history fail: ") + str(e)
		self.log.log_end("access_query_all_history")

	u'''訪問審批部門曆史查詢'''
	def access_query_department_history_010(self):
		self.comsuit.sys_switch_to_dep()
		#日誌開始記錄
		self.log.log_start("access_query_department_history")
		#獲取流程任務查詢的數據
		deprtData = self.get_accapproval_data("department_history")

		for dataRow in range(len(deprtData)):
			data = deprtData[dataRow]
			try:
				#如果不是第1行,讀取數據
				if dataRow != 0:
					self.flow.query_department_history(data)
					self.log.log_detail(data[0], True)
			except Exception as e:
				print ("access_query_department_history fail: ") + str(e)
		self.log.log_end("access_query_department_history")
開發者ID:isomper,項目名稱:testIsomp,代碼行數:104,代碼來源:test_access_approval.py


注:本文中的common_suite_file.CommonSuiteData.sys_switch_to_dep方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。