コード例 #1
0
ファイル: PL_Suite001.py プロジェクト: KatherineWatson/VistA
def pl_test009 (resultlog, result_dir, namespace):
    '''This test verifies problems entered into the Problem List through Order Entry package'''
    testname = sys._getframe().f_code.co_name
    resultlog.write('\n' + testname + ', '
                    + str(datetime.datetime.today()) + ': ')
    logging.debug('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ')
    try:
        VistA1 = connect_VistA(testname + '_01', result_dir, namespace)
        pl = PLActions(VistA1, user='******', code='1Doc!@#$')
        pl.signon()
        pl.addcsv(ssn='323678904', pfile='./Functional/dataFiles/NISTinpatientdata0.csv')
        pl.verplist(ssn='323678904', vlist=['Essential Hypertension',
                                            'Chronic airway obstruction',
                                            'Acute myocardial',
                                            'Congestive Heart Failure'])
        pl.signoff()
        VistA2 = connect_VistA(testname + '_02', result_dir, namespace)
        oentry = ORActions(VistA2)
        oentry.signon()
        oentry.verproblems(ssn='323678904', vlist=['Essential Hypertension',
                                            'Chronic airway obstruction',
                                            'Acute myocardial',
                                            'Congestive Heart Failure'])
        oentry.signoff()
        VistA3 = connect_VistA(testname + '_03', result_dir, namespace)
        pl = PLActions(VistA3, user='******', code='1Doc!@#$')
        pl.signon()
        for i in range(4):
            pl.rem('323678904')
        pl.signoff()
    except TestHelper.TestError, e:
        resultlog.write(e.value)
        logging.error(testname + ' EXCEPTION ERROR: Unexpected test result')
コード例 #2
0
ファイル: PLMain01_suite.py プロジェクト: zxexz/VistA
def pl_test009 (test_suite_details):
    '''This test verifies problems entered into the Problem List through Order Entry package'''
    '''Multiple VistA instances to allow concurrent logins for when
    tstart and trollback become available and implemented'''
    testname = sys._getframe().f_code.co_name
    test_driver = TestHelper.TestDriver(testname)

    test_driver.pre_test_run(test_suite_details)
    try:
        test_driver.testname = testname + '_01'
        VistA1 = test_driver.connect_VistA(test_suite_details)
        pl = PLActions(VistA1, user='******', code='1Doc!@#$')
        pl.signon()
        pl.addcsv(ssn='323678904', pfile='./Functional/dataFiles/NISTinpatientdata0.csv')
        pl.verplist(ssn='323678904', vlist=['Essential',
                                            'Chronic',
                                            'Acute myocardial',
                                            'Congestive'])
        pl.signoff()

        test_driver.testname = testname + '_02'
        VistA2 = test_driver.connect_VistA(test_suite_details)
        oentry = ORActions(VistA2)
        oentry.signon()
        oentry.verproblems(ssn='323678904', vlist=['Essential ',
                                            'Chronic ',
                                            'Acute myocardial',
                                            'Congestive '])
        oentry.signoff()
        test_driver.testname = testname + '_03'
        VistA3 = test_driver.connect_VistA(test_suite_details)
        pl = PLActions(VistA3, user='******', code='1Doc!@#$')
        pl.signon()
        for i in range(4):
            pl.rem('323678904')
        pl.signoff()

        test_driver.post_test_run(test_suite_details)
    except TestHelper.TestError as e:
        test_driver.exception_handling(test_suite_details, e)
    else:
        test_driver.try_else_handling(test_suite_details)
    finally:
        test_driver.finally_handling(test_suite_details)
コード例 #3
0
def pl_test009(resultlog, result_dir, namespace):
    ''' Verify Problem List through Order Entry package'''
    '''Multiple VistA instances to allow concurrent logins for when
    tstart and trollback become available and implemented'''
    testname = sys._getframe().f_code.co_name
    resultlog.write('\n' + testname + ', ' + str(datetime.datetime.today()) +
                    ': ')
    logging.debug('\n' + testname + ', ' + str(datetime.datetime.today()) +
                  ': ')
    try:
        VistA1 = connect_VistA(testname + '_01', result_dir, namespace)
        pl = PLActions(VistA1, user='******', code='1Doc!@#$')
        pl.signon()
        pl.addcsv(ssn='323678904',
                  pfile='./Functional/dataFiles/NISTinpatientdata0.csv')
        pl.verplist(ssn='323678904',
                    vlist=[
                        'Essential Hypertension', 'Chronic airway obstruction',
                        'Acute myocardial', 'Congestive Heart Failure'
                    ])
        pl.signoff()
        VistA2 = connect_VistA(testname + '_02', result_dir, namespace)
        oentry = ORActions(VistA2)
        oentry.signon()
        oentry.verproblems(ssn='323678904',
                           vlist=[
                               'Essential Hypertension',
                               'Chronic airway obstruction',
                               'Acute myocardial', 'Congestive Heart Failure'
                           ])
        oentry.signoff()
        VistA3 = connect_VistA(testname + '_03', result_dir, namespace)
        pl = PLActions(VistA3, user='******', code='1Doc!@#$')
        pl.signon()
        for i in range(4):
            pl.rem('323678904')
        pl.signoff()
    except TestHelper.TestError, e:
        resultlog.write(e.value)
        logging.error(testname + ' EXCEPTION ERROR: Unexpected test result')
