Esempio n. 1
0
 def __init__(self, driver):
     self.driver = driver
     self.dataFile = dataFileName()
     self.cmf = commonFun(self.driver)
     self.initDriver = initDriver()
     self.loginElem = loginPage(self.driver)
     self.roleElem = Role(self.driver)
     self.userElem = UserPage(self.driver)
     self.frameElem = frameElement(self.driver)
     self.authElem = AuthMethodPage(self.driver)
     self.dptment = Department(self.driver)
     self.resource = Resource(self.driver)
     self.account = Accountmgr(self.driver)
     self.windowsElem = WindowsResource(self.driver)
     self.databaseElem = DatabaseResource(self.driver)
     self.usergroup = Usergroup(self.driver)
     self.regroup = Regroup(self.driver)
     self.appElem = AppPage(self.driver)
     self.authorizationElem = AuthorizationPage(self.driver)
     self.testAutho = testAuthorization(self.driver)
     self.clientElem = ClientPage(self.driver)
     self.command = CommandRule(self.driver)
     self.ntp = NtpService(self.driver)
     self.mail = MailPage(self.driver)
     self.syslog = Syslog(driver)
     self.ssoElem = SsoPage(self.driver)
     self.alarm = AlarmPage(self.driver)
     self.PwdStr = PwdStrategy(self.driver)
     self.passwdenvelope = EnvelopePage(self.driver)
Esempio n. 2
0
    def set_remote_driver(self):
        driver_lists = globalValue().get_value()
        driver = initDriver().remote_open_driver(driver_lists[0],
                                                 driver_lists[1])

        #        driver = initDriver().remote_open_driver("http://172.16.10.21:5555/wd/hub","firefox")
        return driver
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.pwdstr = PasswordStr(self.browser)
     self.initDriver = initDriver()
     #前置条件
     self.commonSuite.pwdstr_module_prefix_condition()
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.alarmCase = AlarmConfig(self.browser)
     self.initDriver = initDriver()
     #前置条件
     self.commonSuite.alarm_strategy_module_prefix_condition()
Esempio n. 5
0
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.alarmCase = AlarmConfig(self.browser)
     self.initDriver = initDriver()
     #前置条件
     self.commonSuite.alarm_strategy_module_prefix_condition()
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.useAuthCase = UseAuthorization(self.browser)
     self.initDriver = initDriver()
     
     #前置条件
     self.commonSuite.use_auth_module_prefix_condition()
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     
     self.commonSuite = CommonSuiteData(self.browser)
     self.sessionCase = conversationStrategy(self.browser)
     self.initDriver = initDriver()
     #前置条件
     self.commonSuite.session_module_prefix_condition()
    def setUp(self):
        #定义驱动
        self.browser = setDriver().set_driver()
        self.commonSuite = CommonSuiteData(self.browser)
        self.net = NetworkCard(self.browser)
        self.initDriver = initDriver()

        #前置条件
        self.commonSuite.network_card_module_prefix_condition()
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.rout = RoutingConfiguration(self.browser)
     self.initDriver = initDriver()
     
     #前置条件
     self.commonSuite.routing_module_prefix_condition()
Esempio n. 10
0
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     
     self.commonSuite = CommonSuiteData(self.browser)
     self.sessionCase = conversationStrategy(self.browser)
     self.initDriver = initDriver()
     #前置条件
     self.commonSuite.session_module_prefix_condition()
Esempio n. 11
0
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.sys = SyslogService(self.browser)
     self.initDriver = initDriver()
     
     #前置条件
     self.commonSuite.syslog_module_prefix_condition()
    def setUp(self):
        #定义驱动
        self.browser = setDriver().set_driver()
        self.commonSuite = CommonSuiteData(self.browser)
        self.rout = RoutingConfiguration(self.browser)
        self.initDriver = initDriver()

        #前置条件
        self.commonSuite.routing_module_prefix_condition()
Esempio n. 13
0
 def setUp(self):
     #定义驱动
     self.browser = setDriver().set_driver()
     self.commonSuite = CommonSuiteData(self.browser)
     self.net = NetworkCard(self.browser)
     self.initDriver = initDriver()
     
     #前置条件
     self.commonSuite.network_card_module_prefix_condition()
Esempio n. 14
0
 def __init__(self, driver):
     self.driver = driver
     self.getElem = getElement(driver)
     self.dataFile = dataFileName()
     self.select = selectElement(driver)
     self.frameElem = frameElement(driver)
     self.cmf = commonFun(driver)
     self.log = log()
     self.cnEnde = cnEncode()
     self.network = Network(driver)
     self.initDriver = initDriver()
