def test_037_check_timeout_timed_d_99999999(self): u"""客户端重连超时类型选择timed,客户端重连超时单位选择d,填入数字1-99999999之间的数字-6(testlink_ID:3198-6)""" log.debug("037") tmp = TimePolicyBusiness(self.driver) #编辑一个时间策略,修改客户端重连超时类型为根据时间 tmp.change_timeout_timed(0, "99999999", "d") #获取页面所有标题 result = tmp.get_titlediv() self.assertIn("99999999d", result), "check timeout type is timed,the timout time is 99999999, test fail!" print "check timeout type is timed,the timout time is 99999999, test pass!"
def test_034_check_timeout_timed_h_0(self): u"""客户端重连超时类型选择timed,客户端重连超时单位选择h,填入数字1-99999999之间的数字-3(testlink_ID:3198-3)""" log.debug("034") tmp = TimePolicyBusiness(self.driver) #编辑一个时间策略,修改客户端重连超时类型为根据时间 tmp.change_timeout_timed(0, "1", "h") #获取页面所有标题 result = tmp.get_titlediv() self.assertIn("1h", result), "check timeout type is timed,the timout time is 1, test fail!" print "check timeout type is timed,the timout time is 1, test pass!"