Esempio n. 1
0
 def test_004_check_name_length_1(self):
     u"""name字符长度等于1(testlink_ID:3173)"""
     log.debug("004")
     tmp = TimePolicyBusiness(self.driver)
     #按照默认配置,新建一个时间策略
     tmp.new_timepolicy_default(0, "a", "1", "1", "h")
     #判断页面上有新建的时间策略
     result = tmp.check_have_timepolicy()
     tmp.del_all_timepolicy()
     self.assertTrue(result), "check name's length is 1, test fail!"
     print "check name's length is 1, test pass!"
Esempio n. 2
0
 def test_028_check_timeout_daily_0_23(self):
     u"""Timeout Type选择Daily,填入0-23的数字(testlink_ID:3194)"""
     log.debug("028")
     tmp = TimePolicyBusiness(self.driver)
     #新建时间策略,输入相应的数据,检查页面上是否有提示
     #按照默认配置,新建一个时间策略
     tmp.new_timepolicy_default(0, u"时间策略1", "1", "23", "h")
     #判断页面上有新建的时间策略
     result = tmp.check_have_timepolicy()
     self.assertTrue(result), "check timeout is hourly and input 0-23, test fail!"
     print "check timeout is hourly and input 0-23, test pass!"
Esempio n. 3
0
 def test_006_check_name_chinese(self):
     u"""name为特殊字符或汉字(testlink_ID:3175)"""
     log.debug("006")
     tmp = TimePolicyBusiness(self.driver)
     #按照默认配置,新建一个时间策略
     tmp.new_timepolicy_default(0, u"时间策略1", "1", "1", "h")
     #判断页面上有新建的时间策略
     result = tmp.check_have_timepolicy()
     tmp.del_all_timepolicy()
     self.assertTrue(result), "check name is Chinese, test fail!"
     print "check name is Chinese, test pass!"
Esempio n. 4
0
 def test_023_check_connection_time_d_99999999(self):
     u"""Connection Time选择m,填入数字1-99999999之间的数字-2(testlink_ID:3189-2)"""
     log.debug("023")
     tmp = TimePolicyBusiness(self.driver)
     #按照默认配置,新建一个时间策略
     tmp.new_timepolicy_default(0, u"时间策略1", "99999999", "1", "d")
     #判断页面上有新建的时间策略
     result = tmp.check_have_timepolicy()
     tmp.del_all_timepolicy()
     self.assertTrue(result), "check connection time is 99999999, test fail!"
     print "check connection time is 99999999, test pass!"
Esempio n. 5
0
 def test_005_check_name_length_32(self):
     u"""name字符长度等于1(testlink_ID:3174)"""
     log.debug("005")
     tmp = TimePolicyBusiness(self.driver)
     #按照默认配置,新建一个时间策略
     tmp.new_timepolicy_default(0, data_wireless['long_ssid'], "1", "1", "h")
     #判断页面上有新建的时间策略
     result = tmp.check_have_timepolicy()
     tmp.del_all_timepolicy()
     self.assertTrue(result), "check name's length is 32, test fail!"
     print "check name's length is 32, test pass!"