예제 #1
0
def sc_test014(resultlog, result_dir, namespace):
    """
    This test verifies clinic setup parameters
    """
    testname = sys._getframe().f_code.co_name
    resultlog.write("\n" + testname + ", " + str(datetime.datetime.today()) + ": ")
    logging.debug("\n" + testname + ", " + str(datetime.datetime.today()) + ": ")
    try:
        VistA = connect_VistA(testname, result_dir, namespace)
        SC = SCActions(VistA, scheduling="Scheduling")
        time = SC.schtime()
        SC.signon()
        SC.ma_clinicchk(
            patient="333224444",
            clinic="CLInicB",
            exp_apptype="EMPLOYEE",
            datetime="t+3@05PM",
            cslots="[2]",
            cxrays="YES",
            fresh="No",
            cvar="Yes",
            elig="Yes",
        )
        SC.signon()
        SC.ma_clinicchk(
            patient="333224444",
            clinic="CLInicC",
            exp_apptype="RESEARCH",
            datetime="t+4@04pm",
            cslots="[4]",
            cxrays="",
            fresh="No",
            elig="Yes",
        )
        SC.signon()
        SC.ma_clinicchk(
            patient="333224444",
            clinic="CLInicD",
            exp_apptype="REGULAR",
            datetime="t+5@03pm",
            cslots="[4]",
            cxrays="",
            fresh="No",
            elig="Yes",
        )
        SC.signoff()
    except TestHelper.TestError, e:
        resultlog.write("\nEXCEPTION ERROR:" + str(e))
        logging.error("*****exception*********" + str(e))
예제 #2
0
def sc_test014(test_suite_details):
    '''
    This test verifies clinic setup parameters
    '''
    testname = sys._getframe().f_code.co_name
    test_driver = TestHelper.TestDriver(testname)

    test_driver.pre_test_run(test_suite_details)
    try:
        VistA = test_driver.connect_VistA(test_suite_details)
        SC = SCActions(VistA, scheduling='Scheduling')
        time = SC.schtime()
        SC.signon()
        SC.ma_clinicchk(patient='333224444',
                        clinic='CLInicB',
                        exp_apptype='EMPLOYEE',
                        datetime='t+3@05PM',
                        cslots='[2]',
                        cxrays='YES',
                        fresh='No',
                        cvar='Yes',
                        elig='Yes')
        SC.signon()
        SC.ma_clinicchk(patient='333224444',
                        clinic='CLInicC',
                        exp_apptype='RESEARCH',
                        datetime='t+4@04pm',
                        cslots='[4]',
                        cxrays='',
                        fresh='No',
                        elig='Yes')
        SC.signon()
        SC.ma_clinicchk(patient='333224444',
                        clinic='CLInicD',
                        exp_apptype='REGULAR',
                        datetime='t+5@03pm',
                        cslots='[4]',
                        cxrays='',
                        fresh='No',
                        elig='Yes')
        SC.signoff()
    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 sc_test014(test_suite_details):
    '''
    This test verifies clinic setup parameters
    '''
    testname = sys._getframe().f_code.co_name
    test_driver = TestHelper.TestDriver(testname)

    test_driver.pre_test_run(test_suite_details)
    try:
        VistA = test_driver.connect_VistA(test_suite_details)
        SC = SCActions(VistA, scheduling='Scheduling')
        time = SC.schtime()
        SC.signon()
        SC.ma_clinicchk(patient='333224444', clinic='CLInicB', exp_apptype='EMPLOYEE', datetime='t+3@05PM',
                        cslots='[2]', cxrays='YES', fresh='No', cvar='Yes', elig='Yes')
        SC.signon()
        SC.ma_clinicchk(patient='333224444', clinic='CLInicC', exp_apptype='RESEARCH', datetime='t+4@04pm',
                        cslots='[4]', cxrays='', fresh='No', elig='Yes')
        SC.signon()
        SC.ma_clinicchk(patient='333224444', clinic='CLInicD', exp_apptype='REGULAR', datetime='t+5@03pm',
                        cslots='[4]', cxrays='', fresh='No', elig='Yes')
        SC.signoff()
    except TestHelper.TestError, e:
        test_driver.exception_handling(test_suite_details, e)
예제 #4
0
def sc_test014(resultlog, result_dir, namespace):
    '''
    This test verifies clinic setup parameters
    '''
    testname = sys._getframe().f_code.co_name
    resultlog.write('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ')
    logging.debug('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ')
    try:
        VistA = connect_VistA(testname, result_dir, namespace)
        SC = SCActions(VistA, scheduling='Scheduling')
        time = SC.schtime()
        SC.signon()
        SC.ma_clinicchk(patient='333224444', clinic='CLInicB', exp_apptype='EMPLOYEE', datetime='t+3@05PM',
                        cslots='[2]', cxrays='YES', fresh='No', cvar='Yes', elig='Yes')
        SC.signon()
        SC.ma_clinicchk(patient='333224444', clinic='CLInicC', exp_apptype='RESEARCH', datetime='t+4@04pm',
                        cslots='[4]', cxrays='', fresh='No', elig='Yes')
        SC.signon()
        SC.ma_clinicchk(patient='333224444', clinic='CLInicD', exp_apptype='REGULAR', datetime='t+5@03pm',
                        cslots='[4]', cxrays='', fresh='No', elig='Yes')
        SC.signoff()
    except TestHelper.TestError, e:
        resultlog.write('\nEXCEPTION ERROR:' + str(e))
        logging.error('*****exception*********' + str(e))