cat > script <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
!TEST echo keys on
!TEST echo comments on
!TEST : Test AP_5 and call up AG first screen
!F5
!TEST windows
!TEST : Test Quit key and return to front menu
!DELETE
!TEST : Test AP_6 and call up Application Manager
!F6
!TEST windows
!TEST video
!TEST : Test Arrow keys
!DOWN
!TEST cursor
!LEFT
!TEST cursor
!RIGHT
!TEST cursor
!UP
!TEST cursor
!TEST : Test help screen
!PF4
!TEST windows
!PF4
!TEST : AP_10 key
!F10
!TEST windows
!DELETE
!TEST : Test F6 key and call up 2nd menu
!F6
!TEST windows
!TEST : Test F7 key
!F7
!TEST windows
!DELETE
!TEST : Test F9 key
!F9
!TEST windows
!DELETE
!TEST : return to menu 1
!F6
!TEST : Test F1 key and to edit an application
!F1
!TEST windows
!TEST : Test F2 key and go to next page
!F2
!TEST windows
!TEST : back to first page
!F2
!TEST : Leave this application and create a new one
!DELETE
!F10
00000000
!TEST : Test f8 key Call up table menu
!F8
!TEST : Test F4 key and bring up key table
!F4
!TEST : Test F5 key and bring up script table
!F8
!F5
!TEST : Test F3 key and bring up field table
!F8
!F3
!TEST : next_fld key
!TAB
!TEST field
!TEST : prev_fld key
!ENTER
!TEST field
!TEST : back to application table and test field editor feature
!F8
!F1
This is to test field editor in sysmain test!NOP
!TEST field value
!TEST : test begin/end key
!PF1
!TEST cursor
!PF1
!TEST cursor
!PF1
!TEST : insert mode key
!F-
inserting !NOP
!TEST field value
!TEST : replace mode
!F-
continue!NOP
!TEST field value
!PF1
!PF1
!TEST : del_char key
!F,
!F,
!TEST field value
!TEST : test clear_eos key
!PF2
!TEST field value
!TEST : test scroll key
!F.
!DOWN
!TEST windows
!DELETE
!TEST : delete the application
!F6
!F8
y!NOP
!DELETE
!DELETE
y
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 script
cat > stdout <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
!TEST TEST
!TEST TEST
: Test AP_5 and call up AG first screen
!F5
 KP 5
!TEST TEST
Windows Showing
'ag_main' at (R1, C1) - (R24, C80) form 'main' form instance 'main' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!TEST TEST
: Test Quit key and return to front menu
!DELETE
 QUIT
!TEST TEST
: Test AP_6 and call up Application Manager
!F6
 KP 6
!TEST TEST
Windows Showing
'list_applications_menu1' at (R21, C1) - (R24, C80) form 'list_applications_menu1' form instance 'list_applications_menu1' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!TEST TEST
Video for window 'list_application'
'reverse' at (R2, C34) - (R2, C47)
!TEST TEST
: Test Arrow keys
!DOWN
 D-Arrow
!TEST TEST
Cursor positioned at (R2, C1)
!LEFT
 L-Arrow
!TEST TEST
Cursor positioned at (R2, C49)
!RIGHT
 R-Arrow
!TEST TEST
Cursor positioned at (R2, C1)
!UP
 U-Arrow
!TEST TEST
Cursor positioned at (R1, C1)
!TEST TEST
: Test help screen
!PF4
 PF4
!TEST TEST
Windows Showing
'list_applications_menu1' at (R21, C1) - (R24, C80) form 'list_applications_menu1' form instance 'list_applications_menu1' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!PF4
 PF4
!TEST TEST
: AP_10 key
!F10
 KP 0
!TEST TEST
Windows Showing
'sys_application_create' at (R22, C1) - (R24, C80) form 'create_application' form instance 'create_application' hasn't a box
'list_applications_menu1' at (R21, C1) - (R24, C80) form 'list_applications_menu1' form instance 'list_applications_menu1' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!DELETE
 QUIT
!TEST TEST
: Test F6 key and call up 2nd menu
!F6
 KP 6
!TEST TEST
Windows Showing
'list_applications_menu2' at (R21, C1) - (R24, C80) form 'list_applications_menu2' form instance 'list_applications_menu2' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!TEST TEST
: Test F7 key
!F7
 KP 1
!TEST TEST
Windows Showing
'sys_application_copy' at (R22, C1) - (R24, C80) form 'copy_application' form instance 'copy_application' hasn't a box
'list_applications_menu2' at (R21, C1) - (R24, C80) form 'list_applications_menu2' form instance 'list_applications_menu2' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!DELETE
 QUIT
!TEST TEST
: Test F9 key
!F9
 KP 3
!TEST TEST
Windows Showing
'sys_application_rename' at (R22, C1) - (R24, C80) form 'rename_application' form instance 'rename_application' hasn't a box
'list_applications_menu2' at (R21, C1) - (R24, C80) form 'list_applications_menu2' form instance 'list_applications_menu2' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!DELETE
 QUIT
!TEST TEST
: return to menu 1
!F6
 KP 6
!TEST TEST
: Test F1 key and to edit an application
!F1
 KP 7
!TEST TEST
Windows Showing
'options' at (R22, C1) - (R24, C80) form 'sys_edit_ap_options' form instance 'ed_options' hasn't a box
'application' at (R1, C1) - (R24, C80) form 'sys_edit_ap_application' form instance 'ed_application' hasn't a box
'list_applications_menu1' at (R21, C1) - (R24, C80) form 'list_applications_menu1' form instance 'list_applications_menu1' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!TEST TEST
: Test F2 key and go to next page
!F2
 KP 8
