def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zx3xzFLDg1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zx3xzFLD2)') select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') commonBits.save1(click) assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zxxxzFLDg1') select('RecordList.Description_Txt', '%') ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) select('RecordSelectionJTbl', 'rows:[0,1,2],columns:[' + commonBits.fl('Field Value') + ']') commonBits.delete2(click) click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Layout Definitions'): select('TextArea', '') click('BaseHelpPanel', 111, 115) click('*') commonBits.new1(click) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) select('TextField2', 'xwz 1') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '4', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'z', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', '5', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'f1', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', '10', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', 'f2', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(f2)') assert_p('RecordFieldsJTbl', 'RowCount', '3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(f1)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 4, z, , 0, 0, 0, , , ], [5, 5, f1, , 0, 0, 0, , , ], [10, 5, f2, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') commonBits.save1(click) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 2') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ## select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(f2)') ##commonBits.delete2(click) commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '4', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '44', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'f', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '5', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', '5', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '6', commonBits.fl('Position') + ',3') select('RecordFieldsJTbl', '6', commonBits.fl('Length') + ',3') select('RecordFieldsJTbl', '6', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') assert_p('RecordFieldsJTbl', 'RowCount', '4') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 4, z, , 0, 0, 0, , , ], [4, 44, f, , 0, 0, 0, , , ], [5, 5, 5, , 0, 0, 0, , , ], [6, 6, 6, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',3(6)') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(5)') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(f)') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') assert_p('RecordFieldsJTbl', 'ColumnCount', '10') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'RowCount', '1') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 4, z, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 3') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 4') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 5') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('TextField', 'xwz 5') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('TextField1', '%') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 5')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('TextField', 'xwz 1') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 1')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) select('TextField', 'xwz 2') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 2')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) keystroke('TextField1', 'Down') select('TextField', 'xwz 3') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 3')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) select('TextField', 'xwz 4') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 4')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) click('BasicInternalFrameTitlePane$NoFocusButton2') ##click('MetalInternalFrameTitlePane', 129, 14) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Create Layout')) select('RecordDef.Record Name_Txt', 'zxzxzFLDg777') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') commonBits.delete2(click) select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) select('RecordDef.System_Txt', 'Unkown') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zxzxzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zxzxzFLD2)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ]]') ## select('ChildRecordsJTbl', '') ## select('ChildRecordsJTbl', 'cell: ,0(null)') select('ChildRecordsJTbl', 'cell: ,1(null)') select('RecordDef.Record Name_Txt', 'zxzxzFLD2aaa') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2aaa], [, zxzxzFLD2aaa, , , , , ]]' ) ## select('ChildRecordsJTbl', '') select('ChildRecordsJTbl', 'cell: ,1(null)') select('RecordDef.Record Name_Txt', 'zxzxzFLD2asd') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2asd], [, zxzxzFLD2asd, , , , , ]]' ) ## select('ChildRecordsJTbl', '') select('ChildRecordsJTbl', 'cell: ,1(null)') select('RecordDef.Record Name_Txt', 'zxzxzFLD2') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ]]') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1()') commonBits.delete2(click) assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ]]') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',0()') commonBits.delete2(click) commonBits.delete3(click) if window(commonBits.fl('Delete: zxzxzFLDg777')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zxxxzFLDg1') select('RecordList.Description_Txt', '%') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxxxzFLDg4') click('OK') close() commonBits.save1(click) select('ChildRecordsJTbl', 'ff1', commonBits.fl('Field') + ',0') select('ChildRecordsJTbl', 'ff2', commonBits.fl('Field') + ',1') select('ChildRecordsJTbl', 'ff33', commonBits.fl('Field') + ',2') select('ChildRecordsJTbl', 'v11', commonBits.fl('Field Value') + ',0') select('ChildRecordsJTbl', 'v22', commonBits.fl('Field Value') + ',1') select('ChildRecordsJTbl', 'v333', commonBits.fl('Field Value') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1(ff2)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , ff1, v11, , ], [, zxxxzFLD2, , ff2, v22, , ], [, zxxxzFLD3, , ff33, v333, , ]]' ) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',1') select_menu(commonBits.fl('View Record Selections Tree')) ## select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') time.sleep(0.9) assert_p( 'JTreeTable', 'Content', '[[, , , , , ff1, =, v11], [, , , , , ff2, =, v22], [, , , , , ff33, =, v333]]' ) select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 3') + ' ,1( )') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) ## select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl', '11', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl', '11a', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1()') rightclick('RecordSelectionJTbl', 'and,1') select('RecordSelectionJTbl', 'fld 13', commonBits.fl('Field') + ',2') select('RecordSelectionJTbl', '33', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1(11a)') assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 13, =, 33]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1(11a)') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1(ff2)') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',1') select_menu(commonBits.fl('Edit Record Selections')) #### select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1(ff2)') click(commonBits.fl('Insert') + '1') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl1', 'fld 21', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl1', '21', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field') + ',0(fld 21)') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21]]') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field') + ',0(fld 21)') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1(ff2)') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',2(ff33)') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',2') select_menu(commonBits.fl('Edit Record Selections')) ## select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',2(ff33)') click(commonBits.fl('Insert') + '2') click(commonBits.fl('Insert') + '2') click(commonBits.fl('Insert') + '2') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl2', 'fld 31', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl2', '31', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl2', 'fld 32', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl2', '32', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl2', 'fld 32', commonBits.fl('Field') + ',2') select('RecordSelectionJTbl2', '32', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field Value') + ',1(32)') rightclick('RecordSelectionJTbl2', 'and,1') assert_p( 'RecordSelectionJTbl2', 'Content', '[[, , fld 31, =, 31], [' + commonBits.fl('Or') + ', , fld 32, =, 32], [, ' + commonBits.fl('And') + ', fld 32, =, 32]]') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field Value') + ',1(32)') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',2(ff33)') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',1') select_menu(commonBits.fl('View Record Selections Tree')) ## select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') ## assert_p('JTreeTable', 'Content', '[[, , , , , ff1, =, v11], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 11a], [, , , , And , fld 13, =, 33], [, , , , , ff2, =, v22], [, , And , , , fld 21, =, 21], [, , , , , ff33, =, v333], [, , And , , , fld 31, =, 31], [, , , Or , , fld 32, =, 32], [, , , , And , fld 32, =, 32]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , ff1, =, v11], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 11a], [, , , , ' + commonBits.fl('And') + ' , fld 13, =, 33], [, , , , , ff2, =, v22], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , , , ff33, =, v333], [, , ' + commonBits.fl('And') + ' , , , fld 31, =, 31], [, , , ' + commonBits.fl('Or') + ' , , fld 32, =, 32], [, , , , ' + commonBits.fl('And') + ' , fld 32, =, 32]]') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') commonBits.delete3(click) if window(commonBits.fl('Delete: zxxxzFLDg4')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Layout Definitions'): click('*') click('New') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('TextField2', 'ZZ - Create 1') select('TextField3', '3') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '2', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'Field l2', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', '3', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '12', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'Field l12', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', '15', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '30', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', 'Field l30', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(Field l2)') rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Field l12)') rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',1') select_menu(commonBits.fl('Copy Record#{s#}')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(Field l30)') rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',2') select_menu(commonBits.fl('Paste Record#{s#}')) select('RecordFieldsJTbl', '45', commonBits.fl('Position') + ',3') select('RecordFieldsJTbl', 'Field l12a', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(Field l30)') rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',2') select_menu(commonBits.fl('Cut Record#{s#}')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(Field l12a)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') assert_p('RecordFieldsJTbl', 'RowCount', '3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') rightclick('RecordFieldsJTbl', commonBits.fl('Description') + ',2') select_menu(commonBits.fl('Paste Record#{s#}')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ], [15, 30, Field l30, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(Field l12a)') assert_p('RecordFieldsJTbl', 'RowCount', '4') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Field l12)') commonBits.save1(click) select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('TextField', 'ZZ - Create 1%') select('TextField1', '%') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Field l12)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [15, 30, Field l30, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Field l12)') click('BasicInternalFrameTitlePane$NoFocusButton2') click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('TextField', 'ZZ - Create 1%') select('TextField1', '%') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Field l12)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [15, 30, Field l30, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Field l12)') commonBits.delete3(click) if window(commonBits.fl('Delete: ZZ - Create 1')): click('Yes') close() ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') ###select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*1') select('RecordDef.Record Name_Txt', 'zxzxFL1') select('RecordDef.Description_Txt', 'Test Create Layout') select('RecordDef.List_Chk', 'true') select('RecordDef.System_Txt', 'Other') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '2', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'fld11', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', '3', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '4', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'fld12', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', '7', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '8', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', 'fld13', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') commonBits.save1(click) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxzxFL2') click('OK') close() click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('RecordList.Record Name_Txt', 'zxzxFL1') select('RecordList.Description_Txt', '%') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, fld11, , 0, 0, 0, , , ], [3, 4, fld12, , 0, 0, 0, , , ], [7, 8, fld13, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'Test Create Layout') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxFL1') select('RecordList.Record Name_Txt', 'zxzxFL2') select('RecordList.Description_Txt', '%%') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, fld11, , 0, 0, 0, , , ], [3, 4, fld12, , 0, 0, 0, , , ], [7, 8, fld13, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'Test Create Layout') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxFL2') commonBits.delete3(click) if window(commonBits.fl('Delete: zxzxFL2')): click('Yes') close() select('RecordList.Record Name_Txt', 'zxzxFL1') select('RecordList.Description_Txt', '%') commonBits.delete3(click) if window(commonBits.fl('Delete: zxzxFL1')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zxxxzFLDg1') select('RecordList.Description_Txt', '%') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxxxzFLDg6') click('OK') close() commonBits.save1(click) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , , , , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD3, , , , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxxxzFLDg6') ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',1') select_menu(commonBits.fl('View Record Selections Tree')) assert_p( 'JTreeTable', 'Content', '[[, , , , , , =, ], [, , , , , , =, ], [, , , , , , =, ]]' ) select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 1') + ' ,1( )') rightclick('JTreeTable', 's,1') select('Lines to Insert_Txt', '3') click(commonBits.fl('Insert')) time.sleep(0.9) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl', 'fld 21', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl', '21', commonBits.fl('Field Value') + ',0') time.sleep(0.9) select('RecordSelectionJTbl', 'fld 21', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl', '21aa', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl', 'fld 22', commonBits.fl('Field') + ',2') select('RecordSelectionJTbl', '22', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',2()') rightclick('RecordSelectionJTbl', 'and,2') assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 21, =, 21], [, ' + commonBits.fl('And') + ', fld 21, =, 21aa], [' + commonBits.fl('Or') + ', , fld 22, =, 22]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',2()') click('BasicInternalFrameTitlePane$NoFocusButton2') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 1') + ' ,1( )') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 1') + ' ,1( )') ## click('MetalInternalFrameTitlePane', 1416, 0) ## select_menu('Window>>Menu1>>Record Selection Tree') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 2') + ' ,1( )') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , , , , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD3, , , , , ]]' ) ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',1') select_menu(commonBits.fl('Edit Record Selections')) assert_p( 'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [, ' + commonBits.fl('And') + ', fld 21, =, 21aa], [' + commonBits.fl('Or') + ', , fld 22, =, 22]]') assert_p( 'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [, ' + commonBits.fl('And') + ', fld 21, =, 21aa], [' + commonBits.fl('Or') + ', , fld 22, =, 22]]') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') commonBits.delete3(click) if window(commonBits.fl('Delete: zxxxzFLDg6')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): click(commonBits.fl('Choose File')) if window('Open'): select(commonBits.selectPane(), 'Ams_LocDownload_20041228.txt') click('Open') close() click(commonBits.fl('Edit') + '1') click('Filter1') select('Table1', 'Loc Type', commonBits.fl('Field') + ',0') select('Table1', 'st', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Field') + ',2(null)') commonBits.save1(click) ##select('FileChooser', commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') commonBits.save1(click) select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Filter Options')) commonBits.filter(click) select('Table', 'cell:10 - 35|Loc Name,0(Bankstown)') assert_p('Table', 'Text', 'Bankstown', '10 - 35|Loc Name,0') select('Table', 'cell:8 - 2|Loc Type,1(ST)') rightclick('Table', '8 - 2|Loc Type,1') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:8 - 2|Loc Type,1(ST)') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') assert_p('Table', 'Text', 'Penrith', commonBits.fl('Data') + ',6') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5019, 5019], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Penrith, Penrith], [Loc Addr Ln1, 45, 40, Penrith, Penrith], [Loc Addr Ln2, 85, 40, 58 Leland Street, 58 Leland Street], [Loc Addr Ln3, 125, 35, Penrith, Penrith], [Loc Postcode, 160, 10, 2750, 2750], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('Table', 'cell:8 - 2|Loc Type,1(ST)') select('Table', 'cell:8 - 2|Loc Type,1(ST)') select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Table:')) select('Table2', 'cell:8 - 2|Loc Type,1(ST)') select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Execute Saved Filter')) ##select('FileChooser', commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') click(commonBits.fl('Run Dialog') ) select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') rightclick('Table1', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') rightclick('Table1', commonBits.fl('Value') + ',0') assert_p('Table1', 'Text', 'st', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') ## assert_p('Table1', 'Content', '[[Loc Type, true, Contains, st], [, true, Contains, ], [, true, Contains, ], [, true, Contains, ]]') ## assert_p('Table1', 'Content', '[[, , Loc Type, true, Contains, st], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ]]'); ## assert_p('Table1', 'Content', '[[, , Loc Type, true, ' + commonBits.fl('Contains') + ', st], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]'); assert_p('Table1', 'Content', '[[, , Loc Type, true, ' + commonBits.fl('Contains') + ', st], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ]]'); ## assert_p('Table1', 'Content', '[[, , Loc Type, true, ' + commonBits.fl('Contains') + ', st], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]'); select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') commonBits.filter(click) select('Table', 'cell:10 - 35|Loc Name,6(Leichhardt)') assert_p('Table', 'Text', 'Leichhardt', '10 - 35|Loc Name,6') select('Table', 'cell:10 - 35|Loc Name,13(Carlingford Court)') rightclick('Table', '10 - 35|Loc Name,13') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:10 - 35|Loc Name,13(Carlingford Court)') select('Table', 'cell:' + commonBits.fl('Data') + ',5(Dock 1, 11 Melissa Place)') assert_p('Table', 'Text', 'Dock 1, 11 Melissa Place', commonBits.fl('Data') + ',5') select('Table', 'cell:' + commonBits.fl('Data') + ',5(Dock 1, 11 Melissa Place)') assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5090, 5090], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Carlingford Court, Carlingford Court], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, Dock 1, 11 Melissa Place, Dock 1, 11 Melissa Place], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zx3xzFLDg1') select('RecordList.Description_Txt', '%') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Tree Parent') + ',0') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') select('ChildRecordsJTbl', 'zx3xzFLD3', commonBits.fl('Tree Parent') + ',0') ## select('ChildRecordsJTbl', 'zx3xzFLD3', commonBits.fl('Tree Parent') + ',0') ## select('ChildRecordsJTbl', '') ## select('ChildRecordsJTbl', 'cell: ,2(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2') select_menu(commonBits.fl('Edit Child Record')) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLD3') select('RecordDef.Record Name_Txt', 'zx3xzFLD3aaaa') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD3aaaa], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3aaaa, , , , , ]]' ) ## select('ChildRecordsJTbl', 'rows:[0,1,2],columns:[Field]') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2') select_menu(commonBits.fl('Edit Child Record')) select('RecordDef.Record Name_Txt', 'zx3xzFLD3bbb') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD3bbb], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3bbb, , , , , ]]' ) ## select('ChildRecordsJTbl', '') ## select('ChildRecordsJTbl', 'cell: ,2(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2') select_menu(commonBits.fl('Edit Child Record')) select('RecordDef.Record Name_Txt', 'zx3xzFLD3') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD3], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') commonBits.save1(click) ## click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_10' if window('Record Editor'): commonBits.selectOldFilemenu(select_menu, 'Utilities', 'File Copy Menu') click('*3') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') select('FileChooser1', commonBits.sampleDir() + 'barDTAR020.csv') commonBits.setRecordLayout2(select, 'DTAR020') select('DelimiterCombo', '|') click('Right') select('TabbedPane', '') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') assert_p( 'Table1', 'Content', '[[KEYCODE-NO, true], [STORE-NO, true], [DATE, true], [DEPT-NO, true], [QTY-SOLD, true], [SALE-PRICE, true]]' ) ## select('Table1', '') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') doubleclick('Table', commonBits.fl('Record') + ',0') assert_p('Table', 'Content', '[[DTAR020, true]]') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') click('Right') select('TabbedPane', '') # click(commonBits.fl('Choose File')) # if window('Open'): # click('Cancel') # close() # click(commonBits.fl('Choose File')) # if window('Open'): # click('Cancel') # close() select('FileChooser', commonBits.userDir() + 'CpyDTAR020barCsv.xml') commonBits.save1(click) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('FileChooser', commonBits.userDir() + 'CpyDTAR020barCsv.xml') click(commonBits.fl('Run Copy Dialog')) assert_p('FileChooser', 'Text', commonBits.sampleDir() + 'DTAR020.bin') assert_p('FileChooser1', 'Text', commonBits.sampleDir() + 'barDTAR020.csv') if commonBits.isRecordEditor(): assert_p('ComboBox2', 'Text', 'DTAR020') assert_p('DelimiterCombo', 'Text', '|') click('Right') select('TabbedPane', '') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') doubleclick('Table', commonBits.fl('Record') + ',0') assert_p('Table', 'Text', 'DTAR020', commonBits.fl('Record') + ',0') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') select('Table1', 'cell:' + commonBits.fl('Field') + ',0(KEYCODE-NO)') assert_p( 'Table1', 'Content', '[[KEYCODE-NO, true], [STORE-NO, true], [DATE, true], [DEPT-NO, true], [QTY-SOLD, true], [SALE-PRICE, true]]' ) select('Table1', 'cell:' + commonBits.fl('Field') + ',0(KEYCODE-NO)') click('Right') select('TabbedPane', '') ##click('Copy2') commonBits.copy(click) assert_p('TextField1', 'Text', commonBits.fl('Copy Done !!!')) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') select('FileChooser', commonBits.sampleDir() + 'barDTAR020.csv') select('ComboBox2', 'Generic CSV - enter details') commonBits.doEdit(click) if window(''): select('CheckBox', 'true') assert_p('DelimiterCombo', 'Text', '|') select('Table', 'cell:DATE,3(40118)') assert_p( 'Table', 'Content', '[[69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69684558, 20, 40118, 280, 1, 5.01], [69694158, 20, 40118, 280, 1, 19.00], [69694158, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [63604808, 20, 40118, 170, 1, 4.87], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [64634429, 20, 40118, 957, 1, 3.99], [66624458, 20, 40118, 957, 1, 0.89], [63674861, 20, 40118, 957, 10, 2.70], [65674532, 20, 40118, 929, 1, 3.59], [64614401, 59, 40118, 957, 1, 1.99], [64614401, 59, 40118, 957, 1, 1.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [68634752, 59, 40118, 410, 1, 8.99], [60614487, 59, 40118, 878, 1, 5.95], [63644339, 59, 40118, 878, 1, 12.65], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [62684217, 59, 40118, 957, 1, 9.99], [67674686, 59, 40118, 929, 1, 3.99], [61684613, 59, 40118, 335, 1, 12.99], [64624770, 59, 40118, 957, 1, 2.59], [69694814, 166, 40118, 360, 1, 2.50], [69694814, 166, 40118, 360, 1, 2.50], [69644164, 166, 40118, 193, 1, 21.59]]' ) select('Table', 'cell:DATE,3(40118)') commonBits.doSleep() click(commonBits.fl('Go')) close() commonBits.doSleep() select('Table', 'cell:4|DEPT-NO,0(280)') assert_p('Table', 'Text', 'cell:4|DEPT-NO,0(280)') select('Table', 'cell:1|KEYCODE-NO,1(69684558)') rightclick('Table', '1|KEYCODE-NO,1') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:1|KEYCODE-NO,1(69684558)') select('Table', 'cell:' + commonBits.fl('Data') + ',0(69684558)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 69684558, 69684558], [STORE-NO, 2, , 20, 20], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 280, 280], [QTY-SOLD, 5, , -1, -1], [SALE-PRICE, 6, , -19.00, -19.00]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',0(69684558)') click('TextArea') assert_p('TextArea', 'Text', '69684558|20|40118|280|-1|-19.00') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 69684558, 69684558], [STORE-NO, 2, , 20, 20], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 280, 280], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 5.01, 5.01]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') assert_p('TextArea', 'Text', '69684558|20|40118|280|1|5.01') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 69694158, 69694158], [STORE-NO, 2, , 20, 20], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 280, 280], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 19.00, 19.00]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') click('TextArea') assert_p('TextArea', 'Text', '69694158|20|40118|280|1|19.00') click('Right') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 69694158, 69694158], [STORE-NO, 2, , 20, 20], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 280, 280], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 5.01, 5.01]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') click('TextArea') assert_p('TextArea', 'Text', '69694158|20|40118|280|1|5.01') close()
def test(): from Modules import commonBits from datetime import datetime import time java_recorded_version = '1.6.0_17' if window('Record Editor'): select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('TextField', 'ams PO Download') select('TextField1', '%') ## select('TabbedPane', 'Extras') ## select('TabbedPane', 'Extras') ## select('TabbedPane', 'Child Records') time.sleep(1.0) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'utf8_ams PO Download') click('OK') close() time.sleep(1.0) ## select('TabbedPane', 'Extras') ## select('TabbedPane', 'Extras') ## select('TabbedPane', 'Child Records') select('TabbedPane', commonBits.fl('Extras') ) select('TextField5', 'utf-8') select('BmKeyedComboBox5', commonBits.fl('Text IO (Unicode)') ) # select('BmKeyedComboBox5', '90') time.sleep(0.5) commonBits.save1(click) time.sleep(1) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') time.sleep(1) select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('TextField', 'ams Store') select('TextField1', '%') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields') ) time.sleep(0.5) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'utf8_ams Store') click('OK') close() time.sleep(1.0) # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Fields') select('TabbedPane', commonBits.fl('Extras') ) select('TextField5', 'utf-8') select('BmKeyedComboBox5', commonBits.fl('Text IO (Unicode)') ) time.sleep(0.5) commonBits.save1(click) time.sleep(0.5) commonBits.save1(click) time.sleep(0.5) commonBits.closeWindow(click) time.sleep(0.5) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('RecordList.Record Name_Txt', 'zxzxzFLDg1') select('RecordList.Description_Txt', '%') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLDg1') select('OptionPane.textField', 'zxzxzFLDg777') click('OK') close() ##select('TabbedPane', 'Child Records') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777') assert_p('ChildRecordsJTbl', 'Text', '', commonBits.fl('Child Name') + ',1') select('ChildRecordsJTbl', 'cell: ,0(null)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) click('Right') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD2') click('Right') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLD3') select('OptionPane.textField', 'a777') click('Cancel') close() assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLD3') select('OptionPane.textField', 'zxzxzFLD3a777') click('OK') close() select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3a777') select('RecordFieldsJTbl', 'fld 31 777', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'fld 32 777', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 33 777', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 34 777', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'fld 35 7777', commonBits.fl('FieldName') + ',4') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31 777, , 0, 0, 0, , , ], [2, 5, fld 32 777, , 0, 0, 0, , , ], [7, 9, fld 33 777, , 0, 0, 0, , , ], [18, 10, fld 34 777, , 0, 0, 0, , , ], [28, 12, fld 35 7777, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') ##select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ], [, zxzxzFLD3a777, , , , , ]]' ) select('RecordList.Record Name_Txt', 'zxzxzFLDg7') select('RecordList.Description_Txt', '%') select('RecordList.Record Name_Txt', 'zxzxzFLDg1') select('RecordList.Description_Txt', '%%') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) select('ChildRecordsJTbl', 'cell: ,1(null)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) click('Right') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') select('RecordList.Record Name_Txt', 'zxzxzFLDg777') ##select('TabbedPane', 'Child Records') select('RecordList.Description_Txt', '%') ##select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ], [, zxzxzFLD3a777, , , , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) click('Right') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3a777') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31 777, , 0, 0, 0, , , ], [2, 5, fld 32 777, , 0, 0, 0, , , ], [7, 9, fld 33 777, , 0, 0, 0, , , ], [18, 10, fld 34 777, , 0, 0, 0, , , ], [28, 12, fld 35 7777, , 0, 0, 0, , , ]]' ) commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLD3a777')): click('Yes') close() ##select('TabbedPane1', 'Child Records') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) commonBits.delete3(click) if window(commonBits.fl('Delete: zxzxzFLDg777')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') click(commonBits.fl('Edit') + '1') select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Sorted Field Tree')) # select('List', 'DTAR020') # select('List', 'DTAR020') select('Table', 'cell:' + commonBits.fl('Field') + ',0( )') # select('List', 'DTAR020') select('Table', 'DEPT-NO', commonBits.fl('Field') + ',0') select('Table', 'DATE', commonBits.fl('Field') + ',1') select('Table', 'cell:' + commonBits.fl('Field') + ',1(DATE)') select('Table1', 'cell:' + commonBits.fl('Function') + ',2()') select('Table', 'cell:' + commonBits.fl('Field') + ',1(DATE)') select('Table1', commonBits.fl('Maximum'), commonBits.fl('Function') + ',2') select('Table1', commonBits.fl('Maximum'), commonBits.fl('Function') + ',3') select('Table1', commonBits.fl('Sum'), commonBits.fl('Function') + ',4') select('Table1', commonBits.fl('Sum'), commonBits.fl('Function') + ',5') select('Table1', 'cell:' + commonBits.fl('Function') + ',5(Sum)') commonBits.save(click) ##commonBits.save1(click) ##select('FileChooser', commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx1') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx1') commonBits.save1(click) select_menu( commonBits.fl('Window') + '>>DTAR020.bin>>' + commonBits.fl('Create Sorted Tree')) click(commonBits.fl('Build Tree')) select('JTreeTable', 'cell:DATE,0(40118)') assert_p('JTreeTable', 'Text', '40118', 'DATE,0') select('JTreeTable', 'cell:DEPT-NO,0(60)') assert_p('JTreeTable', 'Text', '5', 'QTY-SOLD,2') select('JTreeTable', 'cell:SALE-PRICE,0(8.74)') assert_p('JTreeTable', 'Text', '166.94', 'SALE-PRICE,1') select('JTreeTable', 'cell:SALE-PRICE,1(166.94)') assert_p('JTreeTable', 'Text', '166.94', 'SALE-PRICE,1') select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',1(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',1') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:QTY-SOLD,2(8)') assert_p('JTreeTable', 'Text', '5', 'QTY-SOLD,3') select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',2(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',2') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:SALE-PRICE,3(12.99)') assert_p('JTreeTable', 'Text', '12.99', 'SALE-PRICE,4') select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',14(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',14') select_menu(commonBits.fl('Edit Record')) select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',14(null)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>DTAR020.bin>>' + commonBits.fl('Table:')) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Execute Sort Tree')) ##select('FileChooser', commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx1') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx1') ##if commonBits.isJava7(): ## keystroke('File Name', 'Enter') click(commonBits.fl('Run Dialog')) # select('List', 'DTAR020') # select('List', 'DTAR020') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') # select('List', 'DTAR020') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') assert_p( 'Table1', 'Content', '[[KEYCODE-NO, ], [STORE-NO, ], [DATE, ' + commonBits.fl('Maximum') + '], [DEPT-NO, ' + commonBits.fl('Maximum') + '], [QTY-SOLD, ' + commonBits.fl('Sum') + '], [SALE-PRICE, ' + commonBits.fl('Sum') + ']]') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') select('Table', 'cell:' + commonBits.fl('Ascending') + ',0(true)') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') select('Table', 'cell:' + commonBits.fl('Ascending') + ',0(false)') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') assert_p( 'Table', 'Content', '[[DEPT-NO, true], [DATE, true], [ , true], [ , true], [ , true]]') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') click(commonBits.fl('Build Tree')) select('JTreeTable', 'cell:SALE-PRICE,1(166.94)') assert_p('JTreeTable', 'Text', '166.94', 'SALE-PRICE,1') select('JTreeTable', 'cell:SALE-PRICE,5(150.26)') assert_p('JTreeTable', 'Text', '150.26', 'SALE-PRICE,5') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): commonBits.selectOldFilemenu(select_menu, 'Utilities', 'File Copy Menu') click('*1') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') commonBits.setMainframeCobolLayout(select, 'DTAR020') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'zzzXfeReverse3DTAR020a.csv') # click('ScrollPane$ScrollBar', 4, 51) # select('ComboBox2', 'XfeDTAR020_reverse') commonBits.setRecordLayout2(select, 'XfeDTAR020_reverse') if commonBits.isJRecord(): click('Right') click('Right') select('TabbedPane', '') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') assert_p( 'Table1', 'Content', '[[KEYCODE-NO, KEYCODE-NO], [STORE-NO, STORE-NO], [DATE, DATE], [DEPT-NO, DEPT-NO], [QTY-SOLD, QTY-SOLD], [SALE-PRICE, SALE-PRICE]]' ) # select('Table1', '') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') doubleclick('Table', commonBits.fl('Record') + ',0') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') doubleclick('Table', commonBits.fl('Record') + ',0') assert_p('Table', 'Content', '[[DTAR020, XfeDTAR020_reverse]]') ## assert_p('Table', 'Content', '[[DTAR020, ]]') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') click('Right') select('TabbedPane', '') # click(commonBits.fl('Choose File')) # if window('Open'): # click('Cancel') # close() select('FileChooser', commonBits.userDir() + 'copyDTAR020toCsv1.xml') ##commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'copyDTAR020toCsv1.xml') commonBits.save1(click) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>' + commonBits.fl('Menu') + '>>' + commonBits.fl('Copy Menu')) click('*') select('FileChooser', commonBits.userDir() + 'copyDTAR020toCsv1.xml') ##commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'copyDTAR020toCsv1.xml') click(commonBits.fl('Run Copy Dialog')) assert_p('FileChooser', 'Text', commonBits.sampleDir() + 'DTAR020.bin') if commonBits.isRecordEditor(): assert_p('ComboBox2', 'Text', 'DTAR020') click('Right') select('TabbedPane', '') assert_p('FileChooser', 'Text', commonBits.sampleDir() + 'zzzXfeReverse3DTAR020a.csv') # select('ComboBox2', 'Generic CSV - enter details') # click('ScrollPane$ScrollBar', 8, 60) # click('ScrollPane$ScrollBar', 8, 74) # click('ScrollPane$ScrollBar', 8, 81) # click('ScrollPane$ScrollBar', 8, 81) if commonBits.isRecordEditor(): assert_p('ComboBox2', 'Text', 'XfeDTAR020_reverse') click('Right') select('TabbedPane', '') select('Table1', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)') assert_p( 'Table1', 'Content', '[[KEYCODE-NO, KEYCODE-NO], [STORE-NO, STORE-NO], [DATE, DATE], [DEPT-NO, DEPT-NO], [QTY-SOLD, QTY-SOLD], [SALE-PRICE, SALE-PRICE]]' ) # select('Table1', '') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') doubleclick('Table', commonBits.fl('Record') + ',0') assert_p('Table', 'Content', '[[DTAR020, XfeDTAR020_reverse]]') ## assert_p('Table', 'Content', '[[DTAR020, ]]') select('Table', 'cell:' + commonBits.fl('Record') + ',0(DTAR020)') click('Right') select('TabbedPane', '') #click('Copy2') commonBits.copy(click) assert_p('TextField1', 'Text', commonBits.fl('Copy Done !!!')) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') ## click('MetalInternalFrameTitlePane', 105, 4) select('FileChooser', commonBits.sampleDir() + 'zzzXfeReverse3DTAR020a.csv') commonBits.setRecordLayout(select, 'XfeDTAR020_reverse') # click('ScrollPane$ScrollBar', 9, 93) # click('ScrollPane$ScrollBar', 9, 102) # click('ScrollPane$ScrollBar', 9, 102) # click('ScrollPane$ScrollBar', 6, 92) commonBits.doEdit(click) select('Table', 'cell:2|SALE-PRICE,0(19.00)') assert_p('Table', 'Text', '5.01', '2|SALE-PRICE,2') select('Table', 'cell:2|SALE-PRICE,0(19.00)') rightclick('Table', '2|SALE-PRICE,1') select('Table', 'cell:2|SALE-PRICE,1(-19.00)') assert_p('Table', 'RowCount', '379') select('Table', 'cell:2|SALE-PRICE,2(5.01)') assert_p('Table', 'ColumnCount', '6') select( 'Table', 'rows:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],columns:[2|SALE-PRICE]' ) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}')) # select('Table2', 'rows:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],columns:[2|SALE-PRICE]') select('Table', 'cell:2|SALE-PRICE,2(4.87)') assert_p( 'Table', 'Content', '[[-1, -19.00, 280, 40118, 20, 69694158], [1, 5.01, 280, 40118, 20, 69694158], [1, 4.87, 170, 40118, 20, 63604808], [1, 69.99, 685, 40118, 20, 62684671], [-1, -69.99, 685, 40118, 20, 62684671], [1, 3.99, 957, 40118, 20, 64634429], [1, 0.89, 957, 40118, 20, 66624458], [10, 2.70, 957, 40118, 20, 63674861], [1, 3.59, 929, 40118, 20, 65674532], [1, 1.99, 957, 40118, 59, 64614401], [1, 1.99, 957, 40118, 59, 64614401], [1, 17.99, 335, 40118, 59, 61664713], [-1, -17.99, 335, 40118, 59, 61664713], [1, 8.99, 410, 40118, 59, 68634752], [1, 5.95, 878, 40118, 59, 60614487], [1, 12.65, 878, 40118, 59, 63644339], [1, 3.99, 620, 40118, 59, 60694698]]' ) select('Table', 'cell:2|SALE-PRICE,2(4.87)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') # select('Table', 'rows:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],columns:[2|SALE-PRICE]') # select('Table', 'rows:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],columns:[2|SALE-PRICE]') select_menu( commonBits.fl('Window') + '>>zzzXfeReverse3DTAR020a.csv>>' + commonBits.fl('Table:')) select('Table', 'cell:2|SALE-PRICE,16(-17.99)') rightclick('Table', '2|SALE-PRICE,16') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:2|SALE-PRICE,16(-17.99)') select('Table', 'cell:' + commonBits.fl('Data') + ',1(-17.99)') assert_p('Table', 'Text', 'cell:' + commonBits.fl('Data') + ',1(-17.99)') select('Table', 'cell:' + commonBits.fl('Data') + ',2(335)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , -1, -1], [SALE-PRICE, 2, , -17.99, -17.99], [DEPT-NO, 3, , 335, 335], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 61664713, 61664713]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(335)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''-1þ-17.99þ335þ40118þ59þ61664713 23f233233f333f33333f33f33333333 d1ed17e99e335e40118e59e61664713''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',5(68634752)') assert_p('Table', 'Text', 'cell:' + commonBits.fl('Data') + ',5(68634752)') select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 8.99, 8.99], [DEPT-NO, 3, , 410, 410], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 68634752, 68634752]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ8.99þ410þ40118þ59þ68634752 3f3233f333f33333f33f33333333 1e8e99e410e40118e59e68634752''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 5.95, 5.95], [DEPT-NO, 3, , 878, 878], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 60614487, 60614487]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ5.95þ878þ40118þ59þ60614487 3f3233f333f33333f33f33333333 1e5e95e878e40118e59e60614487''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 12.65, 12.65], [DEPT-NO, 3, , 878, 878], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 63644339, 63644339]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ12.65þ878þ40118þ59þ63644339 3f33233f333f33333f33f33333333 1e12e65e878e40118e59e63644339''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',1(3.99)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 3.99, 3.99], [DEPT-NO, 3, , 620, 620], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 60694698, 60694698]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',1(3.99)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ3.99þ620þ40118þ59þ60694698 3f3233f333f33333f33f33333333 1e3e99e620e40118e59e60694698''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 3.99, 3.99], [DEPT-NO, 3, , 620, 620], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 60664659, 60664659]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ3.99þ620þ40118þ59þ60664659 3f3233f333f33333f33f33333333 1e3e99e620e40118e59e60664659''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',5(62684217)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 9.99, 9.99], [DEPT-NO, 3, , 957, 957], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 62684217, 62684217]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',5(62684217)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ9.99þ957þ40118þ59þ62684217 3f3233f333f33333f33f33333333 1e9e99e957e40118e59e62684217''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 3.99, 3.99], [DEPT-NO, 3, , 929, 929], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 67674686, 67674686]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ3.99þ929þ40118þ59þ67674686 3f3233f333f33333f33f33333333 1e3e99e929e40118e59e67674686''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',5(61684613)') select('Table', 'cell:' + commonBits.fl('Data') + ',2(335)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 12.99, 12.99], [DEPT-NO, 3, , 335, 335], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 61684613, 61684613]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(335)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ12.99þ335þ40118þ59þ61684613 3f33233f333f33333f33f33333333 1e12e99e335e40118e59e61684613''') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 2.59, 2.59], [DEPT-NO, 3, , 957, 957], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 59, 59], [KEYCODE-NO, 6, , 64624770, 64624770]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''1þ2.59þ957þ40118þ59þ64624770 3f3233f333f33333f33f33333333 1e2e59e957e40118e59e64624770''') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zx3xzFLDg1') select('RecordList.Description_Txt', '%') ## select('ChildRecordsJTbl', 'cell: ,0(sl)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',0') select_menu(commonBits.fl('Edit Child Record')) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zx3xzFLD1') select('OptionPane.textField', 'zx3xzFLD1aaa') click('OK') close() assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'fld 13aa', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 12aa', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 11aa', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aa, , 0, 0, 0, , , ], [2, 5, fld 12aa, , 0, 0, 0, , , ], [7, 9, fld 13aa, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLD1aaa') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ], [, zx3xzFLD1aaa, , , , , ]]' ) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ], [, zx3xzFLD1aaa, , , , , ]]' ) select('ChildRecordsJTbl', 'zx3xzFLD1aaa', commonBits.fl('Tree Parent') + ',2') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zx3xzFLD2)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , zx3xzFLD1aaa], [, zx3xzFLD1aaa, , , , , ]]' ) ## select('ChildRecordsJTbl', 'cell: ,3(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',3') select_menu(commonBits.fl('Edit Child Record')) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aa, , 0, 0, 0, , , ], [2, 5, fld 12aa, , 0, 0, 0, , , ], [7, 9, fld 13aa, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLD1aaa') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLD1aaa')): click('Yes') close() select('TabbedPane1', commonBits.fl('Child Records')) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) time.sleep(0.9) select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',3()') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) ## click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('RecordList.Record Name_Txt', 'zxzxzFLDg1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Tree Parent') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',2(zxzxzFLD2)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , zxzxzFLD2]]' ) ## select('ChildRecordsJTbl', '') select('ChildRecordsJTbl', 'cell: ,1(null)') select('RecordDef.Record Name_Txt', 'zxzxzFLD2aaa') click(commonBits.fl('Save As')) if window('Input'): click('Cancel') close() commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2aaa], [, zxzxzFLD2aaa, , , , , ], [, zxzxzFLD3, , , , , zxzxzFLD2aaa]]' ) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',2(zxzxzFLD2)') select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',2') ## select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',2()') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2aaa], [, zxzxzFLD2aaa, , , , , ], [, zxzxzFLD3, , , , , ]]' ) ## select('ChildRecordsJTbl', '') select('ChildRecordsJTbl', 'cell: ,1(null)') select('RecordDef.Record Name_Txt', 'zxzxzFLD2') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) time.sleep(1) select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0()') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') click(commonBits.fl('Edit') + '1') select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Sorted Field Tree')) # select('List', 'DTAR020') # select('List', 'DTAR020') select('Table', 'cell:' + commonBits.fl('Field') + ',0( )') # select('List', 'DTAR020') select('Table', 'DEPT-NO', commonBits.fl('Field') + ',0') select('Table', 'DATE', commonBits.fl('Field') + ',1') select('Table', 'cell:' + commonBits.fl('Field') + ',1(DATE)') select('Table1', 'cell:' + commonBits.fl('Function') + ',2()') select('Table', 'cell:' + commonBits.fl('Field') + ',1(DATE)') select('Table1', commonBits.fl('Maximum'), commonBits.fl('Function') + ',2') select('Table1', commonBits.fl('Maximum'), commonBits.fl('Function') + ',3') select('Table1', commonBits.fl('Sum'), commonBits.fl('Function') + ',4') select('Table1', commonBits.fl('Sum'), commonBits.fl('Function') + ',5') select('Table1', 'cell:' + commonBits.fl('Function') + ',5(Sum)') ##commonBits.save1(click) commonBits.save(click) ##select('FileChooser', commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx2') commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx2') commonBits.save1(click) select_menu(commonBits.fl('Window') + '>>DTAR020.bin>>' + commonBits.fl('Create Sorted Tree')) click(commonBits.fl('Build Tree')) select('JTreeTable', 'cell:DATE,0(40118)') assert_p('JTreeTable', 'Text', '40118', 'DATE,0') select('JTreeTable', 'cell:DEPT-NO,0(60)') assert_p('JTreeTable', 'Text', '5', 'QTY-SOLD,2') select('JTreeTable', 'cell:SALE-PRICE,0(8.74)') assert_p('JTreeTable', 'Text', '166.94', 'SALE-PRICE,1') select('JTreeTable', 'cell:SALE-PRICE,1(166.94)') assert_p('JTreeTable', 'Text', '166.94', 'SALE-PRICE,1') select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',1(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',1') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:QTY-SOLD,2(8)') assert_p('JTreeTable', 'Text', '5', 'QTY-SOLD,3') select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',2(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',2') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:SALE-PRICE,3(12.99)') assert_p('JTreeTable', 'Text', '12.99', 'SALE-PRICE,4') select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',14(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',14') select_menu(commonBits.fl('Edit Record')) select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',14(null)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu(commonBits.fl('Window') + '>>DTAR020.bin>>' + commonBits.fl('Table:')) select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Execute Sort Tree')) ##select('FileChooser', commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx2') commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'SortTree' + commonBits.fileSep() + 'xx2') click(commonBits.fl('Run') ) select('JTreeTable', 'cell:SALE-PRICE,1(166.94)') assert_p('JTreeTable', 'Text', '166.94', 'SALE-PRICE,1') select('JTreeTable', 'cell:SALE-PRICE,2(87.46)') assert_p('JTreeTable', 'Text', '87.46', 'SALE-PRICE,2') select('JTreeTable', 'cell:SALE-PRICE,3(-15.85)') assert_p('JTreeTable', 'Text', '-15.85', 'SALE-PRICE,3') select('JTreeTable', 'cell:SALE-PRICE,9(-4.00)') select('JTreeTable', 'cell:SALE-PRICE,7(14.09)') assert_p('JTreeTable', 'Text', '17.73', 'SALE-PRICE,8') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*1') select('RecordDef.Record Name_Txt', 'zxxxzFLDg56') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) select('RecordDef.System_Txt', 'Unkown') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'zxxxzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'zxxxzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(zxxxzFLD2)') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',0()') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) ## select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',0()') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl', '11', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl', '22', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1()') rightclick('RecordSelectionJTbl', 'and,1') click(commonBits.fl('Insert')) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',2()') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',2') select('RecordSelectionJTbl', '33', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1(22)') rightclick('RecordSelectionJTbl', 'and,2') assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 11, =, 22], [' + commonBits.fl('Or') + ', , fld 11, =, 33]]') select('TabbedPane', 'zxxxzFLD2') click(commonBits.fl('Insert') + '1') click(commonBits.fl('Insert') + '1') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl1', 'fld 21', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl1', '21', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field Value') + ',0()') rightclick('RecordSelectionJTbl1', 'and,1') select('RecordSelectionJTbl1', 'fld 21', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl1', '12', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field Value') + ',0(21)') assert_p( 'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [' + commonBits.fl('Or') + ', , fld 21, =, 12]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 22], [, , , Or , , fld 11, =, 33], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 22], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 33], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12]]') click('BasicInternalFrameTitlePane$NoFocusButton2') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxxxzFLDg567') click('OK') close() ##select('TabbedPane', 'Child Records') ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): click(commonBits.fl('Choose File')) if window('Open'): select(commonBits.selectPane(), 'Ams_LocDownload_20041228.txt') click('Open') close() click(commonBits.fl('Edit') + '1') click('Filter1') select('Table1', 'Loc Type', commonBits.fl('Field') + ',0') select('Table1', 'st', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Field') + ',2(null)') commonBits.save1(click) #select('FileChooser', commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx1') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx1') commonBits.save1(click) select_menu( commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Filter Options')) commonBits.filter(click) select('Table', 'cell:10 - 35|Loc Name,0(Bankstown)') assert_p('Table', 'Text', 'Bankstown', '10 - 35|Loc Name,0') select('Table', 'cell:8 - 2|Loc Type,1(ST)') rightclick('Table', '8 - 2|Loc Type,1') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:8 - 2|Loc Type,1(ST)') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') assert_p('Table', 'Text', 'Penrith', commonBits.fl('Data') + ',6') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') assert_p( 'Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5019, 5019], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Penrith, Penrith], [Loc Addr Ln1, 45, 40, Penrith, Penrith], [Loc Addr Ln2, 85, 40, 58 Leland Street, 58 Leland Street], [Loc Addr Ln3, 125, 35, Penrith, Penrith], [Loc Postcode, 160, 10, 2750, 2750], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('Table', 'cell:8 - 2|Loc Type,1(ST)') select('Table', 'cell:8 - 2|Loc Type,1(ST)') select_menu( commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Table:')) select('Table2', 'cell:8 - 2|Loc Type,1(ST)') select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Execute Saved Filter')) ##select('FileChooser', commonBits.userDir() + 'Filter' + commonBits.fileSep() +'xx1') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx1') click(commonBits.fl('Run')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Text', 'Blacktown', '10 - 35|Loc Name,2') select('Table', 'cell:10 - 35|Loc Name,5(Eastwood)') rightclick('Table', '10 - 35|Loc Name,5') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:10 - 35|Loc Name,5(Eastwood)') select( 'Table', 'cell:' + commonBits.fl('Data') + ',4(Marayong Offsite Reserve)') assert_p('Table', 'Text', 'Marayong Offsite Reserve', commonBits.fl('Data') + ',4') select( 'Table', 'cell:' + commonBits.fl('Data') + ',4(Marayong Offsite Reserve)') assert_p( 'Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5052, 5052], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Eastwood, Eastwood], [Loc Addr Ln1, 45, 40, Marayong Offsite Reserve, Marayong Offsite Reserve], [Loc Addr Ln2, 85, 40, 11 Melissa Place, 11 Melissa Place], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]' ) close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Create Layout')) select('RecordDef.Record Name_Txt', 'xx33xx') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) # select('TabbedPane', 'Child Records') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'ams PO Download: Allocation', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'ams PO Download: Detail', commonBits.fl('Child Record') + ',1') select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(ams PO Download: Detail)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2()') select('ChildRecordsJTbl', 'ams PO Download: Header', commonBits.fl('Child Record') + ',2') select('ChildRecordsJTbl', 'ams PO Download: Detail', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'ams PO Download: Header', commonBits.fl('Tree Parent') + ',1') select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',1(ams PO Download: Header)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ams PO Download: Header], [, ams PO Download: Header, , , , , ]]' ) select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',1(ams PO Download: Header)') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xx33xx22') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Child Records') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ams PO Download: Header], [, ams PO Download: Header, , , , , ]]' ) time.sleep(0.7) select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'ams PO Download: Allocation', commonBits.fl('Tree Parent') + ',1') select('ChildRecordsJTbl', 'ams PO Download: Header', commonBits.fl('Tree Parent') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1()') click(commonBits.fl('Save As')) if window('Input'): click('Cancel') close() commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('RecordList.Record Name_Txt', 'xx33xx') select('RecordList.Description_Txt', '%') # select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ams PO Download: Header], [, ams PO Download: Header, , , , , ]]' ) commonBits.delete3(click) if window(commonBits.fl('Delete: xx33xx')): click('Yes') close() select('RecordList.Record Name_Txt', 'xx33xx22') select('RecordList.Description_Txt', '%%') # select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ], [, ams PO Download: Detail, , , , , ams PO Download: Allocation], [, ams PO Download: Header, , , , , ams PO Download: Header]]' ) assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ], [, ams PO Download: Detail, , , , , ams PO Download: Allocation], [, ams PO Download: Header, , , , , ams PO Download: Header]]' ) commonBits.delete3(click) if window(commonBits.fl('Delete: xx33xx22')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*1') select('RecordDef.Record Name_Txt', 'zx3xzFLDg777') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records') ) select('RecordDef.System_Txt', 'Unkown') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zx3xzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(zx3xzFLD1)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1()') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zx3xzFLD2)') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ]]') select('ChildRecordsJTbl', 'cell: ,1(null)') commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zx3xzFLDg777aaaa') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '1111', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'fff', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fff, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777aaaa') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777aaaa, , , , , ]]') select('ChildRecordsJTbl', 'zx3xzFLDg777aaaa', commonBits.fl('Tree Parent') + ',1') select('ChildRecordsJTbl', 'cell: ,2(null)') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zx3xzFLDg777aaaa') select('OptionPane.textField', 'zx3xzFLDg777bbbb') click('OK') close() select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') select('RecordFieldsJTbl', 'fffbbb', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , ]]') select('ChildRecordsJTbl', 'zx3xzFLDg777aaaa', commonBits.fl('Tree Parent') + ',3') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',3(zx3xzFLDg777aaaa)') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa]]') select('ChildRecordsJTbl', 'cell: ,3(null)') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zx3xzFLDg777cccc') click('OK') close() assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777cccc, , , , , ]]') select('ChildRecordsJTbl', 'zx3xzFLDg777bbbb', commonBits.fl('Tree Parent') + ',4') select('ChildRecordsJTbl', 'cell: ,4(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') select('RecordDef.Record Name_Txt', 'zx3xzFLDg777dddd') commonBits.save1(click) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zx3xzFLDg777eeee') click('OK') close() assert_p('RecordFieldsJTbl', 'Text', '', commonBits.fl('Description') + ',0') select('RecordFieldsJTbl', 'fffbbbee', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Text', '', commonBits.fl('Description') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , ]]') click(commonBits.fl('Refresh') ) select('ChildRecordsJTbl', 'cell: ,4(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777dddd') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'zx3xzFLDg777aaaa', commonBits.fl('Tree Parent') + ',5') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',5(zx3xzFLDg777aaaa)') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777cccc, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]') select('ChildRecordsJTbl', 'cell: ,3(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777bbbb') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLDg777bbbb')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777dddd, , , , , ], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p('RecordFieldsJTbl', 'Text', 'fff', commonBits.fl('FieldName') + ',0') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777aaaa') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLDg777aaaa')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777dddd, , , , , ], [, zx3xzFLDg777eeee, , , , , ]]') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',3()') select('ChildRecordsJTbl', 'zx3xzFLDg777dddd', commonBits.fl('Tree Parent') + ',3') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field Value') + ',2()') click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('RecordList.Record Name_Txt', 'zx3xzFLDg777') select('RecordList.Description_Txt', '%') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777dddd, , , , , ], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777dddd]]') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777dddd') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLDg777dddd')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777eeee, , , , , ]]') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777eeee') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLDg777eeee')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ]]') commonBits.delete3(click) if window(commonBits.fl('Delete: zx3xzFLDg777')): click('Yes') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Ams_PODownload_20041231.txt') commonBits.doEdit(click) select_menu( commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) select('Table', 'cell:' + commonBits.fl('Show') + ',3(true)') select('Table', 'cell:' + commonBits.fl('Show') + ',4(true)') select('Table', 'cell:' + commonBits.fl('Show') + ',7(true)') select('Table', 'cell:' + commonBits.fl('Show') + ',8(true)') click(commonBits.fl('Go')) select('LayoutCombo', 'ams PO Download: Detail') ## select('Table', '') rightclick('Table', '38 - 1|Filler,2') select_menu(commonBits.fl('Hide Column')) ## select('Table', '') rightclick('Table', '72 - 15|pmg dtl tech key,2') select_menu(commonBits.fl('Hide Column')) ## select('Table', '') rightclick('Table', '3 - 9|Pack Qty,0') select_menu(commonBits.fl('Edit Record')) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) select_menu( commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) commonBits.save(click) ##select('FileChooser', commonBits.CobolCopybookDir() + 't1Hide.xml') commonBits.selectFileName(select, keystroke, commonBits.CobolCopybookDir() + 't1Hide.xml') commonBits.save1(click) ## select_menu(commonBits.fl('Window') + '>>Menu') ## click('MetalInternalFrameTitlePane', 215, 10) ##commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') ## click('MetalInternalFrameTitlePane', 458, 5) select_menu( commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) ## select('Table', '') rightclick('Table', '1 - 2|Record Type,0') select_menu(commonBits.fl('Edit Record')) assert_p( 'Table', 'Content', '[[Record Type, 1, 2, H1, H1], [Sequence Number, 3, 5, 45.349, 45349], [Vendor, 8, 10, 6060, 0000006060], [PO, 18, 12, 286225, 286225], [Entry Date, 30, 6, 040909, 040909], [Filler, 36, 8, , ], [beg01 code, 44, 2, 00, 00], [beg02 code, 46, 2, , ], [Department, 48, 4, 200, 200], [Expected Reciept Date, 52, 6, 050102, 050102], [Cancel by date, 58, 6, 050107, 050107], [EDI Type, 68, 1, , ], [Add Date, 69, 6, , ], [Filler, 75, 1, , ], [Department Name, 76, 10, LADIES KNI, LADIES KNI], [Prcoess Type, 86, 1, C, C], [Order Type, 87, 2, FT, FT]]' ) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Load Saved Hidden Fields')) ##select('FileChooser', commonBits.CobolCopybookDir() + 't1Hide.xml') commonBits.selectFileName(select, keystroke, commonBits.CobolCopybookDir() + 't1Hide.xml') click(commonBits.fl('Run')) select('Table', 'cell:' + commonBits.fl('Data') + ',3(286225)') select_menu( commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Record:')) select('Table', 'cell:' + commonBits.fl('Data') + ',2(6060)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, H1, H1], [Sequence Number, 3, 5, 45.349, 45349], [Vendor, 8, 10, 6060, 0000006060], [PO, 18, 12, 286225, 286225], [Entry Date, 30, 6, 040909, 040909], [Filler, 36, 8, , ], [beg01 code, 44, 2, 00, 00], [beg02 code, 46, 2, , ], [Department, 48, 4, 200, 200], [Expected Reciept Date, 52, 6, 050102, 050102], [Cancel by date, 58, 6, 050107, 050107], [EDI Type, 68, 1, , ], [Add Date, 69, 6, , ], [Filler, 75, 1, , ], [Department Name, 76, 10, LADIES KNI, LADIES KNI], [Prcoess Type, 86, 1, C, C], [Order Type, 87, 2, FT, FT]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(6060)') click('Right') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 7.0000, 000070000], [Pack Cost, 12, 13, 0.0002, 0000000000002], [APN, 25, 13, 2222500000000, 2222500000000], [Product, 39, 8, 43314531, 43314531], [Case Pack id, 87, 15, 45614531, 45614531], [Product Name, 101, 50, DONKEY 24-006607 SHWL WRAP CARD, DONKEY 24-006607 SHWL WRAP CARD]]' ) click('Right') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5043, 5043], [Pack Quantity 1, 7, 8, 1, 00000001], [DC Number 4, 39, 4, 5076, 5076], [Pack Quantity 4, 43, 8, 1, 00000001], [DC Number 6, 63, 4, 5151, 5151], [Pack Quantity 6, 67, 8, 1, 00000001], [DC Number 7, 75, 4, 5072, 5072], [Pack Quantity 7, 79, 8, 1, 00000001], [DC Number 8, 87, 4, , ], [Pack Quantity 8, 91, 8, 0, 00000000], [DC Number 9, 99, 4, , ], [Pack Quantity 9, 103, 8, 0, 00000000], [DC Number 10, 111, 4, , ], [Pack Quantity 10, 115, 8, 0, 00000000]]' ) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zxzxzFLDg1') ##select('TabbedPane', 'Child Records') select('RecordList.Description_Txt', '%') ##select('TabbedPane', 'Child Records') select('ChildRecordsJTbl', 'cell: ,0(null)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxzxzFLD1aaa') click('OK') close() assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1aaa') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'fld 11aaa', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'fld 12aaa', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 13aaa', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(fld 13)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aaa, , 0, 0, 0, , , ], [2, 5, fld 12aaa, , 0, 0, 0, , , ], [7, 9, fld 13aaa, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aaa, , 0, 0, 0, , , ], [2, 5, fld 12aaa, , 0, 0, 0, , , ], [7, 9, fld 13aaa, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') commonBits.save1(click) commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zxzxzFLD1bbb') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '2', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'ffff', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, ffff, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ], [, zxzxzFLD1aaa, , , , , ], [, zxzxzFLD1bbb, , , , , ]]' ) select('RecordList.Description_Txt', '%%') ## select('TabbedPane', 'Child Records') select('RecordList.Record Name_Txt', 'zxzxzFLDg12') select('RecordList.Description_Txt', '%%%') select('RecordList.Record Name_Txt', 'zxzxzFLDg1') select('RecordList.Description_Txt', '%%') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ], [, zxzxzFLD1aaa, , , , , ], [, zxzxzFLD1bbb, , , , , ]]' ) select('ChildRecordsJTbl', 'cell: ,0(null)') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) click('Right') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD2') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) click('Right') time.sleep(0.6) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) click('Right') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1aaa') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aaa, , 0, 0, 0, , , ], [2, 5, fld 12aaa, , 0, 0, 0, , , ], [7, 9, fld 13aaa, , 0, 0, 0, , , ]]' ) commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLD1aaa')): click('Yes') close() select('TabbedPane', commonBits.fl('Extras')) click('BasicInternalFrameTitlePane$NoFocusButton2') select('RecordList.Description_Txt', '%') select('TabbedPane', commonBits.fl('Child Records')) select('RecordList.Record Name_Txt', 'zxzxzFLDg13') select('RecordList.Description_Txt', '%%') select('RecordList.Record Name_Txt', 'zxzxzFLDg1') select('RecordList.Description_Txt', '%') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ], [, zxzxzFLD1aaa, , , , , ], [, zxzxzFLD1bbb, , , , , ]]') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ], [, zxzxzFLD1bbb, , , , , ]]' ) select('ChildRecordsJTbl', 'cell: ,3(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, ffff, , 0, 0, 0, , , ]]') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1bbb') commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLD1bbb')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'cell: ,4(null)') select('ChildRecordsJTbl', 'cell: ,4(null)') select('RecordList.Description_Txt', '%') select('RecordList.Record Name_Txt', 'zxzxzFLDg1%') select('RecordList.Description_Txt', '%%') ##select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): click(commonBits.fl('Choose File')) if window('Open'): select(commonBits.selectPane(), 'Ams_PODownload_20041231.txt') click('Open') close() click(commonBits.fl('Edit') + '1') select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Record Based Tree')) select('Table', 'ams PO Download: Header', commonBits.fl('Parent Record') + ',0') select('Table', 'ams PO Download: Detail', commonBits.fl('Parent Record') + ',2') select('Table', 'cell:' + commonBits.fl('Parent Record') + ',2(0)') commonBits.save1(click) ##select('FileChooser', commonBits.userDir() + 'RecordTree' + commonBits.fileSep() + 'xx') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'RecordTree' + commonBits.fileSep() + 'xx') click('Save1') select_menu( commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Create Record Tree')) click(commonBits.fl('Build')) select('JTreeTable', 'cell:PO,0(286225)') assert_p('JTreeTable', 'Text', '286225', 'PO,0') select('JTreeTable', 'cell:PO,0(286225)') assert_p( 'JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]' ) select('JTreeTable', 'cell:PO,0(286225)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Execute Record Tree')) ##select('FileChooser', commonBits.userDir() + 'RecordTree' + commonBits.fileSep() + 'xx') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'RecordTree' + commonBits.fileSep() + 'xx') click(commonBits.fl('Run Dialog')) select( 'Table', 'cell:' + commonBits.fl('Record') + ',1(ams PO Download: Header)') assert_p( 'Table', 'Content', '[[ams PO Download: Detail, 1], [ams PO Download: Header, -1], [ams PO Download: Allocation, 0]]' ) select( 'Table', 'cell:' + commonBits.fl('Record') + ',1(ams PO Download: Header)') click(commonBits.fl('Build')) select('JTreeTable', 'cell:PO,0(286225)') assert_p('JTreeTable', 'Text', '222227', 'PO,1') select('JTreeTable', 'cell:PO,3(294915)') assert_p('JTreeTable', 'Text', '294915', 'PO,3') select('JTreeTable', 'cell:PO,3(294915)') select('JTreeTable', 'cell:PO,5(295139)') assert_p( 'JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]' ) select('JTreeTable', 'cell:PO,5(295139)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Execute Record Tree')) ##select('FileChooser', commonBits.userDir() + 'RecordTree' + commonBits.fileSep() + 'xx') commonBits.selectFileName( select, keystroke, commonBits.userDir() + 'RecordTree' + commonBits.fileSep() + 'xx') click(commonBits.fl('Run')) select('JTreeTable', 'cell:Sequence Number,2(45.351)') assert_p('JTreeTable', 'Text', '45.352', 'Sequence Number,3') select('JTreeTable', 'cell:PO,5(295139)') assert_p( 'JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]' ) select('JTreeTable', 'cell:PO,5(295139)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()