Пример #1
0
 def test_043_check_connection_time_d_letter(self):
     u"""客户端重连超时类型选择timed,客户端重连超时单位选择d,填入非数字字符(testlink_ID:3199-6)"""
     log.debug("043")
     tmp = TimePolicyBusiness(self.driver)
     #检查客户端重连超时为非法字符时的情况
     result = tmp.check_edit_timeout_timed_tip(0,
         "abc", "d", u"必须是一个整数并大于或等于1")
     self.assertTrue(result), "check timeout type is timed,the timout time is letter, test fail!"
     print "check timeout type is timed,the timout time is letter, test pass!"
Пример #2
0
 def test_042_check_connection_time_d_100000000(self):
     u"""客户端重连超时类型选择timed,客户端重连超时单位选择d,填入数字100000000(testlink_ID:3199-5)"""
     log.debug("042")
     tmp = TimePolicyBusiness(self.driver)
     #检查客户端重连超时为非法字符时的情况
     result = tmp.check_edit_timeout_timed_tip(0,
         "100000000", "d", u"必须是一个整数并小于或等于99999999")
     self.assertTrue(result), "check timeout type is timed,the timout time is 100000000, test fail!"
     print "check timeout type is timed,the timout time is 100000000, test pass!"