!TEST TEST
Windows Showing
'ap1' at (R3, C1) - (R21, C80) form 'sys_edit_ap_misc' form instance 'sys_edit_ap_misc' has a box
'options' at (R22, C1) - (R24, C80) form 'sys_edit_ap_options' form instance 'ed_options' hasn't a box
'application' at (R1, C1) - (R24, C80) form 'sys_edit_ap_application' form instance 'ed_application' hasn't a box
'list_applications_menu1' at (R21, C1) - (R24, C80) form 'list_applications_menu1' form instance 'list_applications_menu1' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!TEST TEST
: back to first page
!F2
 KP 8
!TEST TEST
: Leave this application and create a new one
!DELETE
 QUIT
!F10
 KP 0
!TEST TEST
: Test f8 key Call up table menu
!F8
 KP 2
!TEST TEST
: Test F4 key and bring up key table
!F4
 KP 4
!TEST TEST
: Test F5 key and bring up script table
!F8
 KP 2
!F5
 KP 5
!TEST TEST
: Test F3 key and bring up field table
!F8
 KP 2
!F3
 KP 9
!TEST TEST
: next_fld key
!TAB
 NEXT_FLD
!TEST TEST
'field'@'application_name'[1]:
'field'@'window_name'[1]:
'field'@'name'[1]: <Current Field>
'field'@'data_type'[1]:
'field'@'menu'[1]:
'field'@'save_name'[1]:
'field'@'previous'[1]:
'field'@'current'[1]:
'field'@'next'[1]:
'field'@'previous_number'[1]:
'field'@'next_number'[1]:
'field'@'range'[1]:
'field'@'mode'[1]:
'field'@'current_number'[1]:
'field'@'number'[1]:
'field'@'default_expression'[1]:
'field'@'enter_script'[1]:
'field'@'exit_script'[1]:
!TEST TEST
: prev_fld key
!ENTER
 KP ENTER
!TEST TEST
'field'@'application_name'[1]:
'field'@'window_name'[1]: <Current Field>
'field'@'name'[1]:
'field'@'data_type'[1]:
'field'@'menu'[1]:
'field'@'save_name'[1]:
'field'@'previous'[1]:
'field'@'current'[1]:
'field'@'next'[1]:
'field'@'previous_number'[1]:
'field'@'next_number'[1]:
'field'@'range'[1]:
'field'@'mode'[1]:
'field'@'current_number'[1]:
'field'@'number'[1]:
'field'@'default_expression'[1]:
'field'@'enter_script'[1]:
'field'@'exit_script'[1]:
!TEST TEST
: back to application table and test field editor feature
!F8
 KP 2
!F1
 KP 7
!NOP NOP
!TEST TEST
'application'@'exit_script'[1]:
value: 
'application'@'application_name'[1]:
value: 00000000
'application'@'menu'[1]:
value: KP 3
'application'@'enter_script'[1]: <Current Field>
value: This is to test field editor in sysmain test
!TEST TEST
: test begin/end key
!PF1
 PF1
!TEST TEST
Cursor positioned at (R4, C2)
!PF1
 PF1
!TEST TEST
Cursor positioned at (R4, C46)
!PF1
 PF1
!TEST TEST
: insert mode key
!F-
 KP -
!NOP NOP
!TEST TEST
'application'@'exit_script'[1]:
value: 
'application'@'application_name'[1]:
value: 00000000
'application'@'menu'[1]:
value: KP 3
'application'@'enter_script'[1]: <Current Field>
value: inserting This is to test field editor in sysmain test
!TEST TEST
: replace mode
!F-
 KP -
!NOP NOP
!TEST TEST
'application'@'exit_script'[1]:
value: 
'application'@'application_name'[1]:
value: 00000000
'application'@'menu'[1]:
value: KP 3
'application'@'enter_script'[1]: <Current Field>
value: inserting continueto test field editor in sysmain test
!PF1
 PF1
!PF1
 PF1
!TEST TEST
: del_char key
!F,
 KP ,
!F,
 KP ,
!TEST TEST
'application'@'exit_script'[1]:
value: 
'application'@'application_name'[1]:
value: 00000000
'application'@'menu'[1]:
value: KP 3
'application'@'enter_script'[1]: <Current Field>
value: serting continueto test field editor in sysmain test
!TEST TEST
: test clear_eos key
!PF2
 PF2
!TEST TEST
'application'@'exit_script'[1]:
value: 
'application'@'application_name'[1]:
value: 00000000
'application'@'menu'[1]:
value: KP 3
'application'@'enter_script'[1]: <Current Field>
value: 
!TEST TEST
: test scroll key
!F.
 KP .
!DOWN
 D-Arrow
!TEST TEST
Windows Showing
'options' at (R22, C1) - (R24, C80) form 'sys_edit_ap_options' form instance 'ed_options' hasn't a box
'application' at (R1, C1) - (R24, C80) form 'sys_edit_ap_application' form instance 'ed_application' hasn't a box
'list_applications_menu1' at (R21, C1) - (R24, C80) form 'list_applications_menu1' form instance 'list_applications_menu1' hasn't a box
'list_application' at (R1, C1) - (R20, C80) form 'sys_list_application' form instance 'sys_list_application' hasn't a box
'main_menu' at (R1, C1) - (R22, C80) form 'sys_main_menu' form instance 'sys_main_menu' hasn't a box

!DELETE
 QUIT
!TEST TEST
: delete the application
!F6
 KP 6
!F8
 KP 2
!NOP NOP
!DELETE
 QUIT
!DELETE
 QUIT
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout
cat > tag <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
This test is used to test how the functions keys work and how the
screen reacts.
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 tag
