def test_list1_run(self):
     '''任务列表:按照时间查询'''
     self.user_login_verify_run("collegecheck","f")
     T=TaskList(self.driver)
     #开始日期和结束日期都为当前年的4-1
     text=T.time_search("4","1","6","1","1","6")
     self.assertIn("04-01",text)
     time.sleep(1)
     imagetest = getResultImage()
     imagetest.insert_image(self.driver,"task_time_search.jpg")
 def test_list2_run(self):
     '''任务列表:按照名称+时间查询'''
     self.user_login_verify_run("collegecheck","f")
     T=TaskList(self.driver)
     self.driver.find_element_by_id("taskNameInput").send_keys("批量检测")
     #开始日期和结束日期都为当前年的4-1
     text=T.time_search("4","1","6","1","1","6")
     self.assertIn("04-01",text)
     time.sleep(1)
     imagetest = getResultImage()
     imagetest.insert_image(self.driver,"task_name&time_search.jpg")