def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zxzxzFLDg1') select('RecordDef.Description_Txt', 'Group Test 1') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0()') commonBits.delete2(click) select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) ##select('TabbedPane', 'Child Records') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zxzxzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(zxzxzFLD1)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1()') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(zxzxzFLD2)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2()') select('ChildRecordsJTbl', 'zxzxzFLD3', commonBits.fl('Child Record') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(zxzxzFLD3)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(zxzxzFLD3)') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxzxzFLDg2') click('OK') close() ##select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) select('RecordDef.Description_Txt', 'Group Test 2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') commonBits.delete2(click) assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD3, , , , , ]]') select('RecordList.Record Name_Txt', 'zxzxzFLDg1') #select('TabbedPane', commonBits.fl('Child Records')) select('RecordList.Description_Txt', '%') ##select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'Group Test 1') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg1') select('RecordList.Record Name_Txt', 'zxzxzFLDg2') #select('TabbedPane', 'Child Records') select('RecordList.Description_Txt', '%%') select('TabbedPane', commonBits.fl('Child Records')) assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD3, , , , , ]]') assert_p('RecordDef.Description_Txt', 'Text', 'Group Test 2') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg2') commonBits.delete3(click) if window(commonBits.fl('Delete: zxzxzFLDg2')): click('Yes') close() select('RecordList.Record Name_Txt', 'zxzxzFLDg1') select('RecordList.Description_Txt', '%') select('TabbedPane', commonBits.fl('Child Records')) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg1') 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 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 import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zxzxzFLD1') select('RecordDef.Description_Txt', 'fld tst 3') select('RecordDef.Lines to Insert_Txt', '3') click(commonBits.fl('Insert')) select('RecordDef.Lines to Insert_Txt', '') assert_p( 'RecordFieldsJTbl', 'Content', '[[0, 0, , , 0, 0, 0, , , ], [0, 0, , , 0, 0, 0, , , ], [0, 0, , , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '1', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'fld 11', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', '2', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'fld 12', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', '7', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '9', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', 'fld 13', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') 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', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLD1') select('OptionPane.textField', 'zxzxzFLD2') 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, , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '18', commonBits.fl('Position') + ',3') select('RecordFieldsJTbl', '10', commonBits.fl('Length') + ',3') select('RecordFieldsJTbl', 'fld 24', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'fld 23', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 22', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 21', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(fld 22)') 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, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(fld 22)') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLD2') select('OptionPane.textField', 'zxzxzFLD3') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') 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, , , ]]' ) select('RecordFieldsJTbl', 'fld 34', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'fld 33', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 32', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 31', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '28', commonBits.fl('Position') + ',4') select('RecordFieldsJTbl', '12', commonBits.fl('Length') + ',4') select('RecordFieldsJTbl', 'fld 35', commonBits.fl('FieldName') + ',4') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') 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') + ',3()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') select('RecordList.Record Name_Txt', 'zxzxzFLD1') select('RecordList.Description_Txt', '%') time.sleep(1.0) 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, , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1') select('RecordList.Record Name_Txt', 'zxzxzFLD2') select('RecordList.Description_Txt', '%%') 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') assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') select('RecordList.Record Name_Txt', 'zxzxzFLD3') select('RecordList.Description_Txt', '%') time.sleep(0.6) 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('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'): click('*') commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zx3g3xzFLDg543') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zxxxzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'zxxxzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'zxxxzFLD2', commonBits.fl('Child Record') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(zxxxzFLD2)') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) 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', 'cell:' + commonBits.fl('Field Value') + ',0()') rightclick('RecordSelectionJTbl', 'and,1') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl', '121', commonBits.fl('Field Value') + ',1') select('TabbedPane', 'zxxxzFLD2') click(commonBits.fl('Insert') + '1') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl1', 'fld 23', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl1', '23', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl1', 'cell:or,0()') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 23, =, 23]]') select('TabbedPane', 'zxxxzFLD1') assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 11, =, 121]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 121], [, , , , , , =, ], [, , And , , , fld 23, =, 23], [, , , , , , =, ]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 121], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 23, =, 23], [, , , , , , =, ]]') select('JTreeTable', 'fff', commonBits.fl('Field Name') + ' ,0') select('JTreeTable', 'vvv', commonBits.fl('Test Value') + ' ,0') select('JTreeTable', 'cell:' + commonBits.fl('Test Value') + ' ,1(11)') ## assert_p('JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 121], [, , , , , , =, ], [, , And , , , fld 23, =, 23], [, , , , , , =, ]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 121], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 23, =, 23], [, , , , , , =, ]]') select('JTreeTable', 'cell:' + commonBits.fl('Test Value') + ' ,1(11)') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , fff, vvv, , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD2, , , , , ]]' ) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zx3g3xzFLDg5432') click('OK') close() ## select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , fff, vvv, , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD2, , , , , ]]' ) ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 11, =, 121]]') select('TabbedPane', 'zxxxzFLD2') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 23, =, 23]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 121], [, , , , , , =, ], [, , And , , , fld 23, =, 23], [, , , , , , =, ]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 121], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 23, =, 23], [, , , , , , =, ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') select('RecordList.Record Name_Txt', 'zx3g3xzFLDg543') click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('RecordList.Record Name_Txt', 'zx3g3xzFLDg543') select('RecordList.Description_Txt', '%') ##select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , fff, vvv, , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD2, , , , , ]]' ) ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 11, =, 121]]') select('TabbedPane', 'zxxxzFLD2') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 23, =, 23]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 121], [, , , , , , =, ], [, , And , , , fld 23, =, 23], [, , , , , , =, ]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 121], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 23, =, 23], [, , , , , , =, ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') select('RecordList.Record Name_Txt', 'zx3g3xzFLDg5432') select('RecordList.Description_Txt', '%%') ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu(commonBits.fl('Edit Record Selections')) assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 11, =, 121]]') select('TabbedPane', 'zxxxzFLD2') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 23, =, 23]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , And , , , fld 11, =, 11], [, , , Or , , fld 11, =, 121], [, , , , , , =, ], [, , And , , , fld 23, =, 23], [, , , , , , =, ]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , fff, =, vvv], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 121], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 23, =, 23], [, , , , , , =, ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_20' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'DTAR1000_Store_file_std.bin') commonBits.setRecordLayout(select, 'xDTAR1000 VB') click(commonBits.fl('Edit') + '1') select( 'Table', 'rows:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[55 - 1|NEW-STORE]' ) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}')) ## select('Table2', 'rows:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[55 - 1|NEW-STORE]') assert_p( 'Table', 'Content', '[[4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) ## select('Table', 'rows:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[55 - 1|NEW-STORE]') select('Table', 'rows:[0,1],columns:[55 - 1|NEW-STORE]') click('copy2') select('Table', 'cell:5 - 50|STORE-NAME,9(Q Earlville)') click('Paste1') #### select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p( 'Table', 'Content', '[[4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'rows:[27,28,29,30],columns:[55 - 1|NEW-STORE]') click('copy2') select('Table', 'cell:55 - 1|NEW-STORE,15(N)') click('Paste1') assert_p( 'Table', 'Content', '[[1, 20, V Geelong, N, Y, N, N, N, N], [2, 40, Q Coffs Harbour, N, Y, N, N, N, N], [3, 40, Q Mackay, N, Y, N, N, N, N], [4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [1, 20, V Geelong, N, Y, N, N, N, N], [2, 40, Q Coffs Harbour, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N], [40, 40, Q Tweed Heads, N, Y, N, N, N, N], [42, 20, V Reservoir, N, Y, N, N, N, N], [43, 60, W Morley, N, Y, N, N, N, N], [44, 50, S Mt Gambier, N, Y, N, N, N, N], [45, 60, W Carousel, N, Y, N, N, N, N], [46, 10, N Dubbo, N, Y, N, N, N, N], [47, 50, S Sefton Park, N, Y, N, N, N, N], [48, 40, Q Bundaberg, N, Y, N, N, N, N], [49, 40, Q Rockhampton, N, Y, N, N, N, N], [52, 10, N Eastwood, N, Y, N, N, N, N], [54, 20, V Highpoint City, N, Y, N, N, N, N], [55, 10, N Leichhardt, N, Y, N, N, N, N], [57, 60, W Victoria Park, N, Y, N, N, N, N], [58, 20, V Knox City, N, Y, N, N, N, N], [59, 40, Q Buranda, N, Y, N, N, N, N], [60, 10, N St Marys, N, Y, N, N, N, N], [61, 20, V Waverley Gardens, N, Y, N, N, N, N], [62, 40, Q Castletown, N, Y, N, N, N, N], [64, 20, V Hoppers Crossing, N, Y, N, N, N, N], [65, 60, W Innaloo, N, Y, N, N, N, N], [67, 20, V Morwell Mid Valley, N, Y, N, N, N, N], [68, 40, Q Mt Gravatt, N, Y, N, N, N, N], [69, 60, W Midland, N, Y, N, N, N, N], [70, 10, N Bass Hill, N, Y, N, N, N, N], [72, 60, W Geraldton, N, Y, N, N, N, N], [73, 40, Q Southport, N, Y, N, N, N, N], [74, 10, N Campbelltown, N, Y, N, N, N, N], [75, 20, V Sale, N, Y, N, N, N, N], [76, 60, W Bull Creek, N, Y, N, N, N, N], [77, 50, S Elizabeth, N, Y, N, N, N, N], [78, 10, N Warringah Mall, N, Y, N, N, N, N], [79, 60, W Stirling, N, Y, N, N, N, N], [80, 20, V Sunshine, N, Y, N, N, N, N], [81, 10, N Ashfield, N, Y, N, N, N, N], [82, 20, V Box Hill, N, Y, N, N, N, N], [83, 40, Q Springwood, N, Y, N, N, N, N], [84, 40, Q Brookside, N, Y, N, N, N, N], [85, 10, N Roselands, N, Y, N, N, N, N], [86, 20, V Southland, N, Y, N, N, N, N], [87, 20, V Chadstone, N, Y, N, N, N, N], [88, 20, V Templestowe, N, Y, N, N, N, N], [89, 10, N Erina, N, Y, N, N, N, N], [90, 10, N Carlingford Court, N, Y, N, N, N, N], [91, 10, N Chatswood, N, Y, N, N, N, N], [92, 20, V Malvern, N, Y, N, N, N, N], [93, 10, N Liverpool, N, Y, N, N, N, N], [94, 60, W Whitford City, N, Y, N, N, N, N], [95, 10, N Eastgarden, N, Y, N, N, N, N], [96, 10, N Canberra Civic, N, Y, N, N, N, N], [97, 20, V Fountain Gate, N, Y, N, N, N, N], [98, 20, V Frankston, N, Y, N, N, N, N], [99, 20, V Glen Waverley, N, Y, N, N, N, N], [100, 20, V Waurn Ponds, N, Y, N, N, N, N], [125, 10, N Mt Druitt, N, Y, N, N, N, N], [126, 40, Q Robina, N, Y, N, N, N, N], [127, 50, S Marion, N, Y, N, N, N, N], [128, 60, W Rockingham, N, Y, N, N, N, N], [129, 10, N Macquarie, N, Y, N, N, N, N], [131, 20, V Melbourne City, N, Y, N, N, N, N], [132, 20, V Glenorchy, N, Y, N, N, N, N], [133, 40, Q Browns Plains, N, Y, N, N, N, N], [134, 50, S Reynella, N, Y, N, N, N, N], [135, 40, Q Capalaba, N, Y, N, N, N, N], [136, 10, N Charlestown, N, Y, N, N, N, N], [137, 20, V Dandenong, N, Y, N, N, N, N], [138, 40, Q Cairns Central, N, Y, N, N, N, N], [139, 40, Q Toowoomba, N, Y, N, N, N, N], [140, 40, Q Pacific Fair, N, Y, N, N, N, N], [141, 40, Q The Willows, N, Y, N, N, N, N], [142, 50, S Hollywood Plaza, N, Y, N, N, N, N], [143, 40, Q Hervey Bay, N, Y, N, N, N, N], [144, 10, N Parramatta, N, Y, N, N, N, N], [145, 10, N Port Macquarie, N, Y, N, N, N, N], [146, 40, Q Palmerston, N, Y, N, N, N, N], [149, 20, V Broadmeadows, N, Y, N, N, N, N], [150, 10, N Cowra, N, Y, N, N, N, N], [151, 60, W Perth, N, Y, N, N, N, N], [152, 20, V Mornington, N, Y, N, N, N, N], [153, 20, V Pakenham, N, Y, N, N, N, N], [154, 10, N Shellharbour, N, Y, N, N, N, N], [155, 40, Q Redbank, N, Y, N, N, N, N], [156, 40, Q Morayfield, N, Y, N, N, N, N], [157, 20, V Chirnside Park, N, Y, N, N, N, N], [158, 20, V Brimbank Central, N, Y, N, N, N, N], [159, 50, S Whyalla, N, Y, N, N, N, N], [160, 20, V Watergardens, N, Y, N, N, N, N], [161, 20, V Hobart, N, Y, N, N, N, N], [162, 10, N Tuggeranong, N, Y, N, N, N, N], [163, 10, N Queanbeyan, N, Y, N, N, N, N], [164, 10, N Tuggerah, N, Y, N, N, N, N], [165, 10, N Hurstville, N, Y, N, N, N, N], [166, 40, Q Chermside, N, Y, N, N, N, N], [167, 40, Q Northlakes, N, Y, N, N, N, N], [168, 20, V Airport West, N, Y, N, N, N, N], [169, 10, N Hornsby, N, Y, N, N, N, N], [170, 10, N Bondi, N, Y, N, N, N, N], [171, 10, N Burwood, N, Y, N, N, N, N], [173, 60, W Bunbury, N, Y, N, N, N, N], [174, 40, Q Carindale, N, Y, N, N, N, N], [175, 10, N Tamworth, N, Y, N, N, N, N], [177, 10, N Castle Hill, N, Y, N, N, N, N], [178, 10, N Blacktown, N, Y, N, N, N, N], [179, 20, V Greensborough, N, Y, N, N, N, N], [180, 60, W Joondalup, N, Y, N, N, N, N], [183, 20, V Swan Hill, N, Y, N, N, N, N], [184, 40, Q Brisbane CBD, N, Y, N, N, N, N], [186, 20, B Narre Warren (Closed), N, Y, N, N, N, N], [188, 10, N Macarthur Square, N, Y, N, N, N, N], [189, 20, B Northland Baby Target, N, Y, N, N, N, N], [191, 50, B Golden Grove, N, Y, N, N, N, N], [192, 10, N Wetherill Park, N, Y, N, N, N, N], [193, 60, W Kalgoorlie, N, Y, N, N, N, N], [194, 50, S Mildura, N, Y, N, N, N, N], [195, 40, Q Bribie Island, N, Y, N, N, N, N], [196, 60, W Meadow Springs, N, Y, N, N, N, N], [197, 50, S Unley, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p( 'Table', 'Content', '[[4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'cell:5 - 50|STORE-NAME,12(N Cessnock)') commonBits.new1(click) select('Table', '1', commonBits.fl('Data') + ',8') select('Table', '1', commonBits.fl('Data') + ',0') select('Table', '1', commonBits.fl('Data') + ',1') select('Table', '1', commonBits.fl('Data') + ',2') select('Table', '1', commonBits.fl('Data') + ',3') select('Table', '1', commonBits.fl('Data') + ',4') select('Table', '1', commonBits.fl('Data') + ',5') select('Table', '1', commonBits.fl('Data') + ',6') select('Table', '1', commonBits.fl('Data') + ',7') select('Table', '1', commonBits.fl('Data') + ',8') select('Table', 'cell:' + commonBits.fl('Data') + ',4(1)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p( 'Table', 'Content', '[[4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'cell:5 - 50|STORE-NAME,16(N Glendale)') click('New1') select('Table', '3', commonBits.fl('Data') + ',8') select('Table', '3', commonBits.fl('Data') + ',0') select('Table', '3', commonBits.fl('Data') + ',1') select('Table', '3', commonBits.fl('Data') + ',2') select('Table', '3', commonBits.fl('Data') + ',3') select('Table', '3', commonBits.fl('Data') + ',4') select('Table', '3', commonBits.fl('Data') + ',5') select('Table', '3', commonBits.fl('Data') + ',6') select('Table', '3', commonBits.fl('Data') + ',7') select('Table', '3', commonBits.fl('Data') + ',8') select('Table', 'cell:' + commonBits.fl('Data') + ',5(3)') click('New1') select('Table', '4', commonBits.fl('Data') + ',8') select('Table', '4', commonBits.fl('Data') + ',0') select('Table', '4', commonBits.fl('Data') + ',1') select('Table', '4', commonBits.fl('Data') + ',3') select('Table', '4', commonBits.fl('Data') + ',4') select('Table', '4', commonBits.fl('Data') + ',5') select('Table', '4', commonBits.fl('Data') + ',6') select('Table', '4', commonBits.fl('Data') + ',7') select('Table', '4', commonBits.fl('Data') + ',8') select('Table', 'cell:' + commonBits.fl('Data') + ',5(4)') ##click('MetalInternalFrameTitlePane', 766, 17) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p( 'Table', 'Content', '[[4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'rows:[23,24,25],columns:[55 - 1|NEW-STORE]') click('Copy2') select('Table', 'cell:55 - 1|NEW-STORE,15(N)') click('Paste3') assert_p( 'Table', 'Content', '[[1, 20, V Geelong, N, Y, N, N, N, N], [2, 40, Q Coffs Harbour, N, Y, N, N, N, N], [3, 40, Q Mackay, N, Y, N, N, N, N], [4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [1, 20, V Geelong, N, Y, N, N, N, N], [2, 40, Q Coffs Harbour, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [1, 1, 1, 1, 1, 1, 1, 1, 1], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [3, 3, 3, 3, 3, 3, 3, 3, 3], [4, 4, , 4, 4, 4, 4, 4, 4], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N], [40, 40, Q Tweed Heads, N, Y, N, N, N, N], [42, 20, V Reservoir, N, Y, N, N, N, N], [43, 60, W Morley, N, Y, N, N, N, N], [44, 50, S Mt Gambier, N, Y, N, N, N, N], [45, 60, W Carousel, N, Y, N, N, N, N], [46, 10, N Dubbo, N, Y, N, N, N, N], [47, 50, S Sefton Park, N, Y, N, N, N, N], [48, 40, Q Bundaberg, N, Y, N, N, N, N], [49, 40, Q Rockhampton, N, Y, N, N, N, N], [52, 10, N Eastwood, N, Y, N, N, N, N], [54, 20, V Highpoint City, N, Y, N, N, N, N], [55, 10, N Leichhardt, N, Y, N, N, N, N], [57, 60, W Victoria Park, N, Y, N, N, N, N], [58, 20, V Knox City, N, Y, N, N, N, N], [59, 40, Q Buranda, N, Y, N, N, N, N], [60, 10, N St Marys, N, Y, N, N, N, N], [61, 20, V Waverley Gardens, N, Y, N, N, N, N], [62, 40, Q Castletown, N, Y, N, N, N, N], [64, 20, V Hoppers Crossing, N, Y, N, N, N, N], [65, 60, W Innaloo, N, Y, N, N, N, N], [67, 20, V Morwell Mid Valley, N, Y, N, N, N, N], [68, 40, Q Mt Gravatt, N, Y, N, N, N, N], [69, 60, W Midland, N, Y, N, N, N, N], [70, 10, N Bass Hill, N, Y, N, N, N, N], [72, 60, W Geraldton, N, Y, N, N, N, N], [73, 40, Q Southport, N, Y, N, N, N, N], [74, 10, N Campbelltown, N, Y, N, N, N, N], [75, 20, V Sale, N, Y, N, N, N, N], [76, 60, W Bull Creek, N, Y, N, N, N, N], [77, 50, S Elizabeth, N, Y, N, N, N, N], [78, 10, N Warringah Mall, N, Y, N, N, N, N], [79, 60, W Stirling, N, Y, N, N, N, N], [80, 20, V Sunshine, N, Y, N, N, N, N], [81, 10, N Ashfield, N, Y, N, N, N, N], [82, 20, V Box Hill, N, Y, N, N, N, N], [83, 40, Q Springwood, N, Y, N, N, N, N], [84, 40, Q Brookside, N, Y, N, N, N, N], [85, 10, N Roselands, N, Y, N, N, N, N], [86, 20, V Southland, N, Y, N, N, N, N], [87, 20, V Chadstone, N, Y, N, N, N, N], [88, 20, V Templestowe, N, Y, N, N, N, N], [89, 10, N Erina, N, Y, N, N, N, N], [90, 10, N Carlingford Court, N, Y, N, N, N, N], [91, 10, N Chatswood, N, Y, N, N, N, N], [92, 20, V Malvern, N, Y, N, N, N, N], [93, 10, N Liverpool, N, Y, N, N, N, N], [94, 60, W Whitford City, N, Y, N, N, N, N], [95, 10, N Eastgarden, N, Y, N, N, N, N], [96, 10, N Canberra Civic, N, Y, N, N, N, N], [97, 20, V Fountain Gate, N, Y, N, N, N, N], [98, 20, V Frankston, N, Y, N, N, N, N], [99, 20, V Glen Waverley, N, Y, N, N, N, N], [100, 20, V Waurn Ponds, N, Y, N, N, N, N], [125, 10, N Mt Druitt, N, Y, N, N, N, N], [126, 40, Q Robina, N, Y, N, N, N, N], [127, 50, S Marion, N, Y, N, N, N, N], [128, 60, W Rockingham, N, Y, N, N, N, N], [129, 10, N Macquarie, N, Y, N, N, N, N], [131, 20, V Melbourne City, N, Y, N, N, N, N], [132, 20, V Glenorchy, N, Y, N, N, N, N], [133, 40, Q Browns Plains, N, Y, N, N, N, N], [134, 50, S Reynella, N, Y, N, N, N, N], [135, 40, Q Capalaba, N, Y, N, N, N, N], [136, 10, N Charlestown, N, Y, N, N, N, N], [137, 20, V Dandenong, N, Y, N, N, N, N], [138, 40, Q Cairns Central, N, Y, N, N, N, N], [139, 40, Q Toowoomba, N, Y, N, N, N, N], [140, 40, Q Pacific Fair, N, Y, N, N, N, N], [141, 40, Q The Willows, N, Y, N, N, N, N], [142, 50, S Hollywood Plaza, N, Y, N, N, N, N], [143, 40, Q Hervey Bay, N, Y, N, N, N, N], [144, 10, N Parramatta, N, Y, N, N, N, N], [145, 10, N Port Macquarie, N, Y, N, N, N, N], [146, 40, Q Palmerston, N, Y, N, N, N, N], [149, 20, V Broadmeadows, N, Y, N, N, N, N], [150, 10, N Cowra, N, Y, N, N, N, N], [151, 60, W Perth, N, Y, N, N, N, N], [152, 20, V Mornington, N, Y, N, N, N, N], [153, 20, V Pakenham, N, Y, N, N, N, N], [154, 10, N Shellharbour, N, Y, N, N, N, N], [155, 40, Q Redbank, N, Y, N, N, N, N], [156, 40, Q Morayfield, N, Y, N, N, N, N], [157, 20, V Chirnside Park, N, Y, N, N, N, N], [158, 20, V Brimbank Central, N, Y, N, N, N, N], [159, 50, S Whyalla, N, Y, N, N, N, N], [160, 20, V Watergardens, N, Y, N, N, N, N], [161, 20, V Hobart, N, Y, N, N, N, N], [162, 10, N Tuggeranong, N, Y, N, N, N, N], [163, 10, N Queanbeyan, N, Y, N, N, N, N], [164, 10, N Tuggerah, N, Y, N, N, N, N], [165, 10, N Hurstville, N, Y, N, N, N, N], [166, 40, Q Chermside, N, Y, N, N, N, N], [167, 40, Q Northlakes, N, Y, N, N, N, N], [168, 20, V Airport West, N, Y, N, N, N, N], [169, 10, N Hornsby, N, Y, N, N, N, N], [170, 10, N Bondi, N, Y, N, N, N, N], [171, 10, N Burwood, N, Y, N, N, N, N], [173, 60, W Bunbury, N, Y, N, N, N, N], [174, 40, Q Carindale, N, Y, N, N, N, N], [175, 10, N Tamworth, N, Y, N, N, N, N], [177, 10, N Castle Hill, N, Y, N, N, N, N], [178, 10, N Blacktown, N, Y, N, N, N, N], [179, 20, V Greensborough, N, Y, N, N, N, N], [180, 60, W Joondalup, N, Y, N, N, N, N], [183, 20, V Swan Hill, N, Y, N, N, N, N], [184, 40, Q Brisbane CBD, N, Y, N, N, N, N], [186, 20, B Narre Warren (Closed), N, Y, N, N, N, N], [188, 10, N Macarthur Square, N, Y, N, N, N, N], [189, 20, B Northland Baby Target, N, Y, N, N, N, N], [191, 50, B Golden Grove, N, Y, N, N, N, N], [192, 10, N Wetherill Park, N, Y, N, N, N, N], [193, 60, W Kalgoorlie, N, Y, N, N, N, N], [194, 50, S Mildura, N, Y, N, N, N, N], [195, 40, Q Bribie Island, N, Y, N, N, N, N], [196, 60, W Meadow Springs, N, Y, N, N, N, N], [197, 50, S Unley, N, Y, N, N, N, N]]' ) select_menu( commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p( 'Table', 'Content', '[[4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]' ) 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', 'zx3xzFLD2', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(zx3xzFLD2)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1()') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(zx3xzFLD2)') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ]]') ## select('ChildRecordsJTbl', 'cell: ,1(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',0') select_menu(commonBits.fl('Edit Child Record')) 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(commonBits.fl('Save As')) #select('TabbedPane1', 'Extras') #select('TabbedPane1', 'Extras') #select('TabbedPane1', 'Child Records') if window('Input'): select('OptionPane.textField', 'zx3xzFLD2a77') click('OK') close() 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, , , ]]' ) select('RecordFieldsJTbl', 'fld 21a77', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21a77, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD2a77, , , , , ]]' ) ## select('ChildRecordsJTbl', 'cell: ,2(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2') select_menu(commonBits.fl('Edit Child Record')) commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zx3xzFLDg77zxc') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '39', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'ffff', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Content', '[[1, 39, ffff, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD2a77, , , , , ], [, zx3xzFLDg77zxc, , , , , ]]' ) ## 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 21a77, , 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', 'zx3xzFLD2a77') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD2a77, , , , , ], [, zx3xzFLDg77zxc, , , , , ]]' ) ## select('ChildRecordsJTbl', 'cell: ,2(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2') select_menu(commonBits.fl('Edit Child Record')) commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLD2a77')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg77zxc, , , , , ]]' ) ## select('ChildRecordsJTbl', 'cell: ,2(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2') select_menu(commonBits.fl('Edit Child Record')) assert_p('RecordFieldsJTbl', 'Content', '[[1, 39, ffff, , 0, 0, 0, , , ]]') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg77zxc') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLDg77zxc')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ]]') commonBits.delete3(click) if window(commonBits.fl('Delete: zx3xzFLDg777')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()