def demo_screen_man(test_suite_details): 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) rc = RCActions( vista, user='******', code='radiologist1' ) #TODO: when moving to the config approach, new a/v codes should be put into a new test suite? rc.signon() vista.wait('Select TERMINAL TYPE NAME:') vista.write('') vista.wait('Select Clinician Menu Option:') vista.write('OE') vista.wait('Select Patient: Change View') vista.write('FD') vista.wait('Select PATIENT NAME:') vista.write('0849') #0849 vista.wait('Select: Next Screen') vista.write('Q') vista.wait('Select Patient: Change View') vista.write('^') vista.wait('Select Clinician Menu Option:') rc.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)
def demo_screen_man(test_suite_details): 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) rc = RCActions(vista, user='******', code='radiologist1') #TODO: when moving to the config approach, new a/v codes should be put into a new test suite? rc.signon() vista.wait('Select TERMINAL TYPE NAME:') vista.write('') vista.wait('Select Clinician Menu Option:') vista.write('OE') vista.wait('Select Patient: Change View') vista.write('FD') vista.wait('Select PATIENT NAME:') vista.write('0849') #0849 vista.wait('Select: Next Screen') vista.write('Q') vista.wait('Select Patient: Change View') vista.write('^') vista.wait('Select Clinician Menu Option:') rc.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)
def demo_screen_man(test_suite_details): 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) rc = RCActions(vista, user=TestHelper.fetch_access_code(test_suite_details, testname), code=TestHelper.fetch_verify_code(test_suite_details, testname)) rc.signon() vista.wait('Select TERMINAL TYPE NAME:') vista.write('') vista.wait('Select Clinician Menu Option:') vista.write('OE') vista.wait('Select Patient: Change View') vista.write('FD') vista.wait('Select PATIENT NAME:') vista.write('0849') #0849 vista.wait('Select: Next Screen') vista.write('Q') vista.wait('Select Patient: Change View') vista.write('^') vista.wait('Select Clinician Menu Option:') rc.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)
def dive_into_menus(test_suite_details): 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) rc = RCActions(vista, user='******', code='vehu01') #TODO: change to a/v code lookup #TestHelper.fetch_access_code(test_suite_details.test_suite_name) #vista.write(TestHelper.fetch_verify_code(test_suite_details.test_suite_name)) rc.signon() vista.wait('Select Training Menu Option:') vista.write('OE') vista.wait('Select CPRS Manager Menu Option:') vista.write('CL') vista.wait('Select Clinician Menu Option:') vista.write('RR') vista.wait('Select Patient:') #vista.write('0089') #vista.wait('CHOOSE 1-2:') #vista.write('1') #vista.wait('Select Item(s):') #vista.write('1') #vista.wait('Select Health Summary Type:') vista.write('^') vista.wait(':') vista.write('^') vista.wait(':') vista.write('^') vista.wait(':') rc.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)
def dive_into_menus(test_suite_details): 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) rc = RCActions(vista, user='******', code='vehu01') #TODO: change to a/v code lookup #TestHelper.fetch_access_code(test_suite_details.test_suite_name) #vista.write(TestHelper.fetch_verify_code(test_suite_details.test_suite_name)) rc.signon() vista.wait('Select Training Menu Option:') vista.write('OE') vista.wait('Select CPRS Manager Menu Option:') vista.write('CL') vista.wait('Select Clinician Menu Option:') vista.write('RR') vista.wait('Select Patient:') #vista.write('0089') #vista.wait('CHOOSE 1-2:') #vista.write('1') #vista.wait('Select Item(s):') #vista.write('1') #vista.wait('Select Health Summary Type:') vista.write('^') vista.wait(':') vista.write('^') vista.wait(':') vista.write('^') vista.wait(':') rc.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)