def test_accountNumLink9_run(self):
     '''信息列表:学生详情-转移批次'''
     self.user_login_verify_run("collegeuser","f")
     time.sleep(1)
     S=StuAccountList(self.driver)
     S.batchSearch("lytest123")
     # 点击搜索按钮
     self.driver.find_element_by_id("searchBtn").click()
     time.sleep(1)
     # 点击数量链接
     self.driver.find_element_by_xpath(".//*[@id='container']/table/tbody/tr[2]/td[4]/a/b").click()
     # 返回第一行的子账户
     sub_account = self.driver.find_element(*self.fist_sub_account).text
     # 转移批次
     S.optionBtn("转移批次","1")
     # 2对应批次lytest111
     i = 2
     S.transferBatch(i)
     time.sleep(2)
     # 进入对应批次查询
     S.batchAccount(i, sub_account)
     # 点击查询按钮
     S.searchBtn()
     # 返回第一行的子账户
     sub_account1 = self.driver.find_element(*self.fist_sub_account).text
     self.assertEqual(sub_account,sub_account1)
     # 获取页面截图
     imagetest = getResultImage()
     imagetest.insert_image(self.driver, "stu_transferBatch_success.jpg")
 def test_accountNumLink6_run(self):
     '''信息列表:进入个人详情-检测情况为0'''
     self.user_login_verify_run("collegeuser","f")
     time.sleep(1)
     S=StuAccountList(self.driver)
     S.batchSearch("lytest123")
     # 点击搜索按钮
     self.driver.find_element_by_id("searchBtn").click()
     time.sleep(1)
     # 点击数量链接
     self.driver.find_element_by_xpath(".//*[@id='container']/table/tbody/tr[2]/td[4]/a/b").click()
     S.batchAccount("3","collegeuser.201219110210")
     # 点击查询按钮
     S.searchBtn()
     self.assertFalse(S.personalTest())
     # 获取页面截图
     imagetest = getResultImage()
     imagetest.insert_image(self.driver, "perAccount_testNum0_fail.jpg")
 def test_accountNumLink2_run(self):
     '''信息列表:数量链接进入 根据批次和学生账号查询'''
     self.user_login_verify_run("collegeuser","f")
     time.sleep(1)
     S=StuAccountList(self.driver)
     S.batchSearch("lytest123")
     # 点击搜索按钮
     self.driver.find_element_by_id("searchBtn").click()
     time.sleep(1)
     # 点击数量链接
     self.driver.find_element_by_xpath(".//*[@id='container']/table/tbody/tr[2]/td[4]/a/b").click()
     # 批次和学生账户查询
     S.batchAccount("3", "collegeuser.201219110210")
     # 点击查询按钮
     S.searchBtn()
     batch,account=S.batchMsg()
     if batch == "lytest123" and account == "collegeuser.201219110210":
         flag = True
         self.assertTrue(flag)
         #获取页面截图
         imagetest = getResultImage()
         imagetest.insert_image(self.driver, "stuAccount_search1_success.jpg")