Esempio n. 15
0
 def __init__(self,driver):
     self.driver = driver
     self.getElem = getElement(driver)
     self.dataFile = dataFileName()
     self.select = selectElement(driver)
     self.frameElem = frameElement(driver)
     self.cmf = commonFun(driver)
     self.log = log()
     self.cnEnde = cnEncode()
     self.network = Network(driver)
     self.initDriver = initDriver()
	def tearDown(self):
		#流程后置条件
		self.comsuit.process_module_post_condition()
		initDriver().close_driver(self.browser)
Esempio n. 17
0
	def tearDown(self):
		initDriver().close_driver(self.browser)
 def tearDown(self):
     #双人授权后置条件
     self.comsuit.dualmandate_module_post_condition()
     initDriver().close_driver(self.browser)
 def tearDown(self):
     #认证方式后置条件
     self.commonSuite.auth_method_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):
		#时间规则后置条件
		self.comsuit.timerule_module_post_condition()
		initDriver().close_driver(self.browser)
 def tearDown(self):
     #配置审计后置条件
     self.commonSuite.system_log_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 22
0
 def tearDown(self):
     pass
     #单点登录后置条件
     self.commonSuite.database_sso_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):
		#备份还原后置条件
		self.comsuit.backup_restore_module_post_condition()
		initDriver().close_driver(self.browser)
Esempio n. 24
0
 def tearDown(self):
     #资源时间规则后置条件
     self.comsuit.retimerule_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 25
0
 def tearDown(self):
     #运维审计后置条件
     self.commonSuite.audit_log_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):
		self.comsuit.user_quit()
		initDriver().close_driver(self.browser)
Esempio n. 27
0
 def tearDown(self):
     #数据库后置条件
     self.comsuit.database_resource_post_condition()
     initDriver().close_driver(self.browser)
 def tearDown(self):
     pass
     #单点登录后置条件
     self.commonSuite.windows_sso_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):
		#双人授权后置条件
		self.comsuit.dualmandate_module_post_condition()
		initDriver().close_driver(self.browser)
 def tearDown(self):
     #流程后置条件
     self.comsuit.process_module_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):
		self.comsuit.windowre_module_post_condition()

		initDriver().close_driver(self.browser)
 def tearDown(self):
     #客户端后置条件
     self.commonSuite.user_quit()
     initDriver().close_driver(self.browser)
Esempio n. 33
0
	def tearDown(self):
		#角色后置条件
		self.comsuit.role_module_post_condition()

		initDriver().close_driver(self.browser)
Esempio n. 34
0
 def tearDown(self):
     #配置报表后置条件
     self.commonSuite.conf_report_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 35
0
 def tearDown(self):
     self.commonSuite.authori_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 36
0
    def tearDown(self):
        self.comsuit.windowre_module_post_condition()

        initDriver().close_driver(self.browser)
Esempio n. 37
0
 def tearDown(self):
     #行为报表后置条件
     self.commonSuite.opt_report_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 38
0
 def tearDown(self):
     #命令规则后置条件
     self.comsuit.commandrule_module_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):

		#用户组后置条件
		self.comsuit.usergroup_module_post_condition()

		initDriver().close_driver(self.browser)
 def tearDown(self):
     self.comsuit.user_quit()
     initDriver().close_driver(self.browser)
Esempio n. 41
0
 def tearDown(self):
     #AD域后置条件
     self.commonSuite.ad_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 42
0
 def set_local_driver(self):
     driver = initDriver().open_driver()
     return driver
 def tearDown(self):
     self.comsuit.passwd_envelope_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 44
0
    def tearDown(self):

        #用户组后置条件
        self.comsuit.usergroup_module_post_condition()

        initDriver().close_driver(self.browser)
Esempio n. 45
0
 def tearDown(self):
     self.commonSuite.authori_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 46
0
 def tearDown(self):
     #AD域后置条件
     self.commonSuite.ad_module_post_condition()
     initDriver().close_driver(self.browser)
Esempio n. 47
0
 def tearDown(self):
     #配置审计后置条件
     self.commonSuite.system_log_post_condition()
     initDriver().close_driver(self.browser)
	def tearDown(self):
		#数据库后置条件
		self.comsuit.database_resource_post_condition()
		initDriver().close_driver(self.browser)
	def tearDown(self):
		#时间规则后置条件
		self.comsuit.addressrule_module_post_condition()
		initDriver().close_driver(self.browser)
Esempio n. 50
0
 def tearDown(self):
     initDriver().close_driver(self.browser)
Esempio n. 51
0
 def tearDown(self):
     #应用发布后置条件
     self.commonSuite.application_module_post_condition()
     initDriver().close_driver(self.browser)