Beispiel #1
0
 def test_03surgety_pathology(self):
     SyfClinicalReport.surgery_pathology()
Beispiel #2
0
 def test_01reportshow(self):
     Login.login_Syf(url, '30048', '5913')
     Login.maxmize_window()
     SyfClinicalReport.goto_Report()
     SyfClinicalReport.input_Hid('3444471')
Beispiel #3
0
 def test_02surgeryNum(self):
     num_surgery = SyfClinicalReport.num_surgery()
     print num_surgery

#we use global varialbe driver
driver=Config.ChromeDriver
#Url for login is a global varible
url=Config.LoginUrl
autocase = Config.autocase_path
log = Config.log_file_path
book = load_workbook(autocase)
sheet = book['pathology']
Login.login_Syf(url,'30048','5913')
Login.maxmize_window()
HospitalNums = operateExcel.All_content('Hid')

n = operateExcel.max_row('pathology')+1  # excel row
SyfClinicalReport.goto_Report()
for Hid in HospitalNums:   #遍历要测试的病历号
    # ReportList.goto_reportList()
    # ReportList.del_checkCode(Hid)        #删除该病历号下的校验代码化内容
    SyfClinicalReport.input_Hid(Hid)
    is_disappeared = WebDriverWait(driver, 20, 1).until_not(
        lambda x: x.find_element_by_xpath('//div[@class="divBlockHid"]').is_displayed())
    if is_disappeared:
        globals.log(Hid+' '+"手术信息加载超时")
        continue
    surgeryList = driver.find_element_by_id('selShouShuList')
    num_operations= SyfClinicalReport.num_surgery()
    if num_operations == 0:
        globals.log(str(num_operations))
        globals.log(Hid+"手术次数未获取到")
        continue
Beispiel #5
0
#!/usr/bin/env python
# -*-coding:utf-8 -*-
# Author:  Weir Gao --<>
# Purpose:影像A的校验代码化测试
# Created: 2018/11/27

import sys
import os
import Config
from Commons import Login, SyfClinicalReport, ReportList, operateExcel

#we use global varialbe driver
driver = Config.ChromeDriver
#Url for login is a global varible
url = Config.LoginUrl

Login.login_Syf(url, '30048', '8613')
Login.maxmize_window()
HospitalNums = operateExcel.All_content('Hid')
for Hid in HospitalNums:  #遍历要测试的病历号
    SyfClinicalReport.goto_Report()
    SyfClinicalReport.input_Hid(Hid)
    SyfClinicalReport.selectType('ImgA')
    SyfClinicalReport.yearSelect('a', '2')
    SyfClinicalReport.jiaoyan('ImgA', Hid)
    SyfClinicalReport.yearSelect('a', '5')
    SyfClinicalReport.jiaoyan('ImgA', Hid)
    SyfClinicalReport.yearSelect('a', '10')
    SyfClinicalReport.jiaoyan('ImgA', Hid)
Beispiel #6
0
#!/usr/bin/env python
# -*-coding:utf-8 -*-
# Author:  Weir Gao --<>
# Purpose:首次术前的B超校验
# Created: 2018/8/15


import sys
import os
import Config
from Commons import Login, SyfClinicalReport,ReportList,operateExcel


#we use global varialbe driver
driver=Config.ChromeDriver
#Url for login is a global varible
url=Config.LoginUrl

Login.login_Syf(url,'30048','8613')
# Login.maxmize_window()
HospitalNums = operateExcel.All_content('Hid')

for Hid in HospitalNums:   #遍历要测试的病历号
    SyfClinicalReport.goto_Report()
    SyfClinicalReport.input_Hid(Hid)
    SyfClinicalReport.jiaoyan('Bchao_pre',Hid)
Beispiel #7
0
#!/usr/bin/env python
# -*-coding:utf-8 -*-
# Author:  Weir Gao --<>
# Purpose:
# Created: 2018/7/24

import sys
import os
import Config
from Commons import Login, SyfClinicalReport, ReportList, operateExcel

#we use global varialbe driver
driver = Config.ChromeDriver
#Url for login is a global varible
url = Config.LoginUrl
Login.login_Syf(url, '30048', '5913')
Login.maxmize_window()
HospitalNums = operateExcel.All_content('Hid')
for Hid in HospitalNums:  #遍历要测试的病历号
    SyfClinicalReport.goto_Report()
    SyfClinicalReport.input_Hid(Hid)
    SyfClinicalReport.selectType('AsssyA')
    SyfClinicalReport.jiaoyan_AssayA(Hid)
    SyfClinicalReport.yearSelect('a', '2')
    SyfClinicalReport.jiaoyan_AssayA(Hid)
    SyfClinicalReport.yearSelect('a', '5')
    SyfClinicalReport.jiaoyan_AssayA(Hid)
    SyfClinicalReport.yearSelect('a', '10')
    SyfClinicalReport.jiaoyan_AssayA(Hid)
Beispiel #8
0
#!/usr/bin/env python
# -*-coding:utf-8 -*-
# Author:  Weir Gao --<>
# Purpose:
# Created: 2018/8/23

import sys
import os
import Config
from Commons import Login, SyfClinicalReport, ReportList, operateExcel

#we use global varialbe driver
driver = Config.ChromeDriver
#Url for login is a global varible
url = Config.LoginUrl

Login.login_Syf(url, '30048', '5913')
Login.maxmize_window()
HospitalNums = operateExcel.All_content('Hid')
for Hid in HospitalNums:  #遍历要测试的病历号
    SyfClinicalReport.goto_Report()
    SyfClinicalReport.input_Hid(Hid)
    SyfClinicalReport.jiaoyan_Bchao(Hid)
Beispiel #9
0
import unittest
import sys
import os
import openpyxl
from openpyxl.reader.excel import load_workbook
import Config
from Commons import Login, SyfClinicalReport, ReportList, operateExcel, conn_sqlserver

#we use global varialbe driver
driver = Config.ChromeDriver
#Url for login is a global varible
url = Config.LoginUrl

Login.login_Syf(url, '30048', '5913')
Login.maxmize_window()
SyfClinicalReport.goto_Report()

reports = operateExcel.get_column('ReportNo')
n = 2  # excel row
for re in reports:  #遍历要测试的病历号
    #不同病历号,直接替换reportNo 不适用
    SyfClinicalReport.input_Hid('2796182')
    WebDriverWait(
        driver,
        10).until_not(lambda the_driver: the_driver.find_element_by_class_name(
            'divBlockHid').is_displayed())
    driver.find_element_by_id('txtCheckReportType').click()
    driver.find_element_by_css_selector(
        "div[data-text='病理形态学']").click()  # 选择病理形态学的报告类别
    WebDriverWait(driver,
                  10).until(lambda the_driver: the_driver.find_element_by_id(
Beispiel #10
0
# Created: 2018/11/22


import sys
import os
import Config
from Commons import Login, SyfClinicalReport,ReportList,operateExcel


#we use global varialbe driver
driver=Config.ChromeDriver
#Url for login is a global varible
url=Config.LoginUrl

Login.login_Syf(url,'30048','8613')
Login.maxmize_window()
HospitalNums = operateExcel.All_content('Hid')
for Hid in HospitalNums:   #遍历要测试的病历号
    SyfClinicalReport.goto_Report()
    SyfClinicalReport.input_Hid(Hid)
    SyfClinicalReport.selectType('Img131I')
    SyfClinicalReport.yearSelect("a",'2')
    SyfClinicalReport.jiaoyan('Img131I', Hid)
    SyfClinicalReport.yearSelect("a",'5')
    SyfClinicalReport.jiaoyan('Img131I',Hid)
    SyfClinicalReport.yearSelect("a",'10')
    SyfClinicalReport.jiaoyan('Img131I', Hid)
    SyfClinicalReport.yearSelect("b",'2')
    SyfClinicalReport.jiaoyan('Img131I', Hid)
    SyfClinicalReport.yearSelect("b", '5')
    SyfClinicalReport.jiaoyan('Img131I', Hid)