def test_list2B_run(self): '''进入名称链接:标记为-问题论文,请选择检测信息''' self.user_login_verify_run("collegecheck","f") time.sleep(1) T=TaskList(self.driver) # 进入名称链接 T.taskNameLink("ncy") # 标记为问题论文 T.markProblem() time.sleep(1) msg=T.alert() self.assertEqual(msg,"请选择检测信息。") imagetest = getResultImage() imagetest.insert_image(self.driver,"mark_paper_fail.jpg")
def test_list2A_run(self): '''进入名称链接:标记为-问题论文''' self.user_login_verify_run("collegecheck","f") time.sleep(1) T=TaskList(self.driver) # 进入名称链接 T.taskNameLink("ncy") # 勾选复选框 self.driver.find_element(*self.first_select_loc).click() # 标记为问题论文 T.markProblem() problem_num = T.paperNum() self.assertEqual(problem_num,"1") imagetest = getResultImage() imagetest.insert_image(self.driver,"mark_paper_success.jpg")