def test_accountNumLinkA_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.similarTest("60","65","2","5")
     # 点击查询按钮
     S.searchBtn()
     # 点击名称链接
     self.driver.find_element(*self.fist_sub_account).click()
     time.sleep(1)
     # 点击第一行名称链接 2对应第一行
     row = 2
     file_name = S.personalPaper(row)
     new_title= "%s.pdf" % file_name
     # print(new_title)
     flag = S.downVerify1(new_title)
     if flag == True:
         S.renameFileName1(new_title,".pdf")
     # 点击名称链接进行下载论文
     self.driver.find_element_by_xpath(".//*[@id='container']/tbody/tr[%s]/td[1]/a" % row).click()
     time.sleep(3)
     flag1 = S.downVerify1(new_title)
     self.assertTrue(flag1)
     # 获取页面截图
     imagetest = getResultImage()
     imagetest.insert_image(self.driver, "personal_download_success.jpg")
 def test_export_run(self):
     '''导出:导出信息表'''
     self.user_login_verify_run("collegecheck","f")
     S=StuAccountList(self.driver)
     now_title="大学生论文检测-学生账户批次信息表.xls"
     flag = S.downVerify1(now_title)
     if flag == True:
         S.renameFileName1(now_title,".xls")
     # 点击导出按钮
     self.driver.find_element_by_xpath(".//*[@id='exportForm']/button").click()
     time.sleep(3)
     flag1 = S.downVerify1(now_title)
     self.assertTrue(flag1)
     #获取页面截图
     imagetest = getResultImage()
     imagetest.insert_image(self.driver,"stuAccount_export_success.jpg")
 def test_accountNumLink1_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)
     # batch=S.firstBatch()
     self.driver.find_element_by_xpath(".//*[@id='container']/table/tbody/tr[2]/td[4]/a/b").click()
     now_title="大学生论文检测-lytest123账户信息表.xls"
     flag = S.downVerify1(now_title)
     if flag == True:
         S.renameFileName1(now_title,".xls")
     # 单击导出按钮
     self.driver.find_element_by_xpath("html/body/div[4]/div[3]/form[2]/button").click()
     time.sleep(3)
     flag1 = S.downVerify1(now_title)
     self.assertTrue(flag1)
     #获取页面截图
     imagetest = getResultImage()
     imagetest.insert_image(self.driver,"stuAccount_export1_success.jpg")
 def test_accountNumLinkD_run(self):
     '''信息列表:进入个人详情-下载V1.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.similarTest("60","65","2","5")
     # 点击查询按钮
     S.searchBtn()
     # 点击名称链接
     self.driver.find_element(*self.fist_sub_account).click()
     time.sleep(1)
     # 点击第一行名称链接 2对应第一行
     row = 2
     file_name = S.personalPaper(row)
     # 全文报告对应2
     verion = S.personalDown(2)
     new_title = "《" + file_name + "》 论文相似性检测报告("+"V1.0"+verion+"报告).pdf"
     print(new_title)
     flag = S.downVerify1(new_title)
     if flag == True:
         S.renameFileName1(new_title, ".pdf")
     # 点击版本链接 下载全文报告V1.0
     S.versionLink(6,3)
     time.sleep(3)
     flag1 = S.downVerify1(new_title)
     self.assertTrue(flag1)
     # 获取页面截图
     imagetest = getResultImage()
     imagetest.insert_image(self.driver, "personal_fullV1.0_success.jpg")