コード例 #4
0
ファイル: PL_Suite001.py プロジェクト: kjessamy/VistA
def pl_test009(resultlog, result_dir, namespace):
    """ Verify Problem List through Order Entry package"""
    """Multiple VistA instances to allow concurrent logins for when
    tstart and trollback become available and implemented"""
    testname = sys._getframe().f_code.co_name
    resultlog.write("\n" + testname + ", " + str(datetime.datetime.today()) + ": ")
    logging.debug("\n" + testname + ", " + str(datetime.datetime.today()) + ": ")
    try:
        VistA1 = connect_VistA(testname + "_01", result_dir, namespace)
        pl = PLActions(VistA1, user="******", code="1Doc!@#$")
        pl.signon()
        pl.addcsv(ssn="323678904", pfile="./Functional/dataFiles/NISTinpatientdata0.csv")
        pl.verplist(
            ssn="323678904",
            vlist=[
                "Essential Hypertension",
                "Chronic airway obstruction",
                "Acute myocardial",
                "Congestive Heart Failure",
            ],
        )
        pl.signoff()
        VistA2 = connect_VistA(testname + "_02", result_dir, namespace)
        oentry = ORActions(VistA2)
        oentry.signon()
        oentry.verproblems(
            ssn="323678904",
            vlist=[
                "Essential Hypertension",
                "Chronic airway obstruction",
                "Acute myocardial",
                "Congestive Heart Failure",
            ],
        )
        oentry.signoff()
        VistA3 = connect_VistA(testname + "_03", result_dir, namespace)
        pl = PLActions(VistA3, user="******", code="1Doc!@#$")
        pl.signon()
        for i in range(4):
            pl.rem("323678904")
        pl.signoff()
    except TestHelper.TestError, e:
        resultlog.write(e.value)
        logging.error(testname + " EXCEPTION ERROR: Unexpected test result")
コード例 #5
0
def pl_test009 (test_suite_details):
    ''' Verify Problem List through Order Entry package'''
    '''Multiple VistA instances to allow concurrent logins for when
    tstart and trollback become available and implemented'''
    testname = sys._getframe().f_code.co_name
    test_driver = TestHelper.TestDriver(testname)

    test_driver.pre_test_run(test_suite_details)
    try:
        test_driver.testname = testname + "_01"
        VistA1 = test_driver.connect_VistA(test_suite_details)
        pl = PLActions(VistA1, user='******', code='1Doc!@#$')
        pl.signon()
        pl.addcsv(ssn='323678904', pfile='./FunctionalTest/dataFiles/NISTinpatientdata0.csv')
        pl.verplist(ssn='323678904', vlist=['Essential Hypertension',
                                            'Chronic airway obstruction',
                                            'Acute myocardial',
                                            'Congestive Heart Failure'])
        pl.signoff()

        test_driver.testname = testname + "_02"
        VistA2 = test_driver.connect_VistA(test_suite_details)
        oentry = ORActions(VistA2)
        oentry.signon()
        oentry.verproblems(ssn='323678904', vlist=['Essential Hypertension',
                                            'Chronic airway obstruction',
                                            'Acute myocardial',
                                            'Congestive Heart Failure'])
        oentry.signoff()

        test_driver.testname = testname + "_03"
        VistA3 = test_driver.connect_VistA(test_suite_details)
        pl = PLActions(VistA3, user='******', code='1Doc!@#$')
        pl.signon()
        for i in range(4):
            pl.rem('323678904')
        pl.signoff()

        test_driver.post_test_run(test_suite_details)
    except TestHelper.TestError, e:
        test_driver.exception_handling(test_suite_details, e)