def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_LocDownload_tab.csv') commonBits.setRecordLayout(select, 'Generic CSV - enter details') commonBits.doEdit(click) if window(''): select('CheckBox', 'false') click('Go') close() select('Table', 'cell:4|D,6(Penrith)') assert_p('Table', 'Text', 'Penrith', '4|D,6') select('Table', 'rows:[0,1,2],columns:[4|D]') select_menu('View>>Column View #{Selected Records#}') ## select('Table2', 'rows:[0,1,2],columns:[4|D]') select('Table', 'cell:Row 1,3(Loc_Name)') assert_p('Table', 'Text', 'Loc_Name', 'Row 1,3') select('Table', 'cell:Row 1,3(Loc_Name)') assert_p( 'Table', 'Content', '[[Brand_Id, TAR, TAR], [Loc_Nbr, 5839, 5850], [Loc_Type, DC, DC], [Loc_Name, DC - Taras Ave, VIC West Ad Support], [Loc_Addr_Ln1, , ], [Loc_Addr_Ln2, 30-68 Taras Ave, Lot 2 Little Boundary Rd], [Loc_Addr_Ln3, Altona North, Laverton], [Loc_Postcode, 3025, 3028], [Loc_State, VIC, VIC], [Loc_Actv_Ind, A, A], [, , ]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'DTAR1000_Store_file_std.bin') select('ComboBox2', 'Unknown Mainframe VB') ## click('ScrollPane$ScrollBar', 3, 29) commonBits.doEdit(click) select('Table', 'rows:[0,1,2,3],columns:[1 - 1|Data]') select_menu('View>>Table View #{Selected Records#}') ## select('Table2', 'rows:[0,1,2,3],columns:[1 - 1|Data]') ## assert_p('Table', 'Content', '[[?V Geelong NYNNNN], [?Q Coffs Harbour NYNNNN], [?Q Mackay NYNNNN], [??V Ballarat NYNNNN]]') ## assert_p('Table', 'Content', '[[?V Geelong NYNNNN], [?Q Coffs Harbour NYNNNN], [?Q Mackay NYNNNN], [??V Ballarat NYNNNN]]'} commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('Table', 'rows:[0,1,2,3],columns:[1 - 1|Data]') select('Table', 'rows:[0,1,2,3],columns:[1 - 1|Data]') assert_p('Table', 'RowCount', '147') select('Table', 'rows:[0,1,2,3],columns:[1 - 1|Data]') assert_p('Table', 'ColumnCount', '1') select('Table', 'rows:[0,1,2,3],columns:[1 - 1|Data]') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') select('ComboBox2', 'DTAR1000 VB') click('Edit1') assert_p('Table', 'ColumnCount', '9') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_LocDownload_tab.csv') commonBits.setRecordLayout(select, 'Generic CSV - enter details') commonBits.doEdit(click) if window(''): select('CheckBox', 'true') select('Table', 'rows:[0,1],columns:[Brand_Id,Loc_Nbr,Loc_Type,Loc_Name]') ## rightclick('Table', 'Loc_Name,1') select('Table', 'cell:Loc_Name,3(WA Ad Support)') assert_p('Table', 'Text', 'WA Ad Support', 'Loc_Name,3') select('Table', 'cell:Loc_Name,6(Blacktown)') assert_p('Table', 'Text', 'Blacktown', 'Loc_Name,6') select('Table', 'cell:Loc_Name,6(Blacktown)') commonBits.doSleep() click(commonBits.fl('Go')) commonBits.doSleep() commonBits.doSleep() close() commonBits.doSleep() commonBits.doSleep() select('Table', 'cell:5|Loc_Addr_Ln1,8(Westfield Shoppingtown)') assert_p('Table', 'Text', 'Campbelltown Mall', '5|Loc_Addr_Ln1,13') select('Table', 'cell:5|Loc_Addr_Ln1,13(Campbelltown Mall)') assert_p('Table', 'Text', 'Campbelltown Mall', '5|Loc_Addr_Ln1,13') select('Table', 'rows:[5,6,7],columns:[4|Loc_Name]') select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Column View #{Selected Records#}')) ## select('Table2', 'rows:[5,6,7],columns:[4|Loc_Name]') select('Table', 'cell:Row 1,5(58 Leland Street)') assert_p('Table', 'Text', '58 Leland Street', 'Row 1,5') select('Table', 'cell:Row 2,6( 11 Melissa Place)') assert_p('Table', 'Text', 'Marayong', 'Row 2,7') select('Table', 'cell:Row 2,6( 11 Melissa Place)') assert_p('Table', 'Content', '[[TAR, TAR, TAR], [5019, 5033, 5035], [ST, ST, ST], [Penrith, Blacktown, Rockdale], [Penrith, Marayong, Building B], [58 Leland Street, Dock 2, Portside DC], [Penrith, 11 Melissa Place, 2-8 Mc Pherson Street], [2750, Marayong, Botany], [NSW, 2148, 2019], [A, NSW, NSW], [, A, A]]') select('Table', 'cell:Row 2,6( 11 Melissa Place)') assert_p('Table', 'ColumnCount', '3') select('Table', 'cell:Row 3,6(2-8 Mc Pherson Street)') assert_p('Table', 'RowCount', '11') select('Table', 'cell:Row 3,2(ST)') select('Table1', 'cell:' + commonBits.fl('Field') + ',2(Loc_Type)') assert_p('Table1', 'Content', '[[Brand_Id, 1, ], [Loc_Nbr, 2, ], [Loc_Type, 3, ], [Loc_Name, 4, ], [Loc_Addr_Ln1, 5, ], [Loc_Addr_Ln2, 6, ], [Loc_Addr_Ln3, 7, ], [Loc_Postcode, 8, ], [Loc_State, 9, ], [Loc_Actv_Ind, 10, ], [K, 11, ]]') select('Table1', 'cell:' + commonBits.fl('Field') + ',2(Loc_Type)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('Table', 'rows:[5,6,7],columns:[4|Loc_Name]') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml') commonBits.doEdit(click) ## select('JTreeTable', '') rightclick('JTreeTable', commonBits.fl('Tree') + ',4') select_menu(commonBits.fl('Expand Tree'))## select('JTreeTable', '') rightclick('JTreeTable', commonBits.fl('Tree') + ',6') select_menu(commonBits.fl('Expand Tree')) select('LayoutCombo', 'item') assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 2, 05, Location-Type, 8, 2, XX, , True, ], [, , , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'level,7') select_menu(commonBits.fl('Hide Column')) assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , ], [, , ******************************, , , , , , , , , ], [, , * Location Download, , , , , , , , , ], [, , ******************************, , , , , , , , , ], [, , , , 173, Ams-Vendor, 1, 173, , , , ], [, , , , 3, Brand, 1, 3, x(3), , True, ], [, , , , 41, Location-Details, 4, 41, , , , ], [, , , , 4, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 2, Location-Type, 8, 2, XX, , True, ], [, , , , 35, Location-Name, 10, 35, X(35), , True, ], [, , , , 128, Full-Address, 45, 128, , , , ], [, , , , 1, Location-Active, 173, 1, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'name,7') select_menu(commonBits.fl('Hide Column')) assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , ], [, , ******************************, , , , , , , , ], [, , * Location Download, , , , , , , , ], [, , ******************************, , , , , , , , ], [, , , , 173, 1, 173, , , , ], [, , , , 3, 1, 3, x(3), , True, ], [, , , , 41, 4, 41, , , , ], [, , , , 4, 4, 4, 9(4), true, True, ], [, , , , 2, 8, 2, XX, , True, ], [, , , , 35, 10, 35, X(35), , True, ], [, , , , 128, 45, 128, , , , ], [, , , , 1, 173, 1, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'position,7') select_menu(commonBits.fl('Hide Column')) # select('JTreeTable', '') rightclick('JTreeTable', 'storage-length,6') select_menu(commonBits.fl('Hide Column')) assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , ], [, , ******************************, , , , , , ], [, , * Location Download, , , , , , ], [, , ******************************, , , , , , ], [, , , , 173, , , , ], [, , , , 3, x(3), , True, ], [, , , , 41, , , , ], [, , , , 4, 9(4), true, True, ], [, , , , 2, XX, , True, ], [, , , , 35, X(35), , True, ], [, , , , 128, , , , ], [, , , , 1, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'display-length,6') select_menu(commonBits.fl('Hide Column')) assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , ******************************, , , , , ], [, , * Location Download, , , , , ], [, , ******************************, , , , , ], [, , , , , , , ], [, , , , x(3), , True, ], [, , , , , , , ], [, , , , 9(4), true, True, ], [, , , , XX, , True, ], [, , , , X(35), , True, ], [, , , , , , , ], [, , , , X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'picture,7') select_menu(commonBits.fl('Show Column') + '>>name') assert_p('JTreeTable', 'Content', '[[, , , , , , , , ], [, , ******************************, , , , , , ], [, , * Location Download, , , , , , ], [, , ******************************, , , , , , ], [, , , , Ams-Vendor, , , , ], [, , , , Brand, x(3), , True, ], [, , , , Location-Details, , , , ], [, , , , Location-Number, 9(4), true, True, ], [, , , , Location-Type, XX, , True, ], [, , , , Location-Name, X(35), , True, ], [, , , , Full-Address, , , , ], [, , , , Location-Active, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'picture,6') select_menu(commonBits.fl('Show Column') + '>>position') assert_p('JTreeTable', 'Content', '[[, , , , , , , , , ], [, , ******************************, , , , , , , ], [, , * Location Download, , , , , , , ], [, , ******************************, , , , , , , ], [, , , , Ams-Vendor, 1, , , , ], [, , , , Brand, 1, x(3), , True, ], [, , , , Location-Details, 4, , , , ], [, , , , Location-Number, 4, 9(4), true, True, ], [, , , , Location-Type, 8, XX, , True, ], [, , , , Location-Name, 10, X(35), , True, ], [, , , , Full-Address, 45, , , , ], [, , , , Location-Active, 173, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'position,8') select_menu(commonBits.fl('Show Column') + '>>storage-length') assert_p('JTreeTable', 'Content', '[[, , , , , , , , , , ], [, , ******************************, , , , , , , , ], [, , * Location Download, , , , , , , , ], [, , ******************************, , , , , , , , ], [, , , , Ams-Vendor, 1, 173, , , , ], [, , , , Brand, 1, 3, x(3), , True, ], [, , , , Location-Details, 4, 41, , , , ], [, , , , Location-Number, 4, 4, 9(4), true, True, ], [, , , , Location-Type, 8, 2, XX, , True, ], [, , , , Location-Name, 10, 35, X(35), , True, ], [, , , , Full-Address, 45, 128, , , , ], [, , , , Location-Active, 173, 1, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'storage-length,8') select_menu(commonBits.fl('Show Column') + '>>level') assert_p('JTreeTable', 'Content', '[[, , , , , , , , , , , ], [, , ******************************, , , , , , , , , ], [, , * Location Download, , , , , , , , , ], [, , ******************************, , , , , , , , , ], [, , , , 01, Ams-Vendor, 1, 173, , , , ], [, , , , 03, Brand, 1, 3, x(3), , True, ], [, , , , 03, Location-Details, 4, 41, , , , ], [, , , , 05, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 05, Location-Type, 8, 2, XX, , True, ], [, , , , 05, Location-Name, 10, 35, X(35), , True, ], [, , , , 03, Full-Address, 45, 128, , , , ], [, , , , 03, Location-Active, 173, 1, X, , True, ]]') # select('JTreeTable', '') rightclick('JTreeTable', 'name,7') select_menu(commonBits.fl('Show Column') + '>>display-length') assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 2, 05, Location-Type, 8, 2, XX, , True, ], [, , , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]') commonBits.closeWindow(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() + 'zzAms_LocDownload_tab.csv') commonBits.setRecordLayout(select, 'Generic CSV - enter details') commonBits.doEdit(click) if window(''): select('CheckBox', 'false') click(commonBits.fl('Go')) close() select('Table', 'cell:4|D,0(Loc_Name)') assert_p('Table', 'Text', 'WA Ad Support', '4|D,4') select('Table', 'cell:6|F,0(Loc_Addr_Ln2)') assert_p('Table', 'Text', 'Loc_Addr_Ln2', '6|F,0') select('Table', 'cell:6|F,9(Cnr. Urunga Pde & The Kingsway)') assert_p('Table', 'Text', 'Cnr. Urunga Pde & The Kingsway', '6|F,9') select('Table', 'cell:4|D,6(Penrith)') assert_p('Table', 'Text', 'Penrith', '4|D,6') select('Table', 'rows:[0,1,2],columns:[4|D]') select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Column View #{Selected Records#}')) ### select('Table2', 'rows:[0,1,2],columns:[1|A,2|B]') select('Table', 'cell:Row 1,2(Loc_Type)') assert_p('Table', 'Text', 'Altona North', 'Row 2,6') select('Table', 'cell:Row 1,6(Loc_Addr_Ln3)') assert_p('Table', 'Text', 'Loc_Postcode', 'Row 1,7') select('Table', 'cell:Row 2,5(30-68 Taras Ave)') assert_p('Table', 'Text', '30-68 Taras Ave', 'Row 2,5') select('Table', 'cell:Row 2,5(30-68 Taras Ave)') assert_p( 'Table', 'Content', '[[Brand_Id, TAR, TAR], [Loc_Nbr, 5839, 5850], [Loc_Type, DC, DC], [Loc_Name, DC - Taras Ave, VIC West Ad Support], [Loc_Addr_Ln1, , ], [Loc_Addr_Ln2, 30-68 Taras Ave, Lot 2 Little Boundary Rd], [Loc_Addr_Ln3, Altona North, Laverton], [Loc_Postcode, 3025, 3028], [Loc_State, VIC, VIC], [Loc_Actv_Ind, A, A], [, , ]]' ) select('Table', 'cell:Row 1,7(Loc_Postcode)') assert_p('Table', 'RowCount', '11') select('Table', 'cell:Row 1,7(Loc_Postcode)') assert_p('Table', 'ColumnCount', '3') select('Table', 'cell:Row 1,3(Loc_Name)') select('Table1', 'cell:' + commonBits.fl('Field') + ',3(D)') assert_p('Table1', 'Text', 'D', commonBits.fl('Field') + ',3') select('Table1', 'cell:' + commonBits.fl('Field') + ',3(D)') assert_p( 'Table1', 'Content', '[[A, 1, ], [B, 2, ], [C, 3, ], [D, 4, ], [E, 5, ], [F, 6, ], [G, 7, ], [H, 8, ], [I, 9, ], [J, 10, ], [K, 11, ]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): ## select('FileChooser', '/C:/Program Files/RecordEdit/HSQLDB/SampleFiles/DTAR020.bin') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') commonBits.setRecordLayout(select, 'DTAR020') commonBits.doEdit(click) if commonBits.isVersion81(): click('Export') else: click('SaveAs1') select('TabbedPane', 'Xml') # select('ComboBox1', 'XML') ## select('FileChooser', '/C:/Program Files/RecordEdit/HSQLDB/SampleFiles/x1DTAR020.bin.xml') select('FileChooser', commonBits.sampleDir() + 'x1DTAR020.bin.xml') click('Save File') click('Open') ## select('FileChooser', '/C:/Program Files/RecordEdit/HSQLDB/SampleFiles/x1DTAR020.bin.xml') select('FileChooser', commonBits.sampleDir() + 'x1DTAR020.bin.xml') commonBits.doEdit(click) select('JTreeTable', 'cell:Tree,1(null)') rightclick('JTreeTable', 'Tree,1') select_menu('Expand Tree') ## select('JTreeTable', 'cell:Xml~Prefix,3(null)') assert_p('JTreeTable', 'RowCount', '381') select('JTreeTable', 'cell:Xml~Prefix,2(null)') rightclick('JTreeTable', 'Xml~Prefix,2') select_menu('Edit Record') ##select('JTreeTable', 'cell:Xml~Prefix,2(null)') select('Table', 'cell:Data,3(69684558)') assert_p('Table', 'Text', '40118', 'Data,5') select('Table', 'cell:Data,5(40118)') assert_p('Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 69684558, 69684558], [STORE-NO, 6, , 20, 20], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 280, 280], [QTY-SOLD, 9, , 1, 1], [SALE-PRICE, 10, , 19.00, 19.00], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]') click('Right') select('Table', 'cell:Data,5(40118)') select('Table', 'cell:Data,5(40118)') assert_p('Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 69684558, 69684558], [STORE-NO, 6, , 20, 20], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 280, 280], [QTY-SOLD, 9, , -1, -1], [SALE-PRICE, 10, , -19.00, -19.00], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]') select('Table', 'cell:Data,5(40118)') click('Right') select('Table', 'cell:Data,6(280)') select('Table', 'cell:Data,6(280)') assert_p('Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 69684558, 69684558], [STORE-NO, 6, , 20, 20], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 280, 280], [QTY-SOLD, 9, , 1, 1], [SALE-PRICE, 10, , 5.01, 5.01], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]') select('Table', 'cell:Data,6(280)') click('Right') select('Table', 'cell:Data,5(40118)') select('Table', 'cell:Data,5(40118)') assert_p('Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 69694158, 69694158], [STORE-NO, 6, , 20, 20], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 280, 280], [QTY-SOLD, 9, , 1, 1], [SALE-PRICE, 10, , 19.00, 19.00], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]') close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml') commonBits.doEdit(click) select('JTreeTable', 'cell:Xml~Text,1(******************************)') click('Delete1') select('JTreeTable', 'cell:Xml~Text,1(* Location Download)') assert_p('JTreeTable', 'Content', '[[, , , , ], [, , * Location Download, , ], [, , ******************************, , ], [, , , , ]]') select('JTreeTable', 'cell:Xml~Text,3(null)') rightclick('JTreeTable', 'Xml~Text,3') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',5(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',5') select_menu(commonBits.fl('Copy Record#{s#}')) select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',1(null)') rightclick('JTreeTable', commonBits.fl('Tree') + ',1') select_menu(commonBits.fl('Paste Record#{s#}')) select('JTreeTable', 'cell:Xml~Text,2(null)') rightclick('JTreeTable', 'Xml~Text,2') select_menu(commonBits.fl('Expand Tree')) select('LayoutCombo', 'item') select('JTreeTable', 'cell:name,3(Location-Number)') assert_p('JTreeTable', 'Text', 'Location-Number', 'name,3') select('JTreeTable', 'cell:name,4(Location-Type)') assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 2, 05, Location-Type, 8, 2, XX, , True, ], [, , , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ]]') select('JTreeTable', 'cell:name,3(Location-Number)') assert_p('JTreeTable', 'RowCount', '8') select('JTreeTable', 'rows:[3,4],columns:[' + commonBits.fl('Tree') + ']') click('Delete1') select('JTreeTable', 'cell:name,2(Location-Details)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') if window(commonBits.fl('Save Changes to file: ' + commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml')): click('No') close() close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Text_utf8_Test.txt') select('ComboBox2', 'Unknown Format') commonBits.doEdit(click) if window(''): select('TextField1', 'utf-8') ## select('BmKeyedComboBox', '90') select('BmKeyedComboBox', 'Text IO (Unicode)') select('Table', 'cell:J,1(P)') assert_p('Table', 'Content', '[[T, A, R, 5, 0, 1, 5, S, T, B, a, n, k, s, t, o, w, n, , , , , , , , , , , , , , , , , , , , , , , , , , , B, a, n, k, s, t, o, w, n, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , U, n, i, t, , 2, ,, , 3, 9, -, 4, 1, , A, l, l, i, n, g, h, a, m, , S, t, r, e, e, t, , , , , , , , , , , C, o, n, d, e, l, l, , P, a, r, k, , , , , , , , , , , , , , , , , , , , , , , , 2, 2, 0, 0, , , , , , , N, S, W, A], [T, A, R, 5, 0, 1, 9, S, T, P, e, n, r, i, t, h, , , , , , , , , , , , , , , , , , , , , , , , , , , , , P, e, n, r, i, t, h, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 5, 8, , L, e, l, a, n, d, , S, t, r, e, e, t, , , , , , , , , , , , , , , , , , , , , , , , , P, e, n, r, i, t, h, , , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 7, 5, 0, , , , , , , N, S, W, A], [T, A, R, 5, 0, 3, 3, S, T, B, l, a, c, k, t, o, w, n, , , , , , , , , , , , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , D, o, c, k, , 2, ,, , 1, 1, , M, e, l, i, s, s, a, , P, l, a, c, e, , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 1, 4, 8, , , , , , , N, S, W, A], [T, A, R, 5, 0, 3, 5, S, T, R, o, c, k, d, a, l, e, , , , , , , , , , , , , , , , , , , , , , , , , , , , B, u, i, l, d, i, n, g, , B, ,, , , P, o, r, t, s, i, d, e, , D, C, , , , , , , , , , , , , , , , , 2, -, 8, , M, c, , P, h, e, r, s, o, n, , S, t, r, e, e, t, , , , , , , , , , , , , , , , , , , , B, o, t, a, n, y, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 0, 1, 9, , , , , , , N, S, W, A], [T, A, R, 5, 0, 3, 7, S, T, M, i, r, a, n, d, a, , , , , , , , , , , , , , , , , , , , , , , , , , , , , W, e, s, t, f, i, e, l, d, , S, h, o, p, p, i, n, g, t, o, w, n, , , , , , , , , , , , , , , , , , , C, n, r, ., , U, r, u, n, g, a, , P, d, e, , &, , T, h, e, , K, i, n, g, s, w, a, y, , , , , , , , , , , M, i, r, a, n, d, a, , , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 2, 2, 8, , , , , , , N, S, W, A], [T, A, R, 5, 0, 5, 2, S, T, E, a, s, t, w, o, o, d, , , , , , , , , , , , , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , O, f, f, s, i, t, e, , R, e, s, e, r, v, e, , , , , , , , , , , , , , , , , 1, 1, , M, e, l, i, s, s, a, , P, l, a, c, e, , , , , , , , , , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 1, 4, 8, , , , , , , N, S, W, A]]') select('Table', 'cell:J,1(P)') ## assert_p('BmKeyedComboBox', 'Text', '90') ## assert_p('BmKeyedComboBox', 'Text', '90') assert_p('BmKeyedComboBox', 'Text', 'Text IO (Unicode)') commonBits.doSleep() click('Go') #commonBits.doSleep() close() commonBits.doSleep() commonBits.doSleep() select_menu('Window>>Text_utf8_Test.txt>>Table:') select('Table', 'cell:1 - 1|Data,1(TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA)') assert_p('Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA]]') select('Table', 'cell:1 - 1|Data,1(TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA)') select('LayoutCombo', 'Full Line') select('Table', 'cell:Full Line,2(TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA)') assert_p('Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA]]') select('Table', 'cell:Full Line,2(TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA)') select('LayoutCombo', 'UnknownFormatRecord') select('Table', 'cell:1 - 1|Data,3(TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA)') assert_p('Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA]]') 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('*3') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') select('FileChooser1', commonBits.sampleDir() + 'CpyCsvDtar020a.Txt') commonBits.setRecordLayout2(select, 'DTAR020') ##select('ComboBox2', 'DTAR020') select('DelimiterCombo', '<Tab>') click('Right') select('TabbedPane', '') click('Right') select('TabbedPane', '') click('Copy2') assert_p('TextField1', 'Text', 'Copy Done !!! ') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu('Window>>Menu>>Copy Menu') click('*1') select('FileChooser', commonBits.sampleDir() + 'CpyCsvDtar020.Txt') if commonBits.isJRecord(): commonBits.setRecordLayout( select, 'Tab Delimited names on the first line') else: commonBits.setRecordLayout( select, 'Tab Delimited, names on the first line') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'DTAR020a.bin') commonBits.setRecordLayout(select, 'DTAR020') click('Right') select('TabbedPane', '') click('Right') select('TabbedPane', '') click('Copy2') assert_p('TextField1', 'Text', 'Copy Done !!! ') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu('Window>>Open File') ##click('MetalInternalFrameTitlePane', 299, 9) select('FileChooser', commonBits.sampleDir() + 'DTAR020a.bin') commonBits.setRecordLayout(select, 'DTAR020') commonBits.doEdit(click) select('Table', 'cell:9 - 2|STORE-NO,0(20)') assert_p( 'Table', 'Content', '[[69684558, 20, 40118, 0, 1, 19.00], [69684558, 20, 40118, 0, -1, -19.00], [69684558, 20, 40118, 0, 1, 5.01], [69694158, 20, 40118, 0, 1, 19.00], [69694158, 20, 40118, 0, -1, -19.00], [69694158, 20, 40118, 0, 1, 5.01], [63604808, 20, 40118, 0, 1, 4.87], [62684671, 20, 40118, 0, 1, 69.99], [62684671, 20, 40118, 0, -1, -69.99], [64634429, 20, 40118, 0, 1, 3.99], [66624458, 20, 40118, 0, 1, 0.89], [63674861, 20, 40118, 0, 10, 2.70], [65674532, 20, 40118, 0, 1, 3.59], [64614401, 59, 40118, 0, 1, 1.99], [64614401, 59, 40118, 0, 1, 1.99], [61664713, 59, 40118, 0, 1, 17.99], [61664713, 59, 40118, 0, -1, -17.99], [68634752, 59, 40118, 0, 1, 8.99], [60614487, 59, 40118, 0, 1, 5.95], [63644339, 59, 40118, 0, 1, 12.65], [60694698, 59, 40118, 0, 1, 3.99], [60664659, 59, 40118, 0, 1, 3.99], [62684217, 59, 40118, 0, 1, 9.99], [67674686, 59, 40118, 0, 1, 3.99], [61684613, 59, 40118, 0, 1, 12.99], [64624770, 59, 40118, 0, 1, 2.59], [69694814, 166, 40118, 0, 1, 2.50], [69694814, 166, 40118, 0, 1, 2.50], [69644164, 166, 40118, 0, 1, 21.59], [62684907, 166, 40118, 0, 1, 13.99], [62694193, 166, 40118, 0, 1, 13.99], [62694193, 166, 40118, 0, -1, -13.99], [62694193, 166, 40118, 0, 1, 11.99], [63654450, 166, 40118, 0, 1, 13.99], [62664576, 166, 40118, 0, 1, 9.72], [63634260, 166, 40118, 0, 1, 5.59], [64684534, 166, 40118, 0, 1, 14.99], [64674965, 166, 40118, 0, 1, 19.99], [64674965, 166, 40118, 0, -1, -19.99], [64674965, 166, 40118, 0, 1, 12.00], [60624523, 166, 40118, 0, 1, 12.00], [66624253, 166, 40118, 0, 1, 3.49], [66624253, 166, 40118, 0, 1, 3.49], [64654284, 166, 40118, 0, 1, 3.99], [60684907, 166, 40118, 0, 1, 5.50], [63624299, 166, 40118, 0, 1, 10.99], [63624367, 166, 40118, 0, 1, 11.19], [62694575, 166, 40118, 0, 1, 14.99], [69614011, 166, 40118, 0, 1, 6.99], [62634996, 166, 40118, 0, 1, 9.99], [67634503, 166, 40118, 0, 1, 24.99], [65604476, 166, 40118, 0, 1, 19.95], [62694170, 166, 40118, 0, 1, 16.99], [63684098, 166, 40118, 0, 1, 1.98], [63684098, 166, 40118, 0, 1, 1.98], [63684098, 166, 40118, 0, 1, 1.98], [64674609, 166, 40118, 0, 1, 29.99], [62614014, 166, 40118, 0, 1, 14.99], [61694741, 166, 40118, 0, 1, 9.06], [62614534, 166, 40118, 0, 1, 9.09], [64604876, 166, 40118, 0, 1, 29.62], [66624829, 166, 40118, 0, 1, 1.99], [62694843, 166, 40118, 0, 1, 13.59], [62684580, 166, 40118, 0, 1, 19.00], [62664909, 166, 40118, 0, 1, 3.29], [62674751, 166, 40118, 0, 1, 1.99], [62674492, 166, 40118, 0, 1, 1.49], [62674492, 166, 40118, 0, 1, 1.49], [62694706, 166, 40118, 0, 1, 13.59], [69644602, 166, 40118, 0, 1, 19.00], [63634768, 166, 40118, 0, 1, 12.00], [62684207, 166, 40118, 0, 1, 19.00], [69644961, 166, 40118, 0, 1, 9.60], [69604743, 166, 40118, 0, 1, 29.95], [63634081, 166, 40118, 0, 1, 3.89], [69614229, 166, 40118, 0, 1, 15.95], [62654454, 166, 40118, 0, 1, 5.95], [64634712, 166, 40118, 0, 1, 3.90], [62674092, 166, 40118, 0, 1, 15.99], [67664966, 166, 40118, 0, 1, 0.89], [67664966, 166, 40118, 0, 1, 0.89], [64674633, 166, 40118, 0, 1, 15.99], [64624081, 166, 40118, 0, 1, 26.24], [69674069, 166, 40118, 0, 1, 10.49], [62684028, 166, 40118, 0, 1, 29.99], [64604876, 166, 40118, 0, 1, 29.62], [68644966, 166, 40118, 0, 1, 12.50], [68644966, 166, 40118, 0, -1, -12.50], [68644966, 166, 40118, 0, 1, 0.01], [62664347, 166, 40118, 0, 1, 8.99], [62664231, 166, 40118, 0, 1, 8.99], [62694605, 166, 40118, 0, 1, 25.00], [69634922, 166, 40118, 0, 1, 19.00], [63694928, 166, 40118, 0, 1, 11.49], [60624185, 166, 40118, 0, 1, 8.99], [60624314, 166, 40118, 0, 1, 8.99], [69694959, 166, 40118, 0, 1, 11.99], [69624033, 166, 40118, 0, 1, 18.19], [62694485, 166, 40118, 0, 1, 17.56], [60614646, 166, 40118, 0, 1, 6.00], [63654066, 166, 40118, 0, 1, 24.99], [62684548, 166, 40118, 0, 1, 39.99], [62684548, 166, 40118, 0, 1, 39.99], [69694685, 166, 40118, 0, 1, 6.99], [63614741, 166, 40118, 0, 1, 27.99], [60664302, 166, 40118, 0, 1, 9.00], [60664241, 166, 40118, 0, 1, 9.00], [66674979, 166, 40118, 0, 1, 4.50], [62634862, 166, 40118, 0, 1, 11.89], [62604139, 166, 40118, 0, 1, 7.99], [62624382, 166, 40118, 0, 1, 18.98], [62624382, 166, 40118, 0, -1, -18.98], [69694937, 166, 40118, 0, 1, 2.50], [62624382, 166, 40118, 0, 1, 18.98], [62624382, 166, 40118, 0, 1, 18.98], [62624382, 166, 40118, 0, -1, -18.98], [62624382, 166, 40118, 0, -1, -18.98], [62624382, 166, 40118, 0, 1, 18.98], [62624382, 166, 40118, 0, 1, 18.98], [61684889, 166, 40118, 0, 1, 4.49], [68614651, 166, 40118, 0, 1, 3.99], [62664674, 166, 40118, 0, 1, 24.99], [61684889, 166, 40118, 0, 1, 4.49], [60694417, 166, 40118, 0, 1, 0.65], [65694328, 166, 40118, 0, 1, 0.59], [63684449, 166, 40118, 0, 1, 16.99], [62614815, 166, 40118, 0, 1, 20.00], [62664151, 166, 40118, 0, 1, 25.00], [64684719, 166, 40118, 0, 1, 9.99], [69654084, 166, 40118, 0, 1, 6.00], [69644897, 166, 40118, 0, 1, 5.08], [68654655, 166, 40118, 0, 1, 5.08], [68674560, 166, 40118, 0, 1, 5.99], [62694387, 166, 40118, 0, 1, 7.99], [62664568, 166, 40118, 0, 1, 5.99], [69634261, 166, 40118, 0, 1, 12.00], [69634660, 166, 40118, 0, 1, 12.00], [69684947, 166, 40118, 0, 1, 22.49], [60654072, 166, 40118, 0, 1, 4.33], [60654072, 166, 40118, 0, 1, 4.33], [69624221, 166, 40118, 0, 1, 16.99], [62654800, 166, 40118, 0, 1, 19.99], [64644495, 166, 40118, 0, 1, 29.65], [67664645, 166, 40118, 0, 1, 1.39], [60614265, 166, 40118, 0, 1, 15.99], [68604583, 166, 40118, 0, 1, 15.99], [60614265, 166, 40118, 0, 1, 15.99], [60614265, 166, 40118, 0, -1, -15.99], [60614265, 166, 40118, 0, -1, -15.99], [68604583, 166, 40118, 0, -1, -15.99], [68604583, 166, 40118, 0, 1, 15.99], [68604583, 166, 40118, 0, -1, -15.99], [68604583, 166, 40118, 0, 1, 12.80], [60614265, 166, 40118, 0, 1, 15.99], [60614265, 166, 40118, 0, -1, -15.99], [60614265, 166, 40118, 0, 1, 12.80], [69664661, 166, 40118, 0, 1, 14.95], [68664211, 166, 40118, 0, 1, 11.19], [60614707, 166, 40118, 0, 1, 6.00], [64604513, 166, 40118, 0, 1, 16.99], [60624864, 166, 40118, 0, 1, 15.00], [69644909, 166, 40118, 0, 1, 9.00], [60604100, 166, 40118, 0, 1, 13.30], [69634263, 166, 40118, 0, 1, 25.00], [69634263, 166, 40118, 0, -1, -25.00], [69634263, 166, 40118, 0, 1, 12.00], [61674701, 166, 40118, 0, 1, 3.99], [63654007, 166, 40118, 0, 1, 56.99], [67624103, 166, 40118, 0, 1, 16.50], [68614329, 166, 40118, 0, 1, 39.99], [67644384, 166, 40118, 0, 1, 23.96], [64644495, 166, 40118, 0, 1, 29.65], [60684484, 184, 40118, 0, 1, 9.00], [60684484, 184, 40118, 0, 1, 9.00], [67674299, 184, 40118, 0, 1, 4.99], [69664620, 184, 40118, 0, 1, 11.89], [69664620, 184, 40118, 0, -1, -11.89], [69664620, 184, 40118, 0, 1, 9.09], [60674210, 184, 40118, 0, -1, -15.00], [60664048, 184, 40118, 0, -1, -4.80], [60614866, 184, 40118, 0, -1, -4.80], [60664048, 184, 40118, 0, -1, -4.80], [60664048, 184, 40118, 0, -1, -4.80], [60614866, 184, 40118, 0, -1, -4.80], [69654081, 184, 40118, 0, 1, 12.99], [63664643, 184, 40118, 0, 1, 16.79], [69654135, 184, 40118, 0, 1, 12.99], [60644672, 184, 40118, 0, 1, 9.09], [62654852, 184, 40118, 0, -1, -19.59], [62674960, 184, 40118, 0, -1, -16.00], [62674960, 184, 40118, 0, 1, 16.00], [65674126, 184, 40118, 0, 1, 2.69], [60634192, 184, 40118, 0, 1, 24.99], [64634500, 184, 40118, 0, -1, -9.99], [66624803, 184, 40118, 0, 1, 2.00], [66624803, 184, 40118, 0, -1, -2.00], [66624803, 184, 40118, 0, 1, 1.04], [66624889, 184, 40118, 0, 1, 2.00], [66624889, 184, 40118, 0, -1, -2.00], [66624889, 184, 40118, 0, 1, 1.04], [60624241, 184, 40118, 0, 1, 34.99], [62644079, 184, 40118, 0, 1, 9.99], [62664183, 184, 40118, 0, -1, -20.99], [64654047, 184, 40118, 0, -1, -25.99], [62694327, 184, 40118, 0, -1, -10.39], [69604894, 184, 40118, 0, -1, -19.00], [67644821, 184, 40118, 0, -1, -14.99], [67644118, 184, 40118, 0, 1, 16.99], [66664981, 184, 40118, 0, 1, 3.09], [66684899, 184, 40118, 0, 1, 12.99], [64634942, 184, 40118, 0, 1, 15.99], [63654826, 184, 40118, 0, 1, 19.00], [69604993, 184, 40118, 0, -1, -14.39], [63624118, 184, 40118, 0, -1, -15.00], [62684517, 184, 40118, 0, -1, -29.99], [67634503, 184, 40118, 0, 1, 24.99], [62694782, 184, 40118, 0, -1, -16.99], [62694683, 184, 40118, 0, -1, -16.99], [62694782, 184, 40118, 0, -1, -16.99], [62694782, 184, 40118, 0, -1, -16.99], [62684096, 184, 40118, 0, 1, 14.00], [69644199, 184, 40118, 0, 1, 19.19], [60634366, 184, 40118, 0, 1, 7.99], [67654448, 184, 40118, 0, 1, 23.00], [67654448, 184, 40118, 0, -1, -23.00], [67654448, 184, 40118, 0, 1, 19.01], [69654459, 184, 40118, 0, 1, 5.08], [60664779, 184, 40118, 0, 1, 5.08], [63674002, 184, 40118, 0, -1, -29.99], [68604041, 184, 40118, 0, -1, -19.99], [67634503, 184, 40118, 0, 1, 24.99], [68644941, 184, 40118, 0, -1, -10.39], [68644941, 184, 40118, 0, -1, -10.39], [68644941, 184, 40118, 0, -1, -10.39], [68644941, 184, 40118, 0, -1, -10.39], [68644934, 184, 40118, 0, 1, 10.39], [62674884, 184, 40118, 0, -1, -8.99], [68654381, 184, 40118, 0, 1, 14.95], [64644433, 184, 40118, 0, 1, 24.99], [64604829, 184, 40118, 0, -1, -29.99], [62634996, 184, 40118, 0, 1, 9.99], [60624270, 184, 40118, 0, 1, 0.95], [63664932, 184, 40118, 0, 1, 1.59], [69684804, 184, 40118, 0, 1, 9.99], [68664363, 184, 40118, 0, -1, -29.95], [62694503, 184, 40118, 0, 1, 2.99], [62644205, 184, 40118, 0, 1, 24.99], [62604912, 184, 40118, 0, 1, 24.89], [64634802, 184, 40118, 0, 1, 4.29], [60664257, 184, 40118, 0, 1, 2.12], [62684043, 184, 40118, 0, -1, -19.95], [62684043, 184, 40118, 0, 1, 19.95], [64644860, 184, 40118, 0, -1, -3.95], [62644590, 184, 40118, 0, -1, -22.99], [64664587, 184, 40118, 0, -1, -16.99], [64604930, 184, 40118, 0, -1, -35.95], [60604880, 184, 40118, 0, 1, 9.00], [68674372, 184, 40118, 0, 1, 2.00], [63684755, 184, 40118, 0, 1, 2.00], [64684439, 184, 40118, 0, 1, 9.99], [67624120, 184, 40118, 0, 1, 0.98], [67624120, 184, 40118, 0, -1, -0.98], [67624120, 184, 40118, 0, 1, 0.49], [67624120, 184, 40118, 0, 1, 0.98], [67624120, 184, 40118, 0, -1, -0.98], [67624120, 184, 40118, 0, 1, 0.49], [66614192, 184, 40118, 0, 1, 1.23], [66614192, 184, 40118, 0, -1, -1.23], [66614192, 184, 40118, 0, 1, 0.69], [66614192, 184, 40118, 0, 1, 1.23], [66614192, 184, 40118, 0, -1, -1.23], [66614192, 184, 40118, 0, 1, 0.69], [67624473, 184, 40118, 0, 1, 0.50], [67624473, 184, 40118, 0, -1, -0.50], [67624473, 184, 40118, 0, 1, 0.19], [67614923, 184, 40118, 0, -1, -19.95], [63604715, 184, 40118, 0, -1, -6.99], [63604715, 184, 40118, 0, -1, -6.99], [63604715, 184, 40118, 0, -1, -6.99], [62684102, 184, 40118, 0, 1, 14.00], [63654091, 184, 40118, 0, 1, 4.95], [68694729, 184, 40118, 0, -1, -16.99], [60684563, 184, 40118, 0, 1, 9.59], [68664957, 184, 40118, 0, 1, 13.99], [67604116, 184, 40118, 0, 1, 21.00], [64664047, 184, 40118, 0, 1, 22.99], [67634497, 184, 40118, 0, 1, 24.99], [64664270, 184, 40118, 0, 1, 3.19], [60634150, 184, 40118, 0, -1, -14.99], [68684135, 184, 40118, 0, -1, -249.00], [68684135, 184, 40118, 0, 1, 269.00], [68684135, 184, 40118, 0, -1, -269.00], [68684135, 184, 40118, 0, 1, 249.00], [69624909, 184, 40118, 0, -1, -26.21], [62634962, 184, 40118, 0, -1, -6.89], [67614726, 184, 40118, 0, -1, -9.95], [68654094, 184, 40118, 0, -1, -4.50], [60674335, 184, 40118, 0, 1, 19.95], [60674335, 184, 40118, 0, -1, -19.95], [60674335, 184, 40118, 0, 1, 12.99], [60644305, 184, 40118, 0, 1, 0.89], [64604604, 184, 40118, 0, 1, 6.99], [63694367, 184, 40118, 0, 1, 19.00], [62644079, 184, 40118, 0, 1, 9.99], [67674119, 184, 40118, 0, 1, 1.89], [69614627, 184, 40118, 0, 1, 19.00], [69614740, 184, 40118, 0, 1, 19.00], [60614135, 184, 40118, 0, -1, -14.25], [69674452, 184, 40118, 0, 1, 19.99], [62694272, 184, 40118, 0, 1, 2.49], [69614274, 184, 40118, 0, 1, 9.95], [60634379, 184, 40118, 0, 1, 25.00], [60674904, 184, 40118, 0, 1, 19.00], [66614582, 184, 40118, 0, -1, -15.99], [64654096, 184, 40118, 0, 1, 4.95], [62634605, 184, 40118, 0, 1, 29.99], [69694354, 184, 40118, 0, 1, 2.99], [69634699, 184, 40118, 0, 1, 20.99], [69634712, 184, 40118, 0, 1, 20.99], [69664171, 184, 40118, 0, -1, -27.95], [69694479, 184, 40118, 0, 1, 14.99], [63634656, 184, 40118, 0, -1, -5.50], [69664149, 184, 40118, 0, -1, -5.99], [69664163, 184, 40118, 0, -1, -1.39], [67674341, 184, 40118, 0, -1, -19.95], [69644053, 184, 40118, 0, 1, 18.74], [63674184, 184, 40118, 0, 1, 164.00], [62604338, 184, 40118, 0, 1, 69.99], [62644344, 184, 40118, 0, 1, 10.99], [66644706, 184, 40118, 0, 1, 10.99], [62644528, 184, 40118, 0, 1, 10.99], [62644764, 184, 40118, 0, 1, 10.99], [62664135, 184, 40118, 0, 1, 11.00], [62664244, 184, 40118, 0, 1, 11.00], [62664197, 184, 40118, 0, 1, 11.00], [62654875, 184, 40118, 0, 1, 39.99], [64614653, 184, 40118, 0, 1, 34.99], [64614653, 184, 40118, 0, 1, 34.99], [61694023, 184, 40118, 0, 1, 14.99], [61694023, 184, 40118, 0, 1, 14.99], [60694909, 184, 40118, 0, 1, 2.00], [68614241, 184, 40118, 0, 1, 12.99], [69654638, 184, 40118, 0, 1, 6.00], [67634923, 184, 40118, 0, 1, 17.59], [64614285, 184, 40118, 0, 1, 22.99], [69644389, 184, 40118, 0, 1, 17.59], [68614787, 184, 40118, 0, 1, 27.99], [69644337, 184, 40118, 0, 1, 29.99], [68634061, 184, 40118, 0, 1, 27.99], [69644184, 184, 40118, 0, 1, 15.99], [63624756, 184, 40118, 0, 1, 21.00], [67604116, 184, 40118, 0, 1, 21.00], [68654451, 184, 40118, 0, 1, 27.99], [62614172, 184, 40118, 0, 1, 19.19], [61614174, 184, 40118, 0, 1, 49.99], [61614174, 184, 40118, 0, 1, 29.99], [62644445, 184, 40118, 0, 1, 69.95], [62634323, 184, 40118, 0, 1, 149.00], [66674079, 184, 40118, 0, 1, 3.95], [66674130, 184, 40118, 0, 1, 3.95], [61604095, 184, 40118, 0, 1, 12.50], [66664028, 184, 40118, 0, 1, 14.95], [68654621, 184, 40118, 0, 1, 12.95], [63694264, 184, 40118, 0, 1, 19.95], [63604361, 184, 40118, 0, 1, 3.99], [62634259, 184, 40118, 0, 1, 6.69], [62634259, 184, 40118, 0, 1, 6.69], [60684429, 184, 40118, 0, 1, 4.89], [60684037, 184, 40118, 0, 1, 9.95], [69694875, 184, 40118, 0, 1, 19.95], [69694875, 184, 40118, 0, 1, 19.95], [69694875, 184, 40118, 0, 1, 19.95], [69694875, 184, 40118, 0, -1, -19.95], [69694875, 184, 40118, 0, -1, -19.95], [69694875, 184, 40118, 0, -1, -19.95], [63604108, 184, 40118, 0, 1, 3.95], [63694928, 184, 40118, 0, 1, 11.49], [60634765, 184, 40118, 0, 1, 4.99], [69664668, 184, 40118, 0, 1, 8.95]]' ) select('Table', 'cell:9 - 2|STORE-NO,0(20)') rightclick('Table', '1 - 8|KEYCODE-NO,0') ## select('Table', 'cell:9 - 2|STORE-NO,0(20)') select_menu('Edit Record') ## select('Table1', 'cell:9 - 2|STORE-NO,0(20)') select('Table', 'cell:Data,0(69684558)') assert_p('Table', 'Text', '69684558', 'Data,0') select('Table', 'cell:Data,5(19.00)') assert_p('Table', 'Text', '19.00', 'Data,5') select('Table', 'cell:Hex,2(0040118c)') assert_p('Table', 'Text', '000c', 'Hex,3') select('Table', 'cell:Hex,2(0040118c)') click('Right') select('Table', 'cell:Data,2(40118)') assert_p('Table', 'Text', '40118', 'Data,2') select('Table', 'cell:Data,5(-19.00)') assert_p('Table', 'Text', '-19.00', 'Data,5') select('Table', 'cell:Data,5(-19.00)') click('Right') select('Table', 'cell:Data,0(69684558)') assert_p('Table', 'Text', '20', 'Data,1') select('Table', 'cell:Data,5(5.01)') assert_p('Table', 'Text', '5.01', 'Data,5') select('Table', 'cell:Data,4(1)') assert_p('Table', 'Text', '1', 'Data,4') select('Table', 'cell:Data,4(1)') click('Right') select('Table', 'cell:Data,5(19.00)') assert_p('Table', 'Text', '19.00', 'Data,5') select('Table', 'cell:Data,0(69694158)') assert_p('Table', 'Text', '20', 'Data,1') select('Table', 'cell:Data,1(20)') assert_p('Table', 'Text', '20', 'Data,1') select('Table', 'cell:Data,1(20)') click('Right') select('Table', 'cell:Data,5(-19.00)') assert_p('Table', 'Text', '-19.00', 'Data,5') select('Table', 'cell:Data,4(-1)') assert_p('Table', 'Text', '-1', 'Data,4') select('Table', 'cell:Data,0(69694158)') assert_p('Table', 'Text', '69694158', 'Data,0') select('Table', 'cell:Data,0(69694158)') click('Right') select('Table', 'cell:Data,5(5.01)') assert_p('Table', 'Text', '5.01', 'Data,5') select('Table', 'cell:Data,4(1)') assert_p('Table', 'Text', '1', 'Data,4') 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('*3') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') select('FileChooser1', commonBits.sampleDir() + 'XfeDTAR020.csv') commonBits.setRecordLayout2(select, 'DTAR020') ## click('ScrollPane$ScrollBar', 3, 37) ## select('TextField', 'x\'fe\'') select('DelimiterCombo', 'x\'FE\'') click('Right') select('TabbedPane', '') click('Right') select('TabbedPane', '') click('Copy2') assert_p('TextField1', 'Text', 'Copy Done !!! ') click('Open') select('FileChooser', commonBits.sampleDir() + 'XfeDTAR020.csv') select('ComboBox2', 'Generic CSV - enter details') commonBits.doEdit(click) if window(''): select('CheckBox', 'true') assert_p('DelimiterCombo', 'Text', 'x\'FE\'') assert_p('Table', 'Text', '69684558', 'KEYCODE-NO,0') select('Table', 'cell:DATE,0(40118)') assert_p('Table', 'Text', '40118', 'DATE,0') select('Table', 'cell:DEPT-NO,1(280)') ## assert_p('Table', 'Content', '[[69684558, 20, 40118, 280, 1], [69684558, 20, 40118, 280, -1], [69684558, 20, 40118, 280, 1], [69694158, 20, 40118, 280, 1], [69694158, 20, 40118, 280, -1], [69694158, 20, 40118, 280, 1], [63604808, 20, 40118, 170, 1], [62684671, 20, 40118, 685, 1], [62684671, 20, 40118, 685, -1], [64634429, 20, 40118, 957, 1], [66624458, 20, 40118, 957, 1], [63674861, 20, 40118, 957, 10], [65674532, 20, 40118, 929, 1], [64614401, 59, 40118, 957, 1], [64614401, 59, 40118, 957, 1], [61664713, 59, 40118, 335, 1], [61664713, 59, 40118, 335, -1], [68634752, 59, 40118, 410, 1], [60614487, 59, 40118, 878, 1], [63644339, 59, 40118, 878, 1], [60694698, 59, 40118, 620, 1], [60664659, 59, 40118, 620, 1], [62684217, 59, 40118, 957, 1], [67674686, 59, 40118, 929, 1], [61684613, 59, 40118, 335, 1], [64624770, 59, 40118, 957, 1], [69694814, 166, 40118, 360, 1], [69694814, 166, 40118, 360, 1], [69644164, 166, 40118, 193, 1]]') 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:DEPT-NO,1(280)') commonBits.doSleep() select('TabbedPane', 'Normal') click('Go') commonBits.doSleep() commonBits.doSleep() close() commonBits.doSleep() commonBits.doSleep() select_menu('Window>>XfeDTAR020.csv>>Table:') select('Table', 'cell:1|KEYCODE-NO,0(69684558)') assert_p('Table', 'Text', '69684558', '1|KEYCODE-NO,1') select('Table', 'cell:2|STORE-NO,0(20)') assert_p('Table', 'Text', '20', '2|STORE-NO,0') select('Table', 'cell:3|DATE,0(40118)') assert_p('Table', 'Text', '40118', '3|DATE,0') select('Table', 'cell:4|DEPT-NO,0(280)') assert_p('Table', 'Text', '280', '4|DEPT-NO,1') select('Table', 'cell:5|QTY-SOLD,0(1)') assert_p('Table', 'Text', '-1', '5|QTY-SOLD,1') select('Table', 'cell:1|KEYCODE-NO,2(69684558)') rightclick('Table', '1|KEYCODE-NO,2') select_menu('Edit Record') ## select('Table1', 'cell:1|KEYCODE-NO,2(69684558)') select('Table', 'cell:Data,0(69684558)') assert_p('Table', 'Text', '20', 'Data,1') select('Table', 'cell: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]]') 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:Data,0(69684558)') click('Right') select('Table', 'cell:Data,0(69694158)') ## 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]]') 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:Data,0(69694158)') click('Right') select('Table', 'cell:Data,0(69694158)') ## 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]]') 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:Data,0(69694158)') click('Right') select('Table', 'cell:Data,3(280)') assert_p('Table', 'Text', '1', 'Data,4') select('Table', 'cell:Data,0(69694158)') ## 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]]') 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:Data,0(69694158)') click('Right') select('Table', 'cell:Data,0(63604808)') ## assert_p('Table', 'Content', '[[KEYCODE-NO, 1, , 63604808, 63604808], [STORE-NO, 2, , 20, 20], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 170, 170], [QTY-SOLD, 5, , 1, 1]]') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 63604808, 63604808], [STORE-NO, 2, , 20, 20], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 170, 170], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 4.87, 4.87]]' ) select('Table', 'cell:Data,0(63604808)') select_menu('Window>>XfeDTAR020.csv>>Table:') ## select('Table2', 'cell:Data,0(63604808)') select('Table', 'cell:1|KEYCODE-NO,2(69684558)') select('Table', 'cell:1|KEYCODE-NO,4(69694158)') assert_p('Table', 'RowCount', '379') select('Table', 'cell:1|KEYCODE-NO,8(62684671)') assert_p('Table', 'ColumnCount', '6') select('Table', 'cell:1|KEYCODE-NO,8(62684671)') commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu') ## select('Table', 'cell:1|KEYCODE-NO,8(62684671)') click('*1') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') select('FileChooser1', commonBits.sampleDir() + 'SampleFiles' + commonBits.fileSep()) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('*2') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'XfeDTAR020.csv') click('Right') if window(''): select('TextField', 'x\'FE\'') select('CheckBox', 'true') ## select('Table', '') assert_p('Table', 'Text', '20', 'STORE-NO,0') select('Table', 'cell:DATE,1(40118)') ### assert_p('Table', 'Content', '[[69684558, 20, 40118, 280, 1], [69684558, 20, 40118, 280, -1], [69684558, 20, 40118, 280, 1], [69694158, 20, 40118, 280, 1], [69694158, 20, 40118, 280, -1], [69694158, 20, 40118, 280, 1], [63604808, 20, 40118, 170, 1], [62684671, 20, 40118, 685, 1], [62684671, 20, 40118, 685, -1], [64634429, 20, 40118, 957, 1], [66624458, 20, 40118, 957, 1], [63674861, 20, 40118, 957, 10], [65674532, 20, 40118, 929, 1], [64614401, 59, 40118, 957, 1], [64614401, 59, 40118, 957, 1], [61664713, 59, 40118, 335, 1], [61664713, 59, 40118, 335, -1], [68634752, 59, 40118, 410, 1], [60614487, 59, 40118, 878, 1], [63644339, 59, 40118, 878, 1], [60694698, 59, 40118, 620, 1], [60664659, 59, 40118, 620, 1], [62684217, 59, 40118, 957, 1], [67674686, 59, 40118, 929, 1], [61684613, 59, 40118, 335, 1], [64624770, 59, 40118, 957, 1], [69694814, 166, 40118, 360, 1], [69694814, 166, 40118, 360, 1], [69644164, 166, 40118, 193, 1]]') 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,1(40118)') commonBits.doSleep() select('TabbedPane', 'Normal') click('Go') close() select('TabbedPane', '') select('Table', 'cell:Equivalent Record,0(-1)') select('Table', 'GeneratedCsvRecord', 'Equivalent Record,0') select('Table', 'cell:Equivalent Record,0(0)') select('Table1', 'cell:Equivalent Field,5()') select('Table', 'cell:Equivalent Record,0(0)') select('Table1', 'cell:Equivalent Field,5()') ##click('MetalInternalFrameTitlePane', 379, 15) ##click('MetalInternalFrameTitlePane', 345, 11) click('Right') select('TabbedPane', '') click('Compare') assert_p('TextPane', 'Text', 'Files are Identical !!!') close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): select( 'FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml') commonBits.doEdit(click) select('LayoutCombo', 'copybook') #rightclick('JTreeTable', 'Prefix,0') #select_menu('Expand Tree') rightclick('JTreeTable', 'Xml~Prefix,4') select_menu('Expand Tree') select('JTreeTable', 'rows:[4,5,6,7,8],columns:[Xml~Prefix]') select('LayoutCombo', 'item') select('JTreeTable', 'cell:Xml~Prefix,3(******************************)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('JTreeTable', 'rows:[4,5,6,7,8],columns:[Xml~Prefix]') select_menu('View>>Table View #{Selected Records#}') # select('JTreeTable', 'rows:[4,5,6,7,8],columns:[Prefix]') select('Table', 'cell:7|name,2(Location-Details)') assert_p('Table', 'Text', 'Location-Details', '7|name,2') select('Table', 'cell:7|name,3(Location-Number)') assert_p('Table', 'RowCount', '17') select('Table', 'cell:7|name,4(Location-Type)') assert_p('Table', 'Text', 'Location-Name', '7|name,5') select('Table', 'cell:7|name,5(Location-Name)') assert_p('Table', 'Enabled', 'true') select('Table', 'cell:7|name,7(Full-Address)') assert_p( 'Table', 'Content', '[[item, , , 173, 01, Ams-Vendor, 1, 173, , , , ], [item, , , 3, 03, Brand, 1, 3, x(3), , True, ], [item, , , 41, 03, Location-Details, 4, 41, , , , ], [item, , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [item, , , 2, 05, Location-Type, 8, 2, XX, , True, ], [item, , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [/item, , , , , , , , , , , ], [item, , , 128, 03, Full-Address, 45, 128, , , , ], [item, , , 115, 05, Address-Lines, 45, 115, , , , ], [item, , , 40, 07, Address-1, 45, 40, X(40), , True, ], [item, , , 40, 07, Address-2, 85, 40, X(40), , True, ], [item, , , 35, 07, Address-3, 125, 35, X(35), , True, ], [/item, , , , , , , , , , , ], [item, , , 10, 05, Postcode, 160, 10, 9(10), true, True, ], [item, , , 3, 05, State, 170, 3, XXX, , True, ], [/item, , , , , , , , , , , ], [item, , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('Table', 'cell:7|name,7(Full-Address)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('JTreeTable', 'cell:Tree,6(null)') rightclick('JTreeTable', 'Xml~Prefix,6') select_menu('Copy Record#{s#}') select('JTreeTable', 'cell:Xml~Prefix,8(null)') rightclick('JTreeTable', 'Xml~Prefix,8') select_menu('Paste Record#{s#}') rightclick('JTreeTable', 'Xml~Prefix,0') select_menu('Expand Tree') select('JTreeTable', 'cell:Xml~Prefix,4(null)') rightclick('JTreeTable', 'Xml~Prefix,4') select_menu('Expand Tree') select('JTreeTable', 'cell:name,9(Location-Details)') assert_p('JTreeTable', 'Text', 'Location-Details', 'name,9') select('JTreeTable', 'cell:name,8(Location-Active)') assert_p('JTreeTable', 'RowCount', '10') select('JTreeTable', 'cell:Xml~Prefix,9(null)') rightclick('JTreeTable', 'Xml~Prefix,9') select_menu('Expand Tree') select('JTreeTable', 'cell:name,11(Location-Type)') assert_p('JTreeTable', 'Text', 'Location-Type', 'name,11') select('JTreeTable', 'cell:name,12(Location-Name)') assert_p('JTreeTable', 'Text', 'Location-Name', 'name,12') select('JTreeTable', 'cell:name,10(Location-Number)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 2, 05, Location-Type, 8, 2, XX, , True, ], [, , , , 35, 05, Location-Name, 10, 35, X(35), , True, ]]' ) select('JTreeTable', 'cell:name,11(Location-Type)') assert_p('JTreeTable', 'RowCount', '13') select('JTreeTable', 'rows:[8,9,10,11,12],columns:[display-length]') select_menu('View>>Table View #{Selected Records#}') select('JTreeTable', 'rows:[8,9,10,11,12],columns:[display-length]') select('Table', 'cell:5|display-length,1(41)') assert_p( 'Table', 'Content', '[[item, , , 1, 03, Location-Active, 173, 1, X, , True, ], [item, , , 41, 03, Location-Details, 4, 41, , , , ], [item, , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [item, , , 2, 05, Location-Type, 8, 2, XX, , True, ], [item, , , 35, 05, Location-Name, 10, 35, X(35), , True, ]]' ) select('Table', 'cell:7|name,3(Location-Type)') assert_p('Table', 'Text', 'Location-Type', '7|name,3') select('Table', 'cell:7|name,0(Location-Active)') assert_p('Table', 'Text', 'Location-Active', '7|name,0') select('Table', 'cell:7|name,2(Location-Number)') assert_p('Table', 'RowCount', '5') select('Table', 'cell:7|name,2(Location-Number)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('JTreeTable', 'cell:level,11(05)') rightclick('JTreeTable', 'level,11') select('JTreeTable', 'cell:level,11(05)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') if window('Save Changes to file: ' + commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml'): click('No') close() close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Ams_PODownload_20041231.txt') commonBits.doEdit(click) select_menu('View>>Record Based Tree') select('Table', 'ams PO Download: Header', 'Parent Record,0') select('Table', 'ams PO Download: Detail', 'Parent Record,2') # select('Table', '1', 'Parent Record,0') # select('Table', '0', 'Parent Record,2') select('Table', 'cell:Parent Record,2(0)') click('Build') select_menu('File>>Save Tree as XML') if window('Open'): select('File Name', 'xmlTreeSaveAms_PODownload_20041231.xml') click('Open') close() commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu') click('*2') select( 'FileChooser', commonBits.sampleDir() + 'xmlTreeSaveAms_PODownload_20041231.xml') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'Ams_PODownload_20041231.txt') click('Right') select('TabbedPane', '') select('Table', 'cell:Equivalent Record,2(-1)') ## select('Table', '1', 'Equivalent Record,2') ## select('Table', '0', 'Equivalent Record,3') ## select('Table', '2', 'Equivalent Record,4') select('Table', 'ams PO Download: Detail', 'Equivalent Record,2') select('Table', 'ams PO Download: Header', 'Equivalent Record,3') select('Table', 'ams PO Download: Allocation', 'Equivalent Record,4') click('FieldChoice', 727, 517) click('ReFrame', 790, 602) click('Right') select('TabbedPane', '') click('Compare') assert_p('TextPane', 'Text', 'Files are Identical !!!') select_menu('Window>>Menu>>Compare Menu') click('*2') select('FileChooser', commonBits.sampleDir() + 'Ams_PODownload_20041231.txt') click('Right') select('TabbedPane', '') select( 'FileChooser', commonBits.sampleDir() + 'xmlTreeSaveAms_PODownload_20041231.xml') click('Right') select('TabbedPane', '') # select('Table', 'cell:Equivalent Record,0(-1)') # select('Table', '3', 'Equivalent Record,0') # select('Table', '2', 'Equivalent Record,1') # select('Table', '4', 'Equivalent Record,2') select('Table', 'ams_PO_Download__Detail', 'Equivalent Record,0') select('Table', 'ams_PO_Download__Header', 'Equivalent Record,1') select('Table', 'ams_PO_Download__Allocation', 'Equivalent Record,2') select('Table', 'cell:Equivalent Record,2(4)') click('Right') select('TabbedPane', '') click('Compare') assert_p('TextPane', 'Text', 'Files are Identical !!!') 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('*5') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') select('FileChooser1', commonBits.sampleDir() + 'csvDTAR020comma.csv') commonBits.setRecordLayout2(select, 'DTAR020') if commonBits.isJRecord(): select('FileChooser3', commonBits.velocityDir() + 'toCsv_Comma.vm') else: select('FileChooser2', commonBits.velocityDir() + 'toCsv_Comma.vm') click('Right') select('TabbedPane', '') ##click('Copy2') commonBits.copy(click) rightclick('TextField') assert_p('TextField1', 'Text', commonBits.fl('Copy Done !!!')) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') click('Open') select('FileChooser', commonBits.sampleDir() + 'csvDTAR020comma.csv') commonBits.doEdit(click) if window(''): select('CheckBox', 'true') click(commonBits.fl('Go')) commonBits.doSleep() close() commonBits.doSleep() # select('Table', 'rows:[1,2,3,4,5,6,7,8,9,10,11],columns:[1|KEYCODE-NO,2|STORE-NO]') select( 'Table', 'rows:[1,2,3,4,5,6,7,8,9,10,11],columns:[1|KEYCODE-NO,2|STORE-NO]') select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}')) ## select('Table2', 'rows:[1,2,3,4,5,6,7,8,9,10,11],columns:[1|KEYCODE-NO,2|STORE-NO]') select('Table', 'cell:1|KEYCODE-NO,3(69694158)') ## assert_p('Table', 'Content', '[[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]]') assert_p( 'Table', 'Content', '[[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]]' ) select('Table', 'cell:1|KEYCODE-NO,3(69694158)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') ## select('Table', 'rows:[1,2,3,4,5,6,7,8,9,10,11],columns:[1|KEYCODE-NO,2|STORE-NO]') ## select('Table', 'rows:[1,2,3,4,5,6,7,8,9,10,11],columns:[1|KEYCODE-NO,2|STORE-NO]') select_menu( commonBits.fl('Window') + '>>csvDTAR020comma.csv>>' + commonBits.fl('Table:')) select( 'Table', 'rows:[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],columns:[1|KEYCODE-NO]' ) select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}')) ## select('Table2', 'rows:[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],columns:[1|KEYCODE-NO]') select('Table', 'cell:2|STORE-NO,5(59)') assert_p( 'Table', 'Content', '[[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], [62684907, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, -1, -13.99], [62694193, 166, 40118, 375, 1, 11.99], [63654450, 166, 40118, 320, 1, 13.99], [62664576, 166, 40118, 320, 1, 9.72]]' ) select('Table', 'cell:2|STORE-NO,5(59)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') ## select('Table', 'rows:[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],columns:[1|KEYCODE-NO]') ## select('Table', 'rows:[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],columns:[1|KEYCODE-NO]') select_menu( commonBits.fl('Window') + '>>csvDTAR020comma.csv>>' + commonBits.fl('Table:')) select('Table', 'cell:2|STORE-NO,38(166)') rightclick('Table', '2|STORE-NO,38') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:2|STORE-NO,38(166)') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 64674965, 64674965], [STORE-NO, 2, , 166, 166], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 235, 235], [QTY-SOLD, 5, , -1, -1], [SALE-PRICE, 6, , -19.99, -19.99]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') assert_p('TextArea', 'Text', '64674965,166,40118,235,-1,-19.99,') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 64674965, 64674965], [STORE-NO, 2, , 166, 166], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 235, 235], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 12.00, 12.00]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') assert_p('TextArea', 'Text', '64674965,166,40118,235,1,12.00,') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 60624523, 60624523], [STORE-NO, 2, , 166, 166], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 261, 261], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 12.00, 12.00]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') assert_p('TextArea', 'Text', '60624523,166,40118,261,1,12.00,') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 66624253, 66624253], [STORE-NO, 2, , 166, 166], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 957, 957], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 3.49, 3.49]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') click('TextArea') assert_p('TextArea', 'Text', '66624253,166,40118,957,1,3.49,') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 66624253, 66624253], [STORE-NO, 2, , 166, 166], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 957, 957], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 3.49, 3.49]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') assert_p('TextArea', 'Text', '66624253,166,40118,957,1,3.49,') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') assert_p( 'Table', 'Content', '[[KEYCODE-NO, 1, , 64654284, 64654284], [STORE-NO, 2, , 166, 166], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 957, 957], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 3.99, 3.99]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',2(40118)') click('TextArea') assert_p('TextArea', 'Text', '64654284,166,40118,957,1,3.99,') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('Table', 'cell:2|STORE-NO,38(166)') select('Table', 'cell:2|STORE-NO,38(166)') select_menu( commonBits.fl('Window') + '>>csvDTAR020comma.csv>>' + commonBits.fl('Table:')) select('Table', 'cell:2|STORE-NO,38(166)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu') click('*2') select('FileChooser', commonBits.sampleDir() + 'csvDTAR020comma.csv') click('Right') if window(''): select('CheckBox', 'true') click(commonBits.fl('Go')) close() select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') click('Right') select('TabbedPane', '') select('Table', 'cell:' + commonBits.fl('Equivalent Record') + ',0(-1)') select('Table', 'DTAR020', commonBits.fl('Equivalent Record') + ',0') select('Table', 'cell:' + commonBits.fl('Equivalent Record') + ',0(0)') select('Table1', 'cell:' + commonBits.fl('Field') + ',2(DATE)') 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(GeneratedCsvRecord)') assert_p('Table', 'Content', '[[GeneratedCsvRecord, DTAR020]]') select('Table', 'cell:' + commonBits.fl('Record') + ',0(GeneratedCsvRecord)') click('Right') select('TabbedPane', '') click(commonBits.fl('Compare')) assert_p('TextPane', 'Text', 'Files are Identical !!!') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_PODownload_20041231.txt') commonBits.setRecordLayout(select, 'zzAms PO Download') commonBits.doEdit(click) click('Filter') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'cell:' + commonBits.fl('Field') + ',0(null)') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'Record Type', commonBits.fl('Field') + ',0') select('Table2', 'd', commonBits.fl('Value') + ',0') select('Table2', 'cell:' + commonBits.fl('Value') + ',0()') select('Table', 'false', commonBits.fl('Include') + ',1') select('Table', 'cell:' + commonBits.fl('Include') + ',2(true)') commonBits.filter(click) select('Table', 'cell:3 - 9|Pack Qty,2(48.0000)') assert_p('Table', 'Text', '16.0000', '3 - 9|Pack Qty,4') select('Table', 'cell:3 - 9|Pack Qty,3(4.0000)') assert_p('Table', 'RowCount', '24') select('Table', 'cell:3 - 9|Pack Qty,6(108.0000)') assert_p('Table', 'Text', '108.0000', '3 - 9|Pack Qty,6') select('Table', 'cell:3 - 9|Pack Qty,6(108.0000)') rightclick('Table', '1 - 2|Record Type,4') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:3 - 9|Pack Qty,6(108.0000)') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075348)') assert_p('Table', 'Text', '2075348', commonBits.fl('Data') + ',6') select( 'Table', 'cell:' + commonBits.fl('Data') + ',8( DONKEY 24-006607 SHWL WRAP CARD)') assert_p('Table', 'Text', ' DONKEY 24-006607 SHWL WRAP CARD', commonBits.fl('Data') + ',8') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075348)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 16.0000, 000160000], [Pack Cost, 12, 13, 6228148.3200, 0062281483200], [APN, 25, 13, 2222, 0000000002222], [Filler, 38, 1, , ], [Product, 39, 8, 2224531, 02224531], [pmg dtl tech key, 72, 15, 2075348, 2075348], [Case Pack id, 87, 15, 5614531, 5614531], [Product Name, 101, 50, DONKEY 24-006607 SHWL WRAP CARD, DONKEY 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075348)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075349)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 8.0000, 000080000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 62224944, 62224944], [pmg dtl tech key, 72, 15, 2075349, 2075349], [Case Pack id, 87, 15, 65614944, 65614944], [Product Name, 101, 50, MILK 24-006607 SHWL WRAP CARD, MILK 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075349)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075350)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 108.0000, 001080000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 62225071, 62225071], [pmg dtl tech key, 72, 15, 2075350, 2075350], [Case Pack id, 87, 15, 65615071, 65615071], [Product Name, 101, 50, M.ROSE 24-006607 SHWL WRAP CARD, M.ROSE 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075350)') click('TextArea') assert_p( 'TextArea', 'Text', 'D100108000000000014832000000000000000 62225071000000054540000108 2075350 65615071 M.ROSE 24-006607 SHWL WRAP CARD ' ) click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075351)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 8.0000, 000080000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 52225156, 52225156], [pmg dtl tech key, 72, 15, 2075351, 2075351], [Case Pack id, 87, 15, 55615156, 55615156], [Product Name, 101, 50, M.ROSE 24-006607 SHWL WRAP CARD, M.ROSE 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075351)') click('TextArea') assert_p('ScrollPane1', 'Enabled', 'true') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_PODownload_20041231.txt') #click('Choose File') #if window('Open'): # keystroke('File Name', 'Enter') # select('FilePane$3', 'zzAms_PODownload_20041231.txt') # click('Open') #close() ## select('ComboBox1', 'Ams') commonBits.setRecordLayout(select, 'zzAms PO Download') commonBits.doEdit(click) click('Filter') click('Filter1') ## --- select('LayoutCombo', 'ams PO Download: Header') select('Table', 'cell:3 - 5|Sequence Number,1(45.350)') assert_p('Table', 'Text', '45.351', '3 - 5|Sequence Number,2') select('Table', 'cell:3 - 5|Sequence Number,1(45.350)') assert_p('Table', 'RowCount', '8') select('Table', 'cell:1 - 2|Record Type,2(H1)') rightclick('Table', '1 - 2|Record Type,2') select_menu('Edit Record') ## select('Table1', 'cell:1 - 2|Record Type,2(H1)') select('Table', 'cell:Data,3(222243)') assert_p('Table', 'Text', '222243', 'Data,3') select('Table', 'cell:Data,9(050102)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, H1, H1], [Sequence Number, 3, 5, 45.351, 45351], [Vendor, 8, 10, 6228, 0000006228], [PO, 18, 12, 222243, 000000222243], [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:Data,9(050102)') click('Right') select('Table', 'cell:Data,1(45.352)') assert_p('Table', 'Text', '5341', 'Data,2') select('Table', 'cell:Data,1(45.352)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, H1, H1], [Sequence Number, 3, 5, 45.352, 45352], [Vendor, 8, 10, 5341, 0000005341], [PO, 18, 12, 294915, 294915], [Entry Date, 30, 6, 041013, 041013], [Filler, 36, 8, , ], [beg01 code, 44, 2, 00, 00], [beg02 code, 46, 2, , ], [Department, 48, 4, 475, 475], [Expected Reciept Date, 52, 6, 041231, 041231], [Cancel by date, 58, 6, 050107, 050107], [EDI Type, 68, 1, P, P], [Add Date, 69, 6, , ], [Filler, 75, 1, , ], [Department Name, 76, 10, WOMENS SHO, WOMENS SHO], [Prcoess Type, 86, 1, C, C], [Order Type, 87, 2, FT, FT]]' ) select('Table', 'cell:Data,1(45.352)') click('Right') select('Table', 'cell:Data,3(294987)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, H1, H1], [Sequence Number, 3, 5, 45.353, 45353], [Vendor, 8, 10, 5341, 0000005341], [PO, 18, 12, 294987, 294987], [Entry Date, 30, 6, 041013, 041013], [Filler, 36, 8, , ], [beg01 code, 44, 2, 00, 00], [beg02 code, 46, 2, , ], [Department, 48, 4, 475, 475], [Expected Reciept Date, 52, 6, 041231, 041231], [Cancel by date, 58, 6, 050107, 050107], [EDI Type, 68, 1, P, P], [Add Date, 69, 6, , ], [Filler, 75, 1, , ], [Department Name, 76, 10, WOMENS SHO, WOMENS SHO], [Prcoess Type, 86, 1, C, C], [Order Type, 87, 2, FT, FT]]' ) select('Table', 'cell:Data,3(294987)') click('Right') select('Table', 'cell:Data,3(295139)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, H1, H1], [Sequence Number, 3, 5, 45.354, 45354], [Vendor, 8, 10, 5341, 0000005341], [PO, 18, 12, 295139, 295139], [Entry Date, 30, 6, 041013, 041013], [Filler, 36, 8, , ], [beg01 code, 44, 2, 00, 00], [beg02 code, 46, 2, , ], [Department, 48, 4, 475, 475], [Expected Reciept Date, 52, 6, 041231, 041231], [Cancel by date, 58, 6, 050107, 050107], [EDI Type, 68, 1, P, P], [Add Date, 69, 6, , ], [Filler, 75, 1, , ], [Department Name, 76, 10, WOMENS SHO, WOMENS SHO], [Prcoess Type, 86, 1, C, C], [Order Type, 87, 2, FT, FT]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): select( 'FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'recentFiles.xml') commonBits.doEdit(click) select('LayoutCombo', 'XML Start_Document') select( 'JTreeTable', 'cell:Xml~Encoding,1( iReport 2 file list - Thu Apr 12 15:22:04 EST 2007 )' ) assert_p('JTreeTable', 'Text', '', 'Xml~Encoding,3') select('JTreeTable', 'cell:Xml~Encoding,2()') assert_p('JTreeTable', 'RowCount', '4') select('JTreeTable', 'cell:Xml~Encoding,3(null)') rightclick('JTreeTable', 'Xml~Encoding,3') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:Xml~Encoding,4(null)') assert_p('JTreeTable', 'RowCount', '14') select('JTreeTable', 'cell:Xml~Encoding,5(null)') rightclick('JTreeTable', 'Xml~Encoding,7') select_menu(commonBits.fl('Edit Record')) select('Table', 'cell:' + commonBits.fl('Data') + ',2(null)') assert_p( 'Table', 'Content', r'[[Xml~Name, 0, , iReportFile, iReportFile], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Xml~End, 1, , , ], [Following~Text, 2, , E:\Work\RecordEdit\Jasper\untitled_report_1.jrxml, E:\Work\RecordEdit\Jasper\untitled_report_1.jrxml]]' ) select( 'Table', r'cell:' + commonBits.fl('Data') + ',4(E:\Work\RecordEdit\Jasper\untitled_report_1.jrxml)') ## assert_p('TextArea', 'Text', r'E:\Work\RecordEdit\Jasper\untitled_report_1.jrxml') click('Right') select('Table', '''cell:''' + commonBits.fl('Data') + ''',2( )''') select('Table', 'cell:' + commonBits.fl('Text') + ',1()') select('Table', 'cell:' + commonBits.fl('Text') + ',1()') click('RightM') click('Left') click('Left') select( 'Table', r'cell:' + commonBits.fl('Data') + ',4(E:\Work\RecordEdit\Jasper\DTAR107_rpt1.jrxml)') select( 'Table', r'cell:' + commonBits.fl('Text') + ',4(E:\Work\RecordEdit\Jasper\DTAR107_rpt1.jrxml)') assert_p( 'Table', 'Content', r'[[Xml~Name, 0, , iReportFile, iReportFile], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Xml~End, 1, , , ], [Following~Text, 2, , E:\Work\RecordEdit\Jasper\DTAR107_rpt1.jrxml, E:\Work\RecordEdit\Jasper\DTAR107_rpt1.jrxml]]' ) select( 'Table', r'cell:' + commonBits.fl('Text') + ',4(E:\Work\RecordEdit\Jasper\DTAR107_rpt1.jrxml)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') ##if window(r'Save Changes to file: ' + commonBits.sampleDir() + 'Xml\recentFiles.xml'): ## click('No') ##close() close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): ## click(commonBits.fl('Choose File')) ## if window('Open'): ## select(commonBits.selectPane(), 'Xml') ## doubleclick(commonBits.selectPane(), '0') ## select(commonBits.selectPane(), 'SAR4180B.xml') ## click('Open') ## close() select( 'FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'SAR4180Ba.xml') commonBits.doEdit(click) select('LayoutCombo', 'XML Start_Document') select('JTreeTable', 'cell:Xml~Standalone,1(SAR4180B.txt)') select('JTreeTable', 'cell:Xml~Version,1(null)') rightclick('JTreeTable', 'Xml~Version,1') select_menu(commonBits.fl('Expand Tree')) select( 'JTreeTable', 'cell:Xml~Encoding,7(*****************************************************************)' ) select( 'JTreeTable', 'cell:Xml~Encoding,3(* MEMBER IN COPYBOOK LIBRARY PT99.BASE0.COP NOTE: ID = DTK *)' ) assert_p( 'JTreeTable', 'Text', '* CREATED 20/12/94 S GHARIOS. *', 'Xml~Encoding,5') select( 'JTreeTable', 'cell:Xml~Encoding,11(* V02 |22/06/2K|SMS-PROJECT: COMMENTED THE FILLER| VIJAY *)' ) assert_p('JTreeTable', 'RowCount', '17') select('JTreeTable', 'cell:Xml~Encoding,16(null)') rightclick('JTreeTable', 'Xml~Encoding,16') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:Xml~Encoding,18(null)') select('JTreeTable', 'cell:Xml~Encoding,17(null)') select('JTreeTable', 'cell:Xml~Encoding,17()') assert_p('JTreeTable', 'RowCount', '21') select('JTreeTable', 'cell:Xml~Encoding,17()') select('LayoutCombo', 'item') select('JTreeTable', 'cell:Xml~Prefix,17()') select('JTreeTable', 'cell:Xml~Prefix,17()') rightclick('JTreeTable', 'Xml~Prefix,16') select('JTreeTable', 'cell:Xml~Prefix,17(null)') rightclick('JTreeTable', 'Xml~Prefix,17') select_menu(commonBits.fl('Edit Record')) select('JTreeTable', 'cell:Xml~Prefix,16(null)') select( 'Table', 'cell:' + commonBits.fl('Data') + ',4(R4180B-KEYCODE-DETAIL-ID)') select( 'Table', 'cell:' + commonBits.fl('Text') + ',4(R4180B-KEYCODE-DETAIL-ID)') assert_p('Table', 'Text', 'R4180B-KEYCODE-DETAIL-ID', commonBits.fl('Text') + ',4') select('Table', 'cell:' + commonBits.fl('Data') + ',7(X(03))') assert_p('Table', 'RowCount', '11') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',4(R4180B-KEYCODE)') assert_p('Table', 'Text', 'R4180B-KEYCODE', commonBits.fl('Data') + ',4') select('Table', 'cell:' + commonBits.fl('Text') + ',4(R4180B-KEYCODE)') select('Table', 'cell:' + commonBits.fl('Text') + ',4(R4180B-KEYCODE)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',4(R4180B-APN)') assert_p('Table', 'Text', 'R4180B-APN', commonBits.fl('Data') + ',4') select('Table', 'cell:' + commonBits.fl('Text') + ',4(R4180B-APN)') select('Table', 'cell:' + commonBits.fl('Text') + ',4(R4180B-APN)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',4(R4180B-UNIT-TYPE)') 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('*2') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.bin') select('FileChooser1', commonBits.cobolTestDir() + 'zzBsComp.bin') select('FileChooser2', commonBits.cobolTestDir() + 'mfComp.cbl') select('ComputerOptionCombo', 'Open Cobol Micro Focus (Intel)') select('ComputerOptionCombo1', 'Open Cobol bs2000 Little Endian (Intel)') ## select('BmKeyedComboBox1', '2') select('BmKeyedComboBox', 'Fixed Length Binary') ## select('BmKeyedComboBoxxxxx', '2') click('Right') select('TabbedPane', '') click('Copy2') ## assert_p('TextField1', 'Text', 'Copy Done !!! ') assert_p('TextField1', 'Text', 'Copy Done !!!, check log for errors') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') select('FileChooser', commonBits.cobolTestDir() + 'zzBsComp.bin') if commonBits.isRecordEditor(): select_menu('Record Layouts>>Load Cobol Copybook') select('FileChooser', commonBits.cobolTestDir() + 'bsComp.cbl') select('TextField', '') ## select('FileChooser', commonBits.cobolTestDir() + 'mfCmp.cbl') select('TextField', '') select('ComputerOptionCombo', 'Open Cobol Micro Focus (Intel)') ## select('BmKeyedComboBox1', '9') select('BmKeyedComboBox1', 'Other') ## click('Go') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.cbl') click('Go') select('FileChooser', commonBits.cobolTestDir() + 'bsComp.cbl') select('TextField', '') select('ComputerOptionCombo', 'Open Cobol bs2000 Little Endian (Intel)') ## select('BmKeyedComboBox1', '9') select('BmKeyedComboBox1', 'Other') click('Go') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') ## commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') # ----------------------------------------------------------------------------------- # Do Compare # ----------------------------------------------------------------------------------- commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu') click('*2') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.bin') commonBits.setCobolLayout(select, 'mfComp', 'Open Cobol Micro Focus (Intel)') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.cobolTestDir() + 'zzBsComp.bin') commonBits.setCobolLayout(select, 'bsComp', 'Open Cobol bs2000 Little Endian (Intel)') click('Right') select('TabbedPane', '') select('Table', 'cell:Equivalent Record,0(-1)') select('Table', 'bsComp', 'Equivalent Record,0') select('Table', 'cell:Equivalent Record,0(0)') select('Table1', 'cell:Field,2(Num0)') assert_p( 'Table1', 'Content', '[[NumA, NumA], [sep0, sep0], [Num0, Num0], [sep1, sep1], [Num1, Num1], [sep2, sep2], [Num2, Num2], [sep3, sep3], [Num3, Num3], [sep4, sep4], [Num4, Num4], [sep5, sep5], [Num5, Num5], [sep6, sep6], [Num6, Num6], [sep7, sep7], [Num7, Num7], [sep8, sep8], [Num8, Num8], [sep9, sep9], [Num9, Num9], [sep10, sep10], [Num10, Num10], [sep11, sep11], [Num11, Num11], [sep12, sep12], [Num12, Num12], [sep13, sep13], [Num13, Num13], [sep14, sep14], [Num14, Num14], [sep15, sep15], [Num15, Num15], [sep16, sep16], [Num16, Num16], [sep17, sep17], [Num17, Num17]]' ) ## select('Table1', '') select('Table', 'cell:Record,0(mfComp)') select('Table', 'cell:Record,0(mfComp)') doubleclick('Table', 'Record,0') assert_p('Table', 'Content', '[[mfComp, bsComp]]') select('Table', 'cell:Record,0(mfComp)') click('Right') select('TabbedPane', '') click('Compare') ## assert_p('TextPane', 'Text', 'Files are Identical !!!') assert_p('TextPane', 'Text', '') # -------------------------------------------------------------------- # --- Check in editor #--------------------------------------------------------------------- click('Open') select('FileChooser', commonBits.cobolTestDir() + 'zzBsComp.bin') commonBits.setCobolLayout(select, 'bsComp', 'Open Cobol bs2000 Little Endian (Intel)') commonBits.doEdit(click) select('Table', 'cell:30 - 2|Num1,5(-123.45)') assert_p('Table', 'Text', '-19.63', '30 - 2|Num1,6') select('Table', 'cell:30 - 2|Num1,9(166.19)') assert_p('Table', 'RowCount', '40') select('Table', 'cell:30 - 2|Num1,11(50.99)') ## assert_p('Table', 'Content', '[[1.23, ;, 1, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [23.45, ;, 23, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45], [-23.45, ;, -23, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, 23.45], [123.45, ;, 123, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45], [-123.45, ;, -123, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, 123.45], [4567.89, ;, -41, ;, -19.63, ;, -19.63, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89], [-4567.89, ;, 41, ;, 19.63, ;, 19.63, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, 4567.89], [34567.89, ;, 7, ;, -166.19, ;, -166.19, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89], [-34567.89, ;, -7, ;, 166.19, ;, 166.19, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, 34567.89], [234567.89, ;, 71, ;, -50.99, ;, -50.99, ;, 66795.73, ;, 66795.73, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 66795.73], [-234567.89, ;, -71, ;, 50.99, ;, 50.99, ;, -66795.73, ;, -66795.73, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, 66795.73], [91234567.89, ;, 7, ;, -63.79, ;, -63.79, ;, -33487.15, ;, -33487.15, ;, 5335221.97, ;, 5335221.97, ;, 5335221.97, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, -33487.15], [-91234567.89, ;, -7, ;, 63.79, ;, 63.79, ;, 33487.15, ;, 33487.15, ;, -5335221.97, ;, -5335221.97, ;, -5335221.97, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -33487.15], [987654321.12, ;, -79, ;, -68.64, ;, -68.64, ;, -20384.80, ;, -20384.80, ;, -188156.96, ;, -188156.96, ;, -188156.96, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, -20384.80], [-987654321.12, ;, 79, ;, 68.64, ;, 68.64, ;, 20384.80, ;, 20384.80, ;, 188156.96, ;, 188156.96, ;, 188156.96, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -20384.80], [1987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, 57541.60, ;, 57541.60, ;, 11969364.96, ;, 11969364.96, ;, 11969364.96, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 57541.60], [-1987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, -57541.60, ;, -57541.60, ;, -11969364.96, ;, -11969364.96, ;, -11969364.96, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, 57541.60], [21987654321.12, ;, -79, ;, -48.16, ;, -48.16, ;, -61652.00, ;, -61652.00, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, -61652.00], [-21987654321.12, ;, 79, ;, 48.16, ;, 48.16, ;, 61652.00, ;, 61652.00, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -61652.00], [321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -4062.24, ;, -4062.24, ;, -6043860.00, ;, -6043860.00, ;, -6043860.00, ;, 3129282266.08, ;, 3129282266.08, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, -4062.24], [-321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 4062.24, ;, 4062.24, ;, 6043860.00, ;, 6043860.00, ;, 6043860.00, ;, -3129282266.08, ;, -3129282266.08, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -4062.24], [4321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -19135.52, ;, -19135.52, ;, 5014029.28, ;, 5014029.28, ;, 5014029.28, ;, 906957161.44, ;, 906957161.44, ;, -1307511879892.00, ;, -1307511879892.00, ;, -1307511879892.00, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, -19135.52], [-4321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 19135.52, ;, 19135.52, ;, -5014029.28, ;, -5014029.28, ;, -5014029.28, ;, -906957161.44, ;, -906957161.44, ;, 1307511879892.00, ;, 1307511879892.00, ;, 1307511879892.00, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -19135.52], [54321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, -39779.36, ;, -39779.36, ;, 14388626.40, ;, 14388626.40, ;, 14388626.40, ;, -4881874091.04, ;, -4881874091.04, ;, 841742079296.48, ;, 841742079296.48, ;, 841742079296.48, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, -39779.36], [-54321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, 39779.36, ;, 39779.36, ;, -14388626.40, ;, -14388626.40, ;, -14388626.40, ;, 4881874091.04, ;, 4881874091.04, ;, -841742079296.48, ;, -841742079296.48, ;, -841742079296.48, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -39779.36], [654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 48038.88, ;, 48038.88, ;, -1965227.04, ;, -1965227.04, ;, -1965227.04, ;, 2617964823.52, ;, 2617964823.52, ;, 1300041685599.20, ;, 1300041685599.20, ;, 1300041685599.20, ;, -66253952724958.24, ;, -66253952724958.24, ;, 654321987654321.12, ;, 654321987654321.12, ;, 48038.88], [-654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -48038.88, ;, -48038.88, ;, 1965227.04, ;, 1965227.04, ;, 1965227.04, ;, -2617964823.52, ;, -2617964823.52, ;, -1300041685599.20, ;, -1300041685599.20, ;, -1300041685599.20, ;, 66253952724958.24, ;, 66253952724958.24, ;, -654321987654321.12, ;, -654321987654321.12, ;, 48038.88], [7654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 10028.00, ;, 10028.00, ;, -20961492.00, ;, -20961492.00, ;, -20961492.00, ;, -5174922247.20, ;, -5174922247.20, ;, 1017370891584.48, ;, 1017370891584.48, ;, 1017370891584.48, ;, -272013356517751.84, ;, -272013356517751.84, ;, 7654321987654321.12, ;, 7654321987654321.12, ;, 10028.00], [-7654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -10028.00, ;, -10028.00, ;, 20961492.00, ;, 20961492.00, ;, 20961492.00, ;, 5174922247.20, ;, 5174922247.20, ;, -1017370891584.48, ;, -1017370891584.48, ;, -1017370891584.48, ;, 272013356517751.84, ;, 272013356517751.84, ;, -7654321987654321.12, ;, -7654321987654321.12, ;, 10028.00], [-1.21, ;, -1, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, 1.21], [-1.22, ;, -1, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, 1.22], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [-1.24, ;, -1, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, 1.24], [-1.25, ;, -1, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, 1.25], [-1.26, ;, -1, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, 1.26], [-1.27, ;, -1, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, 1.27], [-1.28, ;, -1, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, 1.28], [-1.29, ;, -1, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, 1.29], [-1.20, ;, -1, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, 1.20]]') assert_p( 'Table', 'Content', '[[1.23, ;, 1, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [23.45, ;, 23, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45], [-23.45, ;, -23, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, 23.45], [123.45, ;, 123, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45], [-123.45, ;, -123, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, 123.45], [4567.89, ;, -41, ;, -19.63, ;, -19.63, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89], [-4567.89, ;, 41, ;, 19.63, ;, 19.63, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, 4567.89], [34567.89, ;, 7, ;, -166.19, ;, -166.19, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89], [-34567.89, ;, -7, ;, 166.19, ;, 166.19, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, 34567.89], [234567.89, ;, 71, ;, -50.99, ;, -50.99, ;, 66795.73, ;, 66795.73, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 66795.73], [-234567.89, ;, -71, ;, 50.99, ;, 50.99, ;, -66795.73, ;, -66795.73, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, 66795.73], [91234567.89, ;, 7, ;, -63.79, ;, -63.79, ;, -33487.15, ;, -33487.15, ;, 5335221.97, ;, 5335221.97, ;, 5335221.97, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 0.00], [-91234567.89, ;, -7, ;, 63.79, ;, 63.79, ;, 33487.15, ;, 33487.15, ;, -5335221.97, ;, -5335221.97, ;, -5335221.97, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, 0.00], [987654321.12, ;, -79, ;, -68.64, ;, -68.64, ;, -20384.80, ;, -20384.80, ;, -188156.96, ;, -188156.96, ;, -188156.96, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 0.00], [-987654321.12, ;, 79, ;, 68.64, ;, 68.64, ;, 20384.80, ;, 20384.80, ;, 188156.96, ;, 188156.96, ;, 188156.96, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, 0.00], [1987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, 57541.60, ;, 57541.60, ;, 11969364.96, ;, 11969364.96, ;, 11969364.96, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 57541.60], [-1987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, -57541.60, ;, -57541.60, ;, -11969364.96, ;, -11969364.96, ;, -11969364.96, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, 57541.60], [21987654321.12, ;, -79, ;, -48.16, ;, -48.16, ;, -61652.00, ;, -61652.00, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 0.00], [-21987654321.12, ;, 79, ;, 48.16, ;, 48.16, ;, 61652.00, ;, 61652.00, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, 0.00], [321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -4062.24, ;, -4062.24, ;, -6043860.00, ;, -6043860.00, ;, -6043860.00, ;, 3129282266.08, ;, 3129282266.08, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 0.00], [-321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 4062.24, ;, 4062.24, ;, 6043860.00, ;, 6043860.00, ;, 6043860.00, ;, -3129282266.08, ;, -3129282266.08, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, 0.00], [4321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -19135.52, ;, -19135.52, ;, 5014029.28, ;, 5014029.28, ;, 5014029.28, ;, 906957161.44, ;, 906957161.44, ;, -1307511879892.00, ;, -1307511879892.00, ;, -1307511879892.00, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 0.00], [-4321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 19135.52, ;, 19135.52, ;, -5014029.28, ;, -5014029.28, ;, -5014029.28, ;, -906957161.44, ;, -906957161.44, ;, 1307511879892.00, ;, 1307511879892.00, ;, 1307511879892.00, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, 0.00], [54321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, -39779.36, ;, -39779.36, ;, 14388626.40, ;, 14388626.40, ;, 14388626.40, ;, -4881874091.04, ;, -4881874091.04, ;, 841742079296.48, ;, 841742079296.48, ;, 841742079296.48, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 0.00], [-54321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, 39779.36, ;, 39779.36, ;, -14388626.40, ;, -14388626.40, ;, -14388626.40, ;, 4881874091.04, ;, 4881874091.04, ;, -841742079296.48, ;, -841742079296.48, ;, -841742079296.48, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, 0.00], [654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 48038.88, ;, 48038.88, ;, -1965227.04, ;, -1965227.04, ;, -1965227.04, ;, 2617964823.52, ;, 2617964823.52, ;, 1300041685599.20, ;, 1300041685599.20, ;, 1300041685599.20, ;, -66253952724958.24, ;, -66253952724958.24, ;, 654321987654321.12, ;, 654321987654321.12, ;, 48038.88], [-654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -48038.88, ;, -48038.88, ;, 1965227.04, ;, 1965227.04, ;, 1965227.04, ;, -2617964823.52, ;, -2617964823.52, ;, -1300041685599.20, ;, -1300041685599.20, ;, -1300041685599.20, ;, 66253952724958.24, ;, 66253952724958.24, ;, -654321987654321.12, ;, -654321987654321.12, ;, 48038.88], [7654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 10028.00, ;, 10028.00, ;, -20961492.00, ;, -20961492.00, ;, -20961492.00, ;, -5174922247.20, ;, -5174922247.20, ;, 1017370891584.48, ;, 1017370891584.48, ;, 1017370891584.48, ;, -272013356517751.84, ;, -272013356517751.84, ;, 7654321987654321.12, ;, 7654321987654321.12, ;, 10028.00], [-7654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -10028.00, ;, -10028.00, ;, 20961492.00, ;, 20961492.00, ;, 20961492.00, ;, 5174922247.20, ;, 5174922247.20, ;, -1017370891584.48, ;, -1017370891584.48, ;, -1017370891584.48, ;, 272013356517751.84, ;, 272013356517751.84, ;, -7654321987654321.12, ;, -7654321987654321.12, ;, 10028.00], [-1.21, ;, -1, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, 1.21], [-1.22, ;, -1, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, 1.22], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [-1.24, ;, -1, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, 1.24], [-1.25, ;, -1, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, 1.25], [-1.26, ;, -1, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, 1.26], [-1.27, ;, -1, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, 1.27], [-1.28, ;, -1, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, 1.28], [-1.29, ;, -1, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, 1.29], [-1.20, ;, -1, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, 1.20]]' ) select( 'Table', 'rows:[19,20,21,22,23,24,25,26,27,28,29],columns:[1 - 25|NumA]') select_menu('View>>Table View #{Selected Records#}') ## select('Table2', 'rows:[19,20,21,22,23,24,25,26,27,28,29],columns:[1 - 25|NumA]') select('Table', 'cell:30 - 2|Num1,3(-130.08)') ## assert_p('Table', 'Content', '[[-21987654321.12, ;, 79, ;, 48.16, ;, 48.16, ;, 61652.00, ;, 61652.00, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -61652.00], [321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -4062.24, ;, -4062.24, ;, -6043860.00, ;, -6043860.00, ;, -6043860.00, ;, 3129282266.08, ;, 3129282266.08, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, -4062.24], [-321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 4062.24, ;, 4062.24, ;, 6043860.00, ;, 6043860.00, ;, 6043860.00, ;, -3129282266.08, ;, -3129282266.08, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -4062.24], [4321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -19135.52, ;, -19135.52, ;, 5014029.28, ;, 5014029.28, ;, 5014029.28, ;, 906957161.44, ;, 906957161.44, ;, -1307511879892.00, ;, -1307511879892.00, ;, -1307511879892.00, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, -19135.52], [-4321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 19135.52, ;, 19135.52, ;, -5014029.28, ;, -5014029.28, ;, -5014029.28, ;, -906957161.44, ;, -906957161.44, ;, 1307511879892.00, ;, 1307511879892.00, ;, 1307511879892.00, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -19135.52], [54321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, -39779.36, ;, -39779.36, ;, 14388626.40, ;, 14388626.40, ;, 14388626.40, ;, -4881874091.04, ;, -4881874091.04, ;, 841742079296.48, ;, 841742079296.48, ;, 841742079296.48, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, -39779.36], [-54321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, 39779.36, ;, 39779.36, ;, -14388626.40, ;, -14388626.40, ;, -14388626.40, ;, 4881874091.04, ;, 4881874091.04, ;, -841742079296.48, ;, -841742079296.48, ;, -841742079296.48, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -39779.36], [654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 48038.88, ;, 48038.88, ;, -1965227.04, ;, -1965227.04, ;, -1965227.04, ;, 2617964823.52, ;, 2617964823.52, ;, 1300041685599.20, ;, 1300041685599.20, ;, 1300041685599.20, ;, -66253952724958.24, ;, -66253952724958.24, ;, 654321987654321.12, ;, 654321987654321.12, ;, 48038.88], [-654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -48038.88, ;, -48038.88, ;, 1965227.04, ;, 1965227.04, ;, 1965227.04, ;, -2617964823.52, ;, -2617964823.52, ;, -1300041685599.20, ;, -1300041685599.20, ;, -1300041685599.20, ;, 66253952724958.24, ;, 66253952724958.24, ;, -654321987654321.12, ;, -654321987654321.12, ;, 48038.88], [7654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 10028.00, ;, 10028.00, ;, -20961492.00, ;, -20961492.00, ;, -20961492.00, ;, -5174922247.20, ;, -5174922247.20, ;, 1017370891584.48, ;, 1017370891584.48, ;, 1017370891584.48, ;, -272013356517751.84, ;, -272013356517751.84, ;, 7654321987654321.12, ;, 7654321987654321.12, ;, 10028.00], [-7654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -10028.00, ;, -10028.00, ;, 20961492.00, ;, 20961492.00, ;, 20961492.00, ;, 5174922247.20, ;, 5174922247.20, ;, -1017370891584.48, ;, -1017370891584.48, ;, -1017370891584.48, ;, 272013356517751.84, ;, 272013356517751.84, ;, -7654321987654321.12, ;, -7654321987654321.12, ;, 10028.00]]') assert_p( 'Table', 'Content', '[[-21987654321.12, ;, 79, ;, 48.16, ;, 48.16, ;, 61652.00, ;, 61652.00, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, 0.00], [321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -4062.24, ;, -4062.24, ;, -6043860.00, ;, -6043860.00, ;, -6043860.00, ;, 3129282266.08, ;, 3129282266.08, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 0.00], [-321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 4062.24, ;, 4062.24, ;, 6043860.00, ;, 6043860.00, ;, 6043860.00, ;, -3129282266.08, ;, -3129282266.08, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, 0.00], [4321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -19135.52, ;, -19135.52, ;, 5014029.28, ;, 5014029.28, ;, 5014029.28, ;, 906957161.44, ;, 906957161.44, ;, -1307511879892.00, ;, -1307511879892.00, ;, -1307511879892.00, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 0.00], [-4321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 19135.52, ;, 19135.52, ;, -5014029.28, ;, -5014029.28, ;, -5014029.28, ;, -906957161.44, ;, -906957161.44, ;, 1307511879892.00, ;, 1307511879892.00, ;, 1307511879892.00, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, 0.00], [54321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, -39779.36, ;, -39779.36, ;, 14388626.40, ;, 14388626.40, ;, 14388626.40, ;, -4881874091.04, ;, -4881874091.04, ;, 841742079296.48, ;, 841742079296.48, ;, 841742079296.48, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 0.00], [-54321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, 39779.36, ;, 39779.36, ;, -14388626.40, ;, -14388626.40, ;, -14388626.40, ;, 4881874091.04, ;, 4881874091.04, ;, -841742079296.48, ;, -841742079296.48, ;, -841742079296.48, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, 0.00], [654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 48038.88, ;, 48038.88, ;, -1965227.04, ;, -1965227.04, ;, -1965227.04, ;, 2617964823.52, ;, 2617964823.52, ;, 1300041685599.20, ;, 1300041685599.20, ;, 1300041685599.20, ;, -66253952724958.24, ;, -66253952724958.24, ;, 654321987654321.12, ;, 654321987654321.12, ;, 48038.88], [-654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -48038.88, ;, -48038.88, ;, 1965227.04, ;, 1965227.04, ;, 1965227.04, ;, -2617964823.52, ;, -2617964823.52, ;, -1300041685599.20, ;, -1300041685599.20, ;, -1300041685599.20, ;, 66253952724958.24, ;, 66253952724958.24, ;, -654321987654321.12, ;, -654321987654321.12, ;, 48038.88], [7654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 10028.00, ;, 10028.00, ;, -20961492.00, ;, -20961492.00, ;, -20961492.00, ;, -5174922247.20, ;, -5174922247.20, ;, 1017370891584.48, ;, 1017370891584.48, ;, 1017370891584.48, ;, -272013356517751.84, ;, -272013356517751.84, ;, 7654321987654321.12, ;, 7654321987654321.12, ;, 10028.00], [-7654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -10028.00, ;, -10028.00, ;, 20961492.00, ;, 20961492.00, ;, 20961492.00, ;, 5174922247.20, ;, 5174922247.20, ;, -1017370891584.48, ;, -1017370891584.48, ;, -1017370891584.48, ;, 272013356517751.84, ;, 272013356517751.84, ;, -7654321987654321.12, ;, -7654321987654321.12, ;, 10028.00]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select( 'FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'IVM0034_Map.XML') commonBits.doEdit(click) ## select('JTreeTable', '') rightclick('JTreeTable', commonBits.fl('Tree') + ',1') select_menu(commonBits.fl('Expand Tree')) click('ScrollPane$ScrollBar', 5, 65) # select('JTreeTable', '') rightclick('JTreeTable', 'id,3') select_menu(commonBits.fl('Edit Record')) # select('Table', '') rightclick('Table', commonBits.fl('Data') + ',4') select_menu(commonBits.fl('Hide Column')) assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [ATTRB, 9, , (ASKIP,BRT), (ASKIP,BRT)], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',5') select_menu(commonBits.fl('Hide Column')) ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',5') select_menu(commonBits.fl('Hide Column')) assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') select('Table', 'cell:' + commonBits.fl('Data') + ',4(23)') select('Table', 'cell:' + commonBits.fl('Data') + ',4(23)') rightclick('Table', commonBits.fl('Data') + ',4') select_menu(commonBits.fl('Show Field Fields') + '>>INITIAL') assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',6') select_menu(commonBits.fl('Show Field Fields') + '>>ATTRB') assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [ATTRB, 9, , (ASKIP,BRT), (ASKIP,BRT)], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',3') select_menu(commonBits.fl('Show Field Fields') + '>>Col') assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [Col, 6, , 26, 26], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [ATTRB, 9, , (ASKIP,BRT), (ASKIP,BRT)], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select_menu('Record Layouts>>Load Copybook') select('FileChooser', commonBits.xmlCopybookDir() + 'zFixedWidth_ams_Store.Xml') click('Go') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') select('FileChooser', commonBits.sampleDir() + 'FixedWidth_Ams_Store.txt') click('Reload from DB') select('ComboBox2', 'zFixedWidth_ams_Store') commonBits.doEdit(click) select( 'Table', 'rows:[3,4,5,6,7,8,9,10,11],columns:[1 - 3|Brand Id,4 - 4|Loc Nbr]' ) select_menu('View>>Table View #{Selected Records#}') ## select('Table2', 'rows:[4,5,6,7,8,9,10,11],columns:[1 - 3|Brand Id,4 - 4|Loc Nbr]') select('Table', 'cell:10 - 35|Loc Name,3(Rockdale)') assert_p( 'Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, NSW, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5035, ST, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany, 2019, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW, A], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5055, ST, Leichhardt, Marketown, Marion Street, Leichhardt, 2040, NSW, A], [TAR, 5060, ST, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s, 2760, NSW, A]]' ) select('Table', 'cell:10 - 35|Loc Name,3(Rockdale)') select('LayoutCombo', 'Full Line') assert_p( 'Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA], [TAR5055STLeichhardt Marketown Marion Street Leichhardt 2040 NSWA], [TAR5060STSt Marys St. Mary\'s Charles Hackett Drive St Mary\'s 2760 NSWA]]' ) select('LayoutCombo', 'Hex 1 Line') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),0([B@1145e2e)' ) ## assert_p('Table', 'Text', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),0([B@1145e2e)') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),1([B@e0de15)' ) assert_p( 'Table', 'Text', '544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),2' ) select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),2([B@11addf0)' ) assert_p( 'Table', 'Text', '544152353033355354526f636b64616c652020202020202020202020202020202020202020202020202020204275696c64696e6720422c2020506f72747369646520444320202020202020202020202020202020322d38204d632050686572736f6e2053747265657420202020202020202020202020202020202020426f74616e792020202020202020202020202020202020202020202020202020202020323031392020202020204e535741', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),3' ) select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),2([B@11addf0)' ) ## assert_p('Table', 'Text', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),2([B@11addf0)') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (1 Line),2([B@11addf0)' ) select('LayoutCombo', 'Hex 2 Lines (Mainframe Style)') assert_p( 'Table', 'Text', '''T A R 5 0 1 5 S T B a n k s t o w n B a n k s t o w n U n i t 2 , 3 9 - 4 1 A l l i n g h a m S t r e e t C o n d e l l P a r k 2 2 0 0 N S W A 54415235303135535442616e6b73746f776e202020202020202020202020202020202020202020202020202042616e6b73746f776e20202020202020202020202020202020202020202020202020202020202020556e697420322c2033392d343120416c6c696e6768616d2053747265657420202020202020202020436f6e64656c6c205061726b2020202020202020202020202020202020202020202020323230302020202020204e535741''', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),0' ) ###T A R 5 0 1 5 S T B a n k s t o w n B a n k s t o w n U n i t 2 , 3 9 - 4 1 A l l i n g h a m S t r e e t C o n d e l l P a r k 2 2 0 0 N S W ###54415235303135535442616e6b73746f776e202020202020202020202020202020202020202020202020202042616e6b73746f776e20202020202020202020202020202020202020202020202020202020202020556e697420322c2033392d343120416c6c696e6768616d2053747265657420202020202020202020436f6e64656c6c205061726b2020202020202020202020202020202020202020202020323230302020202020204e535741''', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),0') assert_p('Table', 'Text', '') assert_p('Table', 'Text', '') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),3([B@12e84f4)' ) assert_p( 'Table', 'Text', '''T A R 5 0 3 5 S T R o c k d a l e B u i l d i n g B , P o r t s i d e D C 2 - 8 M c P h e r s o n S t r e e t B o t a n y 2 0 1 9 N S W A 544152353033355354526f636b64616c652020202020202020202020202020202020202020202020202020204275696c64696e6720422c2020506f72747369646520444320202020202020202020202020202020322d38204d632050686572736f6e2053747265657420202020202020202020202020202020202020426f74616e792020202020202020202020202020202020202020202020202020202020323031392020202020204e535741''', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),3' ) ###T A R 5 0 3 5 S T R o c k d a l e B u i l d i n g B , P o r t s i d e D C 2 - 8 M c P h e r s o n S t r e e t B o t a n y 2 0 1 9 N S W ###544152353033355354526f636b64616c652020202020202020202020202020202020202020202020202020204275696c64696e6720422c2020506f72747369646520444320202020202020202020202020202020322d38204d632050686572736f6e2053747265657420202020202020202020202020202020202020426f74616e792020202020202020202020202020202020202020202020202020202020323031392020202020204e535741''', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),3') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),4([B@3b1633)' ) ## assert_p('Table', 'Text', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),4([B@3b1633)') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),5([B@843edc)' ) ## assert_p('Table', 'Text', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),5([B@843edc)') ## select('Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (2 Lines),5([B@843edc)') select('LayoutCombo', 'Hex 3 Lines (ISPF Edit Hex)') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),3([B@12e84f4)' ) assert_p( 'Table', 'Text', '''TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA 54533335556666666222222222222222222222222222476666662422256777666244222222222222222232324625667766257766722222222222222222224676672222222222222222222222222222233332222224554 4125035342f3b41c5000000000000000000000000000259c49e702c000f24394504300000000000000002d80d3008523fe034255400000000000000000002f41e9000000000000000000000000000002019000000e371''', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),3' ) select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),4([B@3b1633)' ) ## assert_p('Table', 'Text', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),4([B@3b1633)') select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),5([B@843edc)' ) assert_p( 'Table', 'Text', '''TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA 54533335546777666222222222222222222222222222467676662466767625676776222222222222222233246667762566662222222222222222222222224676766622222222222222222222222222233332222224554 41250523451347ff4000000000000000000000000000d1219fe70f663945025352650000000000000000110d5c933100c135000000000000000000000000d1219fe70000000000000000000000000002148000000e371''', ' + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),5' ) select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),3([B@12e84f4)' ) select( 'Table', 'cell: + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18|Hex (SPF Edit Style),3([B@12e84f4)' ) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml') commonBits.doEdit(click) select('JTreeTable', 'cell:Xml~Text,4(null)') rightclick('JTreeTable', 'Xml~Text,4') select_menu('Expand Tree') select('JTreeTable', 'cell:Xml~Text,6(null)') rightclick('JTreeTable', 'Xml~Text,6') select_menu('Copy Record#{s#}') select('JTreeTable', 'cell:Xml~Text,6(null)') select('LayoutCombo', 'item') select('JTreeTable', 'cell:Xml~Prefix,0(null)') rightclick('JTreeTable', 'Xml~Prefix,0') select_menu('Paste Record#{s#} Prior') select('JTreeTable', 'cell:name,0(Location-Details)') assert_p('JTreeTable', 'Text', '', 'name,1') select('JTreeTable', 'cell:level,0(03)') assert_p('JTreeTable', 'Content', '[[, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ]]') select('JTreeTable', 'cell:level,0(03)') select_menu('View>>Table View #{Selected Records#}') ## select('JTreeTable', 'cell:level,0(03)') select('Table', 'cell:7|name,1(Location-Number)') assert_p('Table', 'Text', 'Location-Number', '7|name,1') select('Table', 'cell:7|name,2(Location-Type)') assert_p('Table', 'Content', '[[item, , , 41, 03, Location-Details, 4, 41, , , , ], [item, , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [item, , , 2, 05, Location-Type, 8, 2, XX, , True, ], [item, , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [/item, , , , , , , , , , , ]]') select('Table', 'cell:7|name,0(Location-Details)') assert_p('Table', 'RowCount', '5') select('Table', 'cell:7|name,0(Location-Details)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('JTreeTable', 'cell:Xml~Prefix,1(null)') rightclick('JTreeTable', 'Xml~Prefix,1') select_menu('Paste Record#{s#}') select('JTreeTable', 'cell:name,2(Location-Details)') assert_p('JTreeTable', 'Text', 'Location-Details', 'name,2') select('JTreeTable', 'cell:level,2(03)') assert_p('JTreeTable', 'Content', '[[, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , , , 41, 03, Location-Details, 4, 41, , , , ]]') select('JTreeTable', 'cell:display-length,2(41)') assert_p('JTreeTable', 'RowCount', '3') select('JTreeTable', 'cell:display-length,2(41)') select_menu('View>>Table View #{Selected Records#}') select('JTreeTable', 'cell:display-length,2(41)') select('Table', 'cell:7|name,1(Location-Number)') assert_p('Table', 'Text', 'Location-Number', '7|name,1') select('Table', 'cell:7|name,2(Location-Type)') assert_p('Table', 'Content', '[[item, , , 41, 03, Location-Details, 4, 41, , , , ], [item, , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [item, , , 2, 05, Location-Type, 8, 2, XX, , True, ], [item, , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [/item, , , , , , , , , , , ]]') select('Table', 'cell:7|name,0(Location-Details)') assert_p('Table', 'RowCount', '5') select('Table', 'cell:7|name,0(Location-Details)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') if window('Save Changes to file: ' + commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml'): click('No') close() 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') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'XfeReverseDTAR020.txt') ## select('ComboBox1', 'Other') ## select('ComboBox2', 'XfeDTAR020_reverse') commonBits.setRecordLayout(select, 'XfeDTAR020_reverse') click('Right') select('TabbedPane', '') select('Table1', 'cell:Field,3(DEPT-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:Record,0(DTAR020)') select('Table', 'cell:Record,0(DTAR020)') assert_p('Table', 'Content', '[[DTAR020, XfeDTAR020_reverse]]') # assert_p('Table', 'Content', '[[DTAR020, ]]') select('Table', 'cell:Record,0(DTAR020)') click('Right') select('TabbedPane', '') click('Copy2') assert_p('TextField1', 'Text', 'Copy Done !!! ') click('Open') select('FileChooser', commonBits.sampleDir() + 'XfeReverseDTAR020.txt') ## select('ComboBox2', 'XML - Build Layout') commonBits.setRecordLayout(select, 'XfeDTAR020_reverse') ## select('ComboBox2', 'XfeDTAR020_reverse') commonBits.doEdit(click) select('Table', 'cell:2|SALE-PRICE,0(19.00)') assert_p('Table', 'Text', '19.00', '2|SALE-PRICE,0') select('Table', 'cell:2|SALE-PRICE,1(-19.00)') assert_p('Table', 'RowCount', '379') select('Table', 'cell:2|SALE-PRICE,3(19.00)') assert_p( 'Table', 'Content', '[[1, 19.00, 280, 40118, 20, 69684558], [-1, -19.00, 280, 40118, 20, 69684558], [1, 5.01, 280, 40118, 20, 69684558], [1, 19.00, 280, 40118, 20, 69694158], [-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], [1, 3.99, 620, 40118, 59, 60664659], [1, 9.99, 957, 40118, 59, 62684217], [1, 3.99, 929, 40118, 59, 67674686], [1, 12.99, 335, 40118, 59, 61684613], [1, 2.59, 957, 40118, 59, 64624770], [1, 2.50, 360, 40118, 166, 69694814], [1, 2.50, 360, 40118, 166, 69694814], [1, 21.59, 193, 40118, 166, 69644164], [1, 13.99, 375, 40118, 166, 62684907], [1, 13.99, 375, 40118, 166, 62694193], [-1, -13.99, 375, 40118, 166, 62694193], [1, 11.99, 375, 40118, 166, 62694193], [1, 13.99, 320, 40118, 166, 63654450], [1, 9.72, 320, 40118, 166, 62664576], [1, 5.59, 320, 40118, 166, 63634260], [1, 14.99, 440, 40118, 166, 64684534], [1, 19.99, 235, 40118, 166, 64674965], [-1, -19.99, 235, 40118, 166, 64674965], [1, 12.00, 235, 40118, 166, 64674965], [1, 12.00, 261, 40118, 166, 60624523], [1, 3.49, 957, 40118, 166, 66624253], [1, 3.49, 957, 40118, 166, 66624253], [1, 3.99, 957, 40118, 166, 64654284], [1, 5.50, 805, 40118, 166, 60684907], [1, 10.99, 870, 40118, 166, 63624299], [1, 11.19, 870, 40118, 166, 63624367], [1, 14.99, 475, 40118, 166, 62694575], [1, 6.99, 905, 40118, 166, 69614011], [1, 9.99, 650, 40118, 166, 62634996], [1, 24.99, 970, 40118, 166, 67634503], [1, 19.95, 830, 40118, 166, 65604476], [1, 16.99, 851, 40118, 166, 62694170], [1, 1.98, 410, 40118, 166, 63684098], [1, 1.98, 410, 40118, 166, 63684098], [1, 1.98, 410, 40118, 166, 63684098], [1, 29.99, 485, 40118, 166, 64674609], [1, 14.99, 366, 40118, 166, 62614014], [1, 9.06, 432, 40118, 166, 61694741], [1, 9.09, 432, 40118, 166, 62614534], [1, 29.62, 801, 40118, 166, 64604876], [1, 1.99, 957, 40118, 166, 66624829], [1, 13.59, 193, 40118, 166, 62694843], [1, 19.00, 265, 40118, 166, 62684580], [1, 3.29, 957, 40118, 166, 62664909], [1, 1.99, 957, 40118, 166, 62674751], [1, 1.49, 957, 40118, 166, 62674492], [1, 1.49, 957, 40118, 166, 62674492], [1, 13.59, 193, 40118, 166, 62694706], [1, 19.00, 265, 40118, 166, 69644602], [1, 12.00, 270, 40118, 166, 63634768], [1, 19.00, 265, 40118, 166, 62684207], [1, 9.60, 230, 40118, 166, 69644961], [1, 29.95, 250, 40118, 166, 69604743], [1, 3.89, 929, 40118, 166, 63634081], [1, 15.95, 902, 40118, 166, 69614229], [1, 5.95, 845, 40118, 166, 62654454], [1, 3.90, 845, 40118, 166, 64634712], [1, 15.99, 851, 40118, 166, 62674092], [1, 0.89, 929, 40118, 166, 67664966], [1, 0.89, 929, 40118, 166, 67664966], [1, 15.99, 220, 40118, 166, 64674633], [1, 26.24, 280, 40118, 166, 64624081], [1, 10.49, 910, 40118, 166, 69674069], [1, 29.99, 520, 40118, 166, 62684028], [1, 29.62, 801, 40118, 166, 64604876], [1, 12.50, 902, 40118, 166, 68644966], [-1, -12.50, 902, 40118, 166, 68644966], [1, 0.01, 902, 40118, 166, 68644966], [1, 8.99, 370, 40118, 166, 62664347], [1, 8.99, 370, 40118, 166, 62664231], [1, 25.00, 261, 40118, 166, 62694605], [1, 19.00, 261, 40118, 166, 69634922], [1, 11.49, 904, 40118, 166, 63694928], [1, 8.99, 500, 40118, 166, 60624185], [1, 8.99, 500, 40118, 166, 60624314], [1, 11.99, 270, 40118, 166, 69694959], [1, 18.19, 80, 40118, 166, 69624033], [1, 17.56, 193, 40118, 166, 62694485], [1, 6.00, 60, 40118, 166, 60614646], [1, 24.99, 275, 40118, 166, 63654066], [1, 39.99, 415, 40118, 166, 62684548], [1, 39.99, 415, 40118, 166, 62684548], [1, 6.99, 360, 40118, 166, 69694685], [1, 27.99, 395, 40118, 166, 63614741], [1, 9.00, 270, 40118, 166, 60664302], [1, 9.00, 270, 40118, 166, 60664241], [1, 4.50, 360, 40118, 166, 66674979], [1, 11.89, 355, 40118, 166, 62634862], [1, 7.99, 335, 40118, 166, 62604139], [1, 18.98, 370, 40118, 166, 62624382], [-1, -18.98, 370, 40118, 166, 62624382], [1, 2.50, 360, 40118, 166, 69694937], [1, 18.98, 370, 40118, 166, 62624382], [1, 18.98, 370, 40118, 166, 62624382], [-1, -18.98, 370, 40118, 166, 62624382], [-1, -18.98, 370, 40118, 166, 62624382], [1, 18.98, 370, 40118, 166, 62624382], [1, 18.98, 370, 40118, 166, 62624382], [1, 4.49, 685, 40118, 166, 61684889], [1, 3.99, 370, 40118, 166, 68614651], [1, 24.99, 471, 40118, 166, 62664674], [1, 4.49, 685, 40118, 166, 61684889], [1, 0.65, 929, 40118, 166, 60694417], [1, 0.59, 929, 40118, 166, 65694328], [1, 16.99, 320, 40118, 166, 63684449], [1, 20.00, 405, 40118, 166, 62614815], [1, 25.00, 455, 40118, 166, 62664151], [1, 9.99, 410, 40118, 166, 64684719], [1, 6.00, 60, 40118, 166, 69654084], [1, 5.08, 60, 40118, 166, 69644897], [1, 5.08, 60, 40118, 166, 68654655], [1, 5.99, 170, 40118, 166, 68674560], [1, 7.99, 432, 40118, 166, 62694387], [1, 5.99, 432, 40118, 166, 62664568], [1, 12.00, 261, 40118, 166, 69634261], [1, 12.00, 261, 40118, 166, 69634660], [1, 22.49, 280, 40118, 166, 69684947], [1, 4.33, 905, 40118, 166, 60654072], [1, 4.33, 905, 40118, 166, 60654072], [1, 16.99, 355, 40118, 166, 69624221], [1, 19.99, 355, 40118, 166, 62654800], [1, 29.65, 801, 40118, 166, 64644495], [1, 1.39, 929, 40118, 166, 67664645], [1, 15.99, 395, 40118, 166, 60614265], [1, 15.99, 905, 40118, 166, 68604583], [1, 15.99, 395, 40118, 166, 60614265], [-1, -15.99, 395, 40118, 166, 60614265], [-1, -15.99, 395, 40118, 166, 60614265], [-1, -15.99, 905, 40118, 166, 68604583], [1, 15.99, 905, 40118, 166, 68604583], [-1, -15.99, 905, 40118, 166, 68604583], [1, 12.80, 905, 40118, 166, 68604583], [1, 15.99, 395, 40118, 166, 60614265], [-1, -15.99, 395, 40118, 166, 60614265], [1, 12.80, 395, 40118, 166, 60614265], [1, 14.95, 904, 40118, 166, 69664661], [1, 11.19, 193, 40118, 166, 68664211], [1, 6.00, 60, 40118, 166, 60614707], [1, 16.99, 235, 40118, 166, 64604513], [1, 15.00, 261, 40118, 166, 60624864], [1, 9.00, 261, 40118, 166, 69644909], [1, 13.30, 80, 40118, 166, 60604100], [1, 25.00, 261, 40118, 166, 69634263], [-1, -25.00, 261, 40118, 166, 69634263], [1, 12.00, 261, 40118, 166, 69634263], [1, 3.99, 670, 40118, 166, 61674701], [1, 56.99, 670, 40118, 166, 63654007], [1, 16.50, 801, 40118, 166, 67624103], [1, 39.99, 905, 40118, 166, 68614329], [1, 23.96, 193, 40118, 166, 67644384], [1, 29.65, 801, 40118, 166, 64644495], [1, 9.00, 220, 40118, 184, 60684484], [1, 9.00, 220, 40118, 184, 60684484], [1, 4.99, 905, 40118, 184, 67674299], [1, 11.89, 355, 40118, 184, 69664620], [-1, -11.89, 355, 40118, 184, 69664620], [1, 9.09, 355, 40118, 184, 69664620], [-1, -15.00, 275, 40118, 184, 60674210], [-1, -4.80, 60, 40118, 184, 60664048], [-1, -4.80, 60, 40118, 184, 60614866], [-1, -4.80, 60, 40118, 184, 60664048], [-1, -4.80, 60, 40118, 184, 60664048], [-1, -4.80, 60, 40118, 184, 60614866], [1, 12.99, 70, 40118, 184, 69654081], [1, 16.79, 193, 40118, 184, 63664643], [1, 12.99, 70, 40118, 184, 69654135], [1, 9.09, 160, 40118, 184, 60644672], [-1, -19.59, 345, 40118, 184, 62654852], [-1, -16.00, 490, 40118, 184, 62674960], [1, 16.00, 490, 40118, 184, 62674960], [1, 2.69, 929, 40118, 184, 65674126], [1, 24.99, 500, 40118, 184, 60634192], [-1, -9.99, 957, 40118, 184, 64634500], [1, 2.00, 170, 40118, 184, 66624803], [-1, -2.00, 170, 40118, 184, 66624803], [1, 1.04, 170, 40118, 184, 66624803], [1, 2.00, 170, 40118, 184, 66624889], [-1, -2.00, 170, 40118, 184, 66624889], [1, 1.04, 170, 40118, 184, 66624889], [1, 34.99, 500, 40118, 184, 60624241], [1, 9.99, 650, 40118, 184, 62644079], [-1, -20.99, 320, 40118, 184, 62664183], [-1, -25.99, 320, 40118, 184, 64654047], [-1, -10.39, 375, 40118, 184, 62694327], [-1, -19.00, 275, 40118, 184, 69604894], [-1, -14.99, 60, 40118, 184, 67644821], [1, 16.99, 60, 40118, 184, 67644118], [1, 3.09, 901, 40118, 184, 66664981], [1, 12.99, 901, 40118, 184, 66684899], [1, 15.99, 270, 40118, 184, 64634942], [1, 19.00, 275, 40118, 184, 63654826], [-1, -14.39, 220, 40118, 184, 69604993], [-1, -15.00, 250, 40118, 184, 63624118], [-1, -29.99, 475, 40118, 184, 62684517], [1, 24.99, 970, 40118, 184, 67634503], [-1, -16.99, 193, 40118, 184, 62694782], [-1, -16.99, 193, 40118, 184, 62694683], [-1, -16.99, 193, 40118, 184, 62694782], [-1, -16.99, 193, 40118, 184, 62694782], [1, 14.00, 310, 40118, 184, 62684096], [1, 19.19, 193, 40118, 184, 69644199], [1, 7.99, 904, 40118, 184, 60634366], [1, 23.00, 70, 40118, 184, 67654448], [-1, -23.00, 70, 40118, 184, 67654448], [1, 19.01, 70, 40118, 184, 67654448], [1, 5.08, 60, 40118, 184, 69654459], [1, 5.08, 60, 40118, 184, 60664779], [-1, -29.99, 310, 40118, 184, 63674002], [-1, -19.99, 870, 40118, 184, 68604041], [1, 24.99, 970, 40118, 184, 67634503], [-1, -10.39, 60, 40118, 184, 68644941], [-1, -10.39, 60, 40118, 184, 68644941], [-1, -10.39, 60, 40118, 184, 68644941], [-1, -10.39, 60, 40118, 184, 68644941], [1, 10.39, 60, 40118, 184, 68644934], [-1, -8.99, 350, 40118, 184, 62674884], [1, 14.95, 235, 40118, 184, 68654381], [1, 24.99, 801, 40118, 184, 64644433], [-1, -29.99, 805, 40118, 184, 64604829], [1, 9.99, 650, 40118, 184, 62634996], [1, 0.95, 670, 40118, 184, 60624270], [1, 1.59, 929, 40118, 184, 63664932], [1, 9.99, 851, 40118, 184, 69684804], [-1, -29.95, 415, 40118, 184, 68664363], [1, 2.99, 929, 40118, 184, 62694503], [1, 24.99, 590, 40118, 184, 62644205], [1, 24.89, 590, 40118, 184, 62604912], [1, 4.29, 904, 40118, 184, 64634802], [1, 2.12, 901, 40118, 184, 60664257], [-1, -19.95, 878, 40118, 184, 62684043], [1, 19.95, 878, 40118, 184, 62684043], [-1, -3.95, 805, 40118, 184, 64644860], [-1, -22.99, 590, 40118, 184, 62644590], [-1, -16.99, 432, 40118, 184, 64664587], [-1, -35.95, 801, 40118, 184, 64604930], [1, 9.00, 250, 40118, 184, 60604880], [1, 2.00, 845, 40118, 184, 68674372], [1, 2.00, 845, 40118, 184, 63684755], [1, 9.99, 929, 40118, 184, 64684439], [1, 0.98, 940, 40118, 184, 67624120], [-1, -0.98, 940, 40118, 184, 67624120], [1, 0.49, 940, 40118, 184, 67624120], [1, 0.98, 940, 40118, 184, 67624120], [-1, -0.98, 940, 40118, 184, 67624120], [1, 0.49, 940, 40118, 184, 67624120], [1, 1.23, 940, 40118, 184, 66614192], [-1, -1.23, 940, 40118, 184, 66614192], [1, 0.69, 940, 40118, 184, 66614192], [1, 1.23, 940, 40118, 184, 66614192], [-1, -1.23, 940, 40118, 184, 66614192], [1, 0.69, 940, 40118, 184, 66614192], [1, 0.50, 940, 40118, 184, 67624473], [-1, -0.50, 940, 40118, 184, 67624473], [1, 0.19, 940, 40118, 184, 67624473], [-1, -19.95, 875, 40118, 184, 67614923], [-1, -6.99, 432, 40118, 184, 63604715], [-1, -6.99, 432, 40118, 184, 63604715], [-1, -6.99, 432, 40118, 184, 63604715], [1, 14.00, 310, 40118, 184, 62684102], [1, 4.95, 805, 40118, 184, 63654091], [-1, -16.99, 855, 40118, 184, 68694729], [1, 9.59, 220, 40118, 184, 60684563], [1, 13.99, 80, 40118, 184, 68664957], [1, 21.00, 801, 40118, 184, 67604116], [1, 22.99, 801, 40118, 184, 64664047], [1, 24.99, 970, 40118, 184, 67634497], [1, 3.19, 929, 40118, 184, 64664270], [-1, -14.99, 160, 40118, 184, 60634150], [-1, -249.00, 878, 40118, 184, 68684135], [1, 269.00, 878, 40118, 184, 68684135], [-1, -269.00, 878, 40118, 184, 68684135], [1, 249.00, 878, 40118, 184, 68684135], [-1, -26.21, 235, 40118, 184, 69624909], [-1, -6.89, 530, 40118, 184, 62634962], [-1, -9.95, 160, 40118, 184, 67614726], [-1, -4.50, 170, 40118, 184, 68654094], [1, 19.95, 485, 40118, 184, 60674335], [-1, -19.95, 485, 40118, 184, 60674335], [1, 12.99, 485, 40118, 184, 60674335], [1, 0.89, 929, 40118, 184, 60644305], [1, 6.99, 366, 40118, 184, 64604604], [1, 19.00, 290, 40118, 184, 63694367], [1, 9.99, 650, 40118, 184, 62644079], [1, 1.89, 929, 40118, 184, 67674119], [1, 19.00, 265, 40118, 184, 69614627], [1, 19.00, 265, 40118, 184, 69614740], [-1, -14.25, 230, 40118, 184, 60614135], [1, 19.99, 970, 40118, 184, 69674452], [1, 2.49, 957, 40118, 184, 62694272], [1, 9.95, 902, 40118, 184, 69614274], [1, 25.00, 290, 40118, 184, 60634379], [1, 19.00, 261, 40118, 184, 60674904], [-1, -15.99, 670, 40118, 184, 66614582], [1, 4.95, 805, 40118, 184, 64654096], [1, 29.99, 405, 40118, 184, 62634605], [1, 2.99, 929, 40118, 184, 69694354], [1, 20.99, 80, 40118, 184, 69634699], [1, 20.99, 80, 40118, 184, 69634712], [-1, -27.95, 250, 40118, 184, 69664171], [1, 14.99, 280, 40118, 184, 69694479], [-1, -5.50, 929, 40118, 184, 63634656], [-1, -5.99, 903, 40118, 184, 69664149], [-1, -1.39, 903, 40118, 184, 69664163], [-1, -19.95, 901, 40118, 184, 67674341], [1, 18.74, 230, 40118, 184, 69644053], [1, 164.00, 957, 40118, 184, 63674184], [1, 69.99, 870, 40118, 184, 62604338], [1, 10.99, 432, 40118, 184, 62644344], [1, 10.99, 432, 40118, 184, 66644706], [1, 10.99, 432, 40118, 184, 62644528], [1, 10.99, 432, 40118, 184, 62644764], [1, 11.00, 405, 40118, 184, 62664135], [1, 11.00, 405, 40118, 184, 62664244], [1, 11.00, 405, 40118, 184, 62664197], [1, 39.99, 471, 40118, 184, 62654875], [1, 34.99, 265, 40118, 184, 64614653], [1, 34.99, 265, 40118, 184, 64614653], [1, 14.99, 650, 40118, 184, 61694023], [1, 14.99, 650, 40118, 184, 61694023], [1, 2.00, 998, 40118, 184, 60694909], [1, 12.99, 70, 40118, 184, 68614241], [1, 6.00, 60, 40118, 184, 69654638], [1, 17.59, 60, 40118, 184, 67634923], [1, 22.99, 70, 40118, 184, 64614285], [1, 17.59, 193, 40118, 184, 69644389], [1, 27.99, 70, 40118, 184, 68614787], [1, 29.99, 70, 40118, 184, 69644337], [1, 27.99, 70, 40118, 184, 68634061], [1, 15.99, 193, 40118, 184, 69644184], [1, 21.00, 801, 40118, 184, 63624756], [1, 21.00, 801, 40118, 184, 67604116], [1, 27.99, 193, 40118, 184, 68654451], [1, 19.19, 193, 40118, 184, 62614172], [1, 49.99, 620, 40118, 184, 61614174], [1, 29.99, 620, 40118, 184, 61614174], [1, 69.95, 801, 40118, 184, 62644445], [1, 149.00, 905, 40118, 184, 62634323], [1, 3.95, 901, 40118, 184, 66674079], [1, 3.95, 901, 40118, 184, 66674130], [1, 12.50, 902, 40118, 184, 61604095], [1, 14.95, 902, 40118, 184, 66664028], [1, 12.95, 902, 40118, 184, 68654621], [1, 19.95, 830, 40118, 184, 63694264], [1, 3.99, 901, 40118, 184, 63604361], [1, 6.69, 901, 40118, 184, 62634259], [1, 6.69, 901, 40118, 184, 62634259], [1, 4.89, 904, 40118, 184, 60684429], [1, 9.95, 904, 40118, 184, 60684037], [1, 19.95, 904, 40118, 184, 69694875], [1, 19.95, 904, 40118, 184, 69694875], [1, 19.95, 904, 40118, 184, 69694875], [-1, -19.95, 904, 40118, 184, 69694875], [-1, -19.95, 904, 40118, 184, 69694875], [-1, -19.95, 904, 40118, 184, 69694875], [1, 3.95, 901, 40118, 184, 63604108], [1, 11.49, 904, 40118, 184, 63694928], [1, 4.99, 904, 40118, 184, 60634765], [1, 8.95, 903, 40118, 184, 69664668]]' ) select('Table', 'cell:2|SALE-PRICE,3(19.00)') rightclick('Table', '1|QTY-SOLD,1') select('Table', 'cell:1|QTY-SOLD,1(-1)') rightclick('Table', '1|QTY-SOLD,1') select_menu('Edit Record') ## select('Table1', 'cell:1|QTY-SOLD,1(-1)') select('Table', 'cell:Data,1(-19.00)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , -1, -1], [SALE-PRICE, 2, , -19.00, -19.00], [DEPT-NO, 3, , 280, 280], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 20, 20], [KEYCODE-NO, 6, , 69684558, 69684558]]' ) select('Table', 'cell:Data,1(-19.00)') click('HexThreeLineField') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''-1þ-19.00þ280þ40118þ20þ69684558 23f233233f333f33333f33f33333333 d1ed19e00e280e40118e20e69684558''') click('Right') select('Table', 'cell:Data,1(5.01)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 5.01, 5.01], [DEPT-NO, 3, , 280, 280], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 20, 20], [KEYCODE-NO, 6, , 69684558, 69684558]]' ) select('Table', 'cell:Data,1(5.01)') click('Right') select('Table', 'cell:Data,2(280)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 19.00, 19.00], [DEPT-NO, 3, , 280, 280], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 20, 20], [KEYCODE-NO, 6, , 69694158, 69694158]]' ) select('Table', 'cell:Data,2(280)') click('Right') select('Table', 'cell:Data,3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , -1, -1], [SALE-PRICE, 2, , -19.00, -19.00], [DEPT-NO, 3, , 280, 280], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 20, 20], [KEYCODE-NO, 6, , 69694158, 69694158]]' ) select('Table', 'cell:Data,3(40118)') click('HexThreeLineField') assert_p( 'HexThreeLineField', 'Text', '''-1þ-19.00þ280þ40118þ20þ69694158 23f233233f333f33333f33f33333333 d1ed19e00e280e40118e20e69694158''') click('Right') select('Table', 'cell:Data,3(40118)') assert_p( 'Table', 'Content', '[[QTY-SOLD, 1, , 1, 1], [SALE-PRICE, 2, , 5.01, 5.01], [DEPT-NO, 3, , 280, 280], [DATE, 4, , 40118, 40118], [STORE-NO, 5, , 20, 20], [KEYCODE-NO, 6, , 69694158, 69694158]]' ) select('Table', 'cell:Data,3(40118)') commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu') ## select('Table', 'cell:Data,3(40118)') click('*2') select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.sampleDir() + 'XfeReverseDTAR020.txt') click('Right') ## select('TabbedPane', '') select('Table1', 'cell:Field,0(KEYCODE-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:Record,0(DTAR020)') select('Table', 'cell:Record,0(DTAR020)') assert_p('Table', 'Content', '[[DTAR020, XfeDTAR020_reverse]]') ## assert_p('Table', 'Content', '[[DTAR020, ]]') select('Table', 'cell:Record,0(DTAR020)') click('Right') select('TabbedPane', '') click('Compare') assert_p('TextPane', 'Text', 'Files are Identical !!!') 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('*2') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.cbl') select('FileChooser1', commonBits.cobolTestDir() + 'mfComp.bin') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.bin') select('FileChooser1', commonBits.cobolTestDir() + 'zzMainframefComp.bin') select('FileChooser2', commonBits.cobolTestDir() + 'mfComp.cbl') select('ComputerOptionCombo', 'Open Cobol Micro Focus (Intel)') select('ComputerOptionCombo1', 'Mainframe') ## select('BmKeyedComboBox1', '2') select('BmKeyedComboBox', 'Fixed Length Binary') click('Right') select('TabbedPane', '') click('Copy2') assert_p('TextField1', 'Text', 'Copy Done !!!, check log for errors') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Open') select('FileChooser', commonBits.cobolTestDir() + 'zzMainframeComp.bin') if commonBits.isRecordEditor(): select_menu('Record Layouts>>Load Cobol Copybook') select('FileChooser', commonBits.cobolTestDir() + 'mainframeComp.cbl') select('TextField', 'cp037') select('FileChooser', commonBits.cobolTestDir() + 'mfCmp.cbl') select('TextField', '') select('ComputerOptionCombo', 'Open Cobol Micro Focus (Intel)') ## select('BmKeyedComboBox1', '9') select('BmKeyedComboBox1', 'Other') click('Go') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.cbl') click('Go') select('FileChooser', commonBits.cobolTestDir() + 'mainframeComp.cbl') select('TextField', 'cp037') select('ComputerOptionCombo', 'Mainframe') ## select('BmKeyedComboBox1', '32') select('BmKeyedComboBox1', 'Mainframe') click('Go') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') # ------------------------------------------------------------------- # Starting Edit Mainframe file # ------------------------------------------------------------------- click('Open') select('FileChooser', commonBits.cobolTestDir() + 'zzMainframefComp.bin') commonBits.setCobolLayout(select, 'mainframeComp', 'Mainframe') commonBits.doEdit(click) select('Table', 'cell:30 - 2|Num1,4(123.45)') assert_p('Table', 'Text', '123.45', '30 - 2|Num1,4') select('Table', 'cell:30 - 2|Num1,5(-123.45)') ## assert_p('Table', 'Content', '[[1.23, ;, 1, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [23.45, ;, 23, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45], [-23.45, ;, -23, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, 23.45], [123.45, ;, 123, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45], [-123.45, ;, -123, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, 123.45], [4567.89, ;, -41, ;, -19.63, ;, -19.63, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89], [-4567.89, ;, 41, ;, 19.63, ;, 19.63, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, 4567.89], [34567.89, ;, 7, ;, -166.19, ;, -166.19, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89], [-34567.89, ;, -7, ;, 166.19, ;, 166.19, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, 34567.89], [234567.89, ;, 71, ;, -50.99, ;, -50.99, ;, 66795.73, ;, 66795.73, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 66795.73], [-234567.89, ;, -71, ;, 50.99, ;, 50.99, ;, -66795.73, ;, -66795.73, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, 66795.73], [91234567.89, ;, 7, ;, -63.79, ;, -63.79, ;, -33487.15, ;, -33487.15, ;, 5335221.97, ;, 5335221.97, ;, 5335221.97, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, -33487.15], [-91234567.89, ;, -7, ;, 63.79, ;, 63.79, ;, 33487.15, ;, 33487.15, ;, -5335221.97, ;, -5335221.97, ;, -5335221.97, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -33487.15], [987654321.12, ;, -79, ;, -68.64, ;, -68.64, ;, -20384.80, ;, -20384.80, ;, -188156.96, ;, -188156.96, ;, -188156.96, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, -20384.80], [-987654321.12, ;, 79, ;, 68.64, ;, 68.64, ;, 20384.80, ;, 20384.80, ;, 188156.96, ;, 188156.96, ;, 188156.96, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -20384.80], [1987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, 57541.60, ;, 57541.60, ;, 11969364.96, ;, 11969364.96, ;, 11969364.96, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 57541.60], [-1987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, -57541.60, ;, -57541.60, ;, -11969364.96, ;, -11969364.96, ;, -11969364.96, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, 57541.60], [21987654321.12, ;, -79, ;, -48.16, ;, -48.16, ;, -61652.00, ;, -61652.00, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, -61652.00], [-21987654321.12, ;, 79, ;, 48.16, ;, 48.16, ;, 61652.00, ;, 61652.00, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -61652.00], [321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -4062.24, ;, -4062.24, ;, -6043860.00, ;, -6043860.00, ;, -6043860.00, ;, 3129282266.08, ;, 3129282266.08, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, -4062.24], [-321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 4062.24, ;, 4062.24, ;, 6043860.00, ;, 6043860.00, ;, 6043860.00, ;, -3129282266.08, ;, -3129282266.08, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -4062.24], [4321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -19135.52, ;, -19135.52, ;, 5014029.28, ;, 5014029.28, ;, 5014029.28, ;, 906957161.44, ;, 906957161.44, ;, -1307511879892.00, ;, -1307511879892.00, ;, -1307511879892.00, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, -19135.52], [-4321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 19135.52, ;, 19135.52, ;, -5014029.28, ;, -5014029.28, ;, -5014029.28, ;, -906957161.44, ;, -906957161.44, ;, 1307511879892.00, ;, 1307511879892.00, ;, 1307511879892.00, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -19135.52], [54321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, -39779.36, ;, -39779.36, ;, 14388626.40, ;, 14388626.40, ;, 14388626.40, ;, -4881874091.04, ;, -4881874091.04, ;, 841742079296.48, ;, 841742079296.48, ;, 841742079296.48, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, -39779.36], [-54321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, 39779.36, ;, 39779.36, ;, -14388626.40, ;, -14388626.40, ;, -14388626.40, ;, 4881874091.04, ;, 4881874091.04, ;, -841742079296.48, ;, -841742079296.48, ;, -841742079296.48, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -39779.36], [654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 48038.88, ;, 48038.88, ;, -1965227.04, ;, -1965227.04, ;, -1965227.04, ;, 2617964823.52, ;, 2617964823.52, ;, 1300041685599.20, ;, 1300041685599.20, ;, 1300041685599.20, ;, -66253952724958.24, ;, -66253952724958.24, ;, 654321987654321.12, ;, 654321987654321.12, ;, 48038.88], [-654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -48038.88, ;, -48038.88, ;, 1965227.04, ;, 1965227.04, ;, 1965227.04, ;, -2617964823.52, ;, -2617964823.52, ;, -1300041685599.20, ;, -1300041685599.20, ;, -1300041685599.20, ;, 66253952724958.24, ;, 66253952724958.24, ;, -654321987654321.12, ;, -654321987654321.12, ;, 48038.88], [7654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 10028.00, ;, 10028.00, ;, -20961492.00, ;, -20961492.00, ;, -20961492.00, ;, -5174922247.20, ;, -5174922247.20, ;, 1017370891584.48, ;, 1017370891584.48, ;, 1017370891584.48, ;, -272013356517751.84, ;, -272013356517751.84, ;, 7654321987654321.12, ;, 7654321987654321.12, ;, 10028.00], [-7654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -10028.00, ;, -10028.00, ;, 20961492.00, ;, 20961492.00, ;, 20961492.00, ;, 5174922247.20, ;, 5174922247.20, ;, -1017370891584.48, ;, -1017370891584.48, ;, -1017370891584.48, ;, 272013356517751.84, ;, 272013356517751.84, ;, -7654321987654321.12, ;, -7654321987654321.12, ;, 10028.00], [-1.21, ;, -1, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, 1.21], [-1.22, ;, -1, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, 1.22], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [-1.24, ;, -1, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, 1.24], [-1.25, ;, -1, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, 1.25], [-1.26, ;, -1, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, 1.26], [-1.27, ;, -1, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, 1.27], [-1.28, ;, -1, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, 1.28], [-1.29, ;, -1, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, 1.29], [-1.20, ;, -1, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, 1.20]]') assert_p('Table', 'Content', '[[1.23, ;, 1, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23, ;, 1.23], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [23.45, ;, 23, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45, ;, 23.45], [-23.45, ;, -23, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, -23.45, ;, 23.45], [123.45, ;, 123, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45, ;, 123.45], [-123.45, ;, -123, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, -123.45, ;, 123.45], [4567.89, ;, -41, ;, -19.63, ;, -19.63, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89, ;, 4567.89], [-4567.89, ;, 41, ;, 19.63, ;, 19.63, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, -4567.89, ;, 4567.89], [34567.89, ;, 7, ;, -166.19, ;, -166.19, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89, ;, 34567.89], [-34567.89, ;, -7, ;, 166.19, ;, 166.19, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, -34567.89, ;, 34567.89], [234567.89, ;, 71, ;, -50.99, ;, -50.99, ;, 66795.73, ;, 66795.73, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 234567.89, ;, 66795.73], [-234567.89, ;, -71, ;, 50.99, ;, 50.99, ;, -66795.73, ;, -66795.73, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, -234567.89, ;, 66795.73], [91234567.89, ;, 7, ;, -63.79, ;, -63.79, ;, -33487.15, ;, -33487.15, ;, 5335221.97, ;, 5335221.97, ;, 5335221.97, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 91234567.89, ;, 0.00], [-91234567.89, ;, -7, ;, 63.79, ;, 63.79, ;, 33487.15, ;, 33487.15, ;, -5335221.97, ;, -5335221.97, ;, -5335221.97, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, -91234567.89, ;, 0.00], [987654321.12, ;, -79, ;, -68.64, ;, -68.64, ;, -20384.80, ;, -20384.80, ;, -188156.96, ;, -188156.96, ;, -188156.96, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 987654321.12, ;, 0.00], [-987654321.12, ;, 79, ;, 68.64, ;, 68.64, ;, 20384.80, ;, 20384.80, ;, 188156.96, ;, 188156.96, ;, 188156.96, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, -987654321.12, ;, 0.00], [1987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, 57541.60, ;, 57541.60, ;, 11969364.96, ;, 11969364.96, ;, 11969364.96, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 1987654321.12, ;, 57541.60], [-1987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, -57541.60, ;, -57541.60, ;, -11969364.96, ;, -11969364.96, ;, -11969364.96, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, -1987654321.12, ;, 57541.60], [21987654321.12, ;, -79, ;, -48.16, ;, -48.16, ;, -61652.00, ;, -61652.00, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, -2578234.40, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 21987654321.12, ;, 0.00], [-21987654321.12, ;, 79, ;, 48.16, ;, 48.16, ;, 61652.00, ;, 61652.00, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, 2578234.40, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, -21987654321.12, ;, 0.00], [321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -4062.24, ;, -4062.24, ;, -6043860.00, ;, -6043860.00, ;, -6043860.00, ;, 3129282266.08, ;, 3129282266.08, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 321987654321.12, ;, 0.00], [-321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 4062.24, ;, 4062.24, ;, 6043860.00, ;, 6043860.00, ;, 6043860.00, ;, -3129282266.08, ;, -3129282266.08, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, -321987654321.12, ;, 0.00], [4321987654321.12, ;, -79, ;, -130.08, ;, -130.08, ;, -19135.52, ;, -19135.52, ;, 5014029.28, ;, 5014029.28, ;, 5014029.28, ;, 906957161.44, ;, 906957161.44, ;, -1307511879892.00, ;, -1307511879892.00, ;, -1307511879892.00, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 4321987654321.12, ;, 0.00], [-4321987654321.12, ;, 79, ;, 130.08, ;, 130.08, ;, 19135.52, ;, 19135.52, ;, -5014029.28, ;, -5014029.28, ;, -5014029.28, ;, -906957161.44, ;, -906957161.44, ;, 1307511879892.00, ;, 1307511879892.00, ;, 1307511879892.00, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, -4321987654321.12, ;, 0.00], [54321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, -39779.36, ;, -39779.36, ;, 14388626.40, ;, 14388626.40, ;, 14388626.40, ;, -4881874091.04, ;, -4881874091.04, ;, 841742079296.48, ;, 841742079296.48, ;, 841742079296.48, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 54321987654321.12, ;, 0.00], [-54321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, 39779.36, ;, 39779.36, ;, -14388626.40, ;, -14388626.40, ;, -14388626.40, ;, 4881874091.04, ;, 4881874091.04, ;, -841742079296.48, ;, -841742079296.48, ;, -841742079296.48, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, -54321987654321.12, ;, 0.00], [654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 48038.88, ;, 48038.88, ;, -1965227.04, ;, -1965227.04, ;, -1965227.04, ;, 2617964823.52, ;, 2617964823.52, ;, 1300041685599.20, ;, 1300041685599.20, ;, 1300041685599.20, ;, -66253952724958.24, ;, -66253952724958.24, ;, 654321987654321.12, ;, 654321987654321.12, ;, 48038.88], [-654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -48038.88, ;, -48038.88, ;, 1965227.04, ;, 1965227.04, ;, 1965227.04, ;, -2617964823.52, ;, -2617964823.52, ;, -1300041685599.20, ;, -1300041685599.20, ;, -1300041685599.20, ;, 66253952724958.24, ;, 66253952724958.24, ;, -654321987654321.12, ;, -654321987654321.12, ;, 48038.88], [7654321987654321.12, ;, -79, ;, 197.60, ;, 197.60, ;, 10028.00, ;, 10028.00, ;, -20961492.00, ;, -20961492.00, ;, -20961492.00, ;, -5174922247.20, ;, -5174922247.20, ;, 1017370891584.48, ;, 1017370891584.48, ;, 1017370891584.48, ;, -272013356517751.84, ;, -272013356517751.84, ;, 7654321987654321.12, ;, 7654321987654321.12, ;, 10028.00], [-7654321987654321.12, ;, 79, ;, -197.60, ;, -197.60, ;, -10028.00, ;, -10028.00, ;, 20961492.00, ;, 20961492.00, ;, 20961492.00, ;, 5174922247.20, ;, 5174922247.20, ;, -1017370891584.48, ;, -1017370891584.48, ;, -1017370891584.48, ;, 272013356517751.84, ;, 272013356517751.84, ;, -7654321987654321.12, ;, -7654321987654321.12, ;, 10028.00], [-1.21, ;, -1, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, -1.21, ;, 1.21], [-1.22, ;, -1, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, -1.22, ;, 1.22], [-1.23, ;, -1, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, -1.23, ;, 1.23], [-1.24, ;, -1, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, -1.24, ;, 1.24], [-1.25, ;, -1, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, -1.25, ;, 1.25], [-1.26, ;, -1, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, -1.26, ;, 1.26], [-1.27, ;, -1, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, -1.27, ;, 1.27], [-1.28, ;, -1, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, -1.28, ;, 1.28], [-1.29, ;, -1, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, -1.29, ;, 1.29], [-1.20, ;, -1, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, -1.20, ;, 1.20]]') select('Table', 'cell:30 - 2|Num1,6(-19.63)') assert_p('Table', 'RowCount', '40') select('Table', 'cell:30 - 2|Num1,9(166.19)') rightclick('Table', '30 - 2|Num1,9') select_menu('Edit Record') ## select('Table1', 'cell:30 - 2|Num1,9(166.19)') select('Table', 'cell:Data,6(166.19)') assert_p('Table', 'Text', '166.19', 'Data,6') select('Table', 'cell:Data,6(166.19)') # assert_p('Table', 'Content', '''[[NumA, 1, 25, -34567.89, -34567.89, 4040404040404040404040404040404060f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -7, ?9, fff9], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, 166.19, н, 40eb], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, 166.19, н, 40eb], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -34567.89, ?З н, ffcb40eb], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -34567.89, ?З н, ffcb40eb], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -34567.89, ?З н, ffcb40eb], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -34567.89, ?З н, ffcb40eb], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -34567.89, ?З н, ffcb40eb], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, -34567.89, ?????З н, ffffffffffcb40eb], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, 34567.89, ?О #, 0034bf15]]''') select('Table', 'cell:Hex,0(4040404040404040404040404040404060f3f4f5f6f74bf8f9)') assert_p('Table', 'Text', '4040404040404040404040404040404060f3f4f5f6f74bf8f9', 'Hex,0') select('Table', 'cell:Hex,0(4040404040404040404040404040404060f3f4f5f6f74bf8f9)') click('Right') select('Table', 'cell:Data,10(66795.73)') assert_p('Table', 'Text', '66795.73', 'Data,10') select('Table', 'cell:Data,12(234567.89)') assert_p('Table', 'Content', '''[[NumA, 1, 25, 234567.89, 234567.89, 40404040404040404040404040404040f2f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 71, т, 0047], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -50.99, о , ec15], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -50.99, о , ec15], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, 66795.73, ┴о , 0065ec15], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, 66795.73, ┴о , 0065ec15], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 234567.89, ┴о , 0165ec15], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 234567.89, ┴о , 0165ec15], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 234567.89, ┴о , 0165ec15], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 234567.89, ┴о , 000000000165ec15], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 234567.89, ┴о , 000000000165ec15], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 234567.89, ┴о , 000000000165ec15], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 234567.89, ┴о , 000000000165ec15], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 234567.89, ┴о , 000000000165ec15], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 234567.89, ┴о , 000000000165ec15], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 234567.89, ┴о , 000000000165ec15], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 234567.89, ┴о , 000000000165ec15], [sep16, 132, 1, ;, ;, 5e], [Num16, 133, 8, 234567.89, ┴о , 000000000165ec15], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, 66795.73, ┴о , 0065ec15]]''') select('Table', 'cell:Data,12(234567.89)') click('Right') select('Table', 'cell:Data,14(-234567.89)') # assert_p('Table', 'Content', '''[[NumA, 1, 25, -234567.89, -234567.89, 40404040404040404040404040404060f2f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -71, ?Й, ffb9], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, 50.99, н, 13eb], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, 50.99, н, 13eb], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -66795.73, ?фн, ff9a13eb], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -66795.73, ?фн, ff9a13eb], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -234567.89, ┌фн, fe9a13eb], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -234567.89, ┌фн, fe9a13eb], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -234567.89, ┌фн, fe9a13eb], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, -234567.89, ????┌фн, fffffffffe9a13eb], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, 66795.73, ┴о #, 0065ec15]]''') select('Table', 'cell:Data,14(-234567.89)') click('Right') select('Table', 'cell:Data,16(5335221.97)') # assert_p('Table', 'Content', '''[[NumA, 1, 25, 91234567.89, 91234567.89, 4040404040404040404040404040f9f1f2f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 7, , 0007], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -63.79, X #, e715], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -63.79, X #, e715], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -33487.15, ?ШX #, ffcce715], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -33487.15, ?ШX #, ffcce715], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 5335221.97, ШX #, 1fcce715], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 5335221.97, ШX #, 1fcce715], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 5335221.97, ШX #, 1fcce715], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 91234567.89, ШX #, 000000021fcce715], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 91234567.89, ШX #, 000000021fcce715], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 91234567.89, ШX #, 000000021fcce715], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 91234567.89, ШX #, 000000021fcce715], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 91234567.89, ШX #, 000000021fcce715], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 91234567.89, ШX #, 000000021fcce715], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 91234567.89, ШX #, 000000021fcce715], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 91234567.89, ШX #, 000000021fcce715], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 91234567.89, ШX #, 000000021fcce715], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -33487.15, ?ШX #, ffcce715]]''') select('Table', 'cell:Hex,0(4040404040404040404040404040f9f1f2f3f4f5f6f74bf8f9)') # assert_p('Table', 'Content', '''[[NumA, 1, 25, 91234567.89, 91234567.89, 4040404040404040404040404040f9f1f2f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 7, , 0007], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -63.79, X #, e715], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -63.79, X #, e715], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -33487.15, ?ШX #, ffcce715], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -33487.15, ?ШX #, ffcce715], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 5335221.97, ШX #, 1fcce715], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 5335221.97, ШX #, 1fcce715], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 5335221.97, ШX #, 1fcce715], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 91234567.89, ШX #, 000000021fcce715], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 91234567.89, ШX #, 000000021fcce715], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 91234567.89, ШX #, 000000021fcce715], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 91234567.89, ШX #, 000000021fcce715], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 91234567.89, ШX #, 000000021fcce715], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 91234567.89, ШX #, 000000021fcce715], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 91234567.89, ШX #, 000000021fcce715], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 91234567.89, ШX #, 000000021fcce715], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 91234567.89, ШX #, 000000021fcce715], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -33487.15, ?ШX #, ffcce715]]''') select('Table', 'cell:Hex,18(000000021fcce715)') # assert_p('Table', 'Content', '''[[NumA, 1, 25, 91234567.89, 91234567.89, 4040404040404040404040404040f9f1f2f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 7, , 0007], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -63.79, X #, e715], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -63.79, X #, e715], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -33487.15, ?ШX #, ffcce715], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -33487.15, ?ШX #, ffcce715], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 5335221.97, ШX #, 1fcce715], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 5335221.97, ШX #, 1fcce715], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 5335221.97, ШX #, 1fcce715], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 91234567.89, ШX #, 000000021fcce715], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 91234567.89, ШX #, 000000021fcce715], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 91234567.89, ШX #, 000000021fcce715], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 91234567.89, ШX #, 000000021fcce715], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 91234567.89, ШX #, 000000021fcce715], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 91234567.89, ШX #, 000000021fcce715], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 91234567.89, ШX #, 000000021fcce715], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 91234567.89, ШX #, 000000021fcce715], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 91234567.89, ШX #, 000000021fcce715], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -33487.15, ?ШX #, ffcce715]]''') select('Table', 'cell:Hex,18(000000021fcce715)') click('Right') select('Table', 'cell:Data,16(-5335221.97)') assert_p('Table', 'Text', 'cell:Data,16(-5335221.97)') select('Table', 'cell:Data,18(-91234567.89)') # assert_p('Table', 'Content', r'''[[NumA, 1, 25, -91234567.89, -91234567.89, 4040404040404040404040404060f9f1f2f3f4f5f6f74bf8f9], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -7, ?9, fff9], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, 63.79, н, 18eb], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, 63.79, н, 18eb], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, 33487.15, ?н, 003318eb], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, 33487.15, ?н, 003318eb], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -5335221.97, \?н, e03318eb], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -5335221.97, \?н, e03318eb], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -5335221.97, \?н, e03318eb], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, -91234567.89, ???┘\?н, fffffffde03318eb], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -33487.15, ?ШX #, ffcce715]]''') select('Table', 'cell:Hex,0(4040404040404040404040404060f9f1f2f3f4f5f6f74bf8f9)') assert_p('Table', 'Text', 'cell:Hex,0(4040404040404040404040404060f9f1f2f3f4f5f6f74bf8f9)') select('Table', 'cell:Hex,0(4040404040404040404040404060f9f1f2f3f4f5f6f74bf8f9)') click('JTableHeader', 'Text') select('Table', 'cell:Text,0( -91234567.89)') assert_p('Table', 'Text', 'cell:Text,0( -91234567.89)') select('Table', 'cell:Text,0( -91234567.89)') click('Right') select('Table', 'cell:Data,0(987654321.12)') assert_p('Table', 'Text', 'cell:Data,0(987654321.12)') select('Table', 'cell:Hex,0(40404040404040404040404040f9f8f7f6f5f4f3f2f14bf1f2)') assert_p('Table', 'Text', 'cell:Hex,0(40404040404040404040404040f9f8f7f6f5f4f3f2f14bf1f2)') select('Table', 'cell:Data,14(-188156.96)') # assert_p('Table', 'Content', r'[[NumA, 1, 25, 987654321.12, 987654321.12, 40404040404040404040404040f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -79, ?Б, ffb1], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -68.64, V?, e530], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -68.64, V?, e530], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -20384.80, ?\V?, ffe0e530], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -20384.80, ?\V?, ffe0e530], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -188156.96, ┌\V?, fee0e530], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -188156.96, ┌\V?, fee0e530], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -188156.96, ┌\V?, fee0e530], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 987654321.12, ┌\V?, 00000016fee0e530], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -20384.80, ?\V?, ffe0e530]]') select('Table', 'cell:Data,14(-188156.96)') click('Right') select('Table', 'cell:Data,0(-987654321.12)') assert_p('Table', 'Text', 'cell:Data,0(-987654321.12)') select('Table', 'cell:Hex,0(40404040404040404040404060f9f8f7f6f5f4f3f2f14bf1f2)') assert_p('Table', 'Text', 'cell:Hex,0(40404040404040404040404060f9f8f7f6f5f4f3f2f14bf1f2)') select('Table', 'cell:Data,12(188156.96)') # assert_p('Table', 'Content', r'[[NumA, 1, 25, -987654321.12, -987654321.12, 40404040404040404040404060f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 79, |, 004f], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, 68.64, ?}, 1ad0], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, 68.64, ?}, 1ad0], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, 20384.80, ?}, 001f1ad0], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, 20384.80, ?}, 001f1ad0], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 188156.96, ?}, 011f1ad0], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 188156.96, ?}, 011f1ad0], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 188156.96, ?}, 011f1ad0], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, -987654321.12, ???Z?}, ffffffe9011f1ad0], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -20384.80, ?\V?, ffe0e530]]') select('Table', 'cell:Data,12(188156.96)') click('Right') select('Table', 'cell:Data,14(11969364.96)') assert_p('Table', 'Text', '11969364.96', 'Data,14') select('Table', 'cell:Data,16(11969364.96)') # assert_p('Table', 'Content', '[[NumA, 1, 25, 1987654321.12, 1987654321.12, 404040404040404040404040f1f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -79, ?Б, ffb1], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -130.08, Ы?, cd30], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -130.08, Ы?, cd30], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, 57541.60, №Ы?, 0057cd30], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, 57541.60, №Ы?, 0057cd30], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 11969364.96, т№Ы?, 4757cd30], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 11969364.96, т№Ы?, 4757cd30], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 11969364.96, т№Ы?, 4757cd30], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 1987654321.12, т№Ы?, 0000002e4757cd30], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, 57541.60, №Ы?, 0057cd30]]') select('Table', 'cell:Data,0(1987654321.12)') assert_p('Table', 'Text', 'cell:Data,0(1987654321.12)') select('Table', 'cell:Hex,0(404040404040404040404040f1f9f8f7f6f5f4f3f2f14bf1f2)') assert_p('Table', 'Text', 'cell:Hex,0(404040404040404040404040f1f9f8f7f6f5f4f3f2f14bf1f2)') select('Table', 'cell:Hex,0(404040404040404040404040f1f9f8f7f6f5f4f3f2f14bf1f2)') click('Right') select('Table', 'cell:Data,12(-11969364.96)') # assert_p('Table', 'Content', '[[NumA, 1, 25, -1987654321.12, -1987654321.12, 404040404040404040404060f1f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 79, |, 004f], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, 130.08, }, 32d0], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, 130.08, }, 32d0], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -57541.60, ?y}, ffa832d0], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -57541.60, ?y}, ffa832d0], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -11969364.96, йy}, b8a832d0], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -11969364.96, йy}, b8a832d0], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -11969364.96, йy}, b8a832d0], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, -1987654321.12, ???Jйy}, ffffffd1b8a832d0], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, 57541.60, №Ы?, 0057cd30]]') select('Table', 'cell:Data,16(-11969364.96)') click('Right') select('Table', 'cell:Data,16(-2578234.40)') # assert_p('Table', 'Content', '[[NumA, 1, 25, 21987654321.12, 21987654321.12, 4040404040404040404040f2f1f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -79, ?Б, ffb1], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -48.16, м?, ed30], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -48.16, м?, ed30], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -61652.00, ?~м?, ffa1ed30], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -61652.00, ?~м?, ffa1ed30], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -2578234.40, 0~м?, f0a1ed30], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -2578234.40, 0~м?, f0a1ed30], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -2578234.40, 0~м?, f0a1ed30], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, -2578234.40, ????0~м?, fffffffff0a1ed30], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, -2578234.40, ????0~м?, fffffffff0a1ed30], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 21987654321.12, ?0~м?, 000001fff0a1ed30], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -61652.00, ?~м?, ffa1ed30]]') select('Table', 'cell:Data,0(21987654321.12)') assert_p('Table', 'Text', 'cell:Data,0(21987654321.12)') select('Table', 'cell:Text,0( 21987654321.12)') assert_p('Table', 'Text', 'cell:Text,0( 21987654321.12)') select('Table', 'cell:Hex,0(4040404040404040404040f2f1f9f8f7f6f5f4f3f2f14bf1f2)') assert_p('Table', 'Text', 'cell:Hex,0(4040404040404040404040f2f1f9f8f7f6f5f4f3f2f14bf1f2)') select('Table', 'cell:Hex,0(4040404040404040404040f2f1f9f8f7f6f5f4f3f2f14bf1f2)') click('Right') select('Table', 'cell:Data,8(61652.00)') # assert_p('Table', 'Content', '[[NumA, 1, 25, -21987654321.12, -21987654321.12, 4040404040404040404060f2f1f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, 79, |, 004f], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, 48.16, }, 12d0], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, 48.16, }, 12d0], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, 61652.00, ;}, 005e12d0], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, 61652.00, ;}, 005e12d0], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, 2578234.40, ;}, 0f5e12d0], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, 2578234.40, ;}, 0f5e12d0], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, 2578234.40, ;}, 0f5e12d0], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 2578234.40, ;}, 000000000f5e12d0], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 2578234.40, ;}, 000000000f5e12d0], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, -21987654321.12, ??┌;}, fffffe000f5e12d0], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -61652.00, ?~м?, ffa1ed30]]') select('Table', 'cell:Data,8(61652.00)') click('Right') select('Table', 'cell:Data,0(321987654321.12)') assert_p('Table', 'Text', '321987654321.12', 'Data,0') select('Table', 'cell:Hex,0(40404040404040404040f3f2f1f9f8f7f6f5f4f3f2f14bf1f2)') assert_p('Table', 'Text', 'cell:Hex,0(40404040404040404040f3f2f1f9f8f7f6f5f4f3f2f14bf1f2)') select('Table', 'cell:Data,12(-6043860.00)') # assert_p('Table', 'Content', '[[NumA, 1, 25, 321987654321.12, 321987654321.12, 40404040404040404040f3f2f1f9f8f7f6f5f4f3f2f14bf1f2], [sep0, 26, 1, ;, ;, 5e], [Num0, 27, 2, -79, ?Б, ffb1], [sep1, 29, 1, ;, ;, 5e], [Num1, 30, 2, -130.08, Ы?, cd30], [sep2, 32, 1, ;, ;, 5e], [Num2, 33, 2, -130.08, Ы?, cd30], [sep3, 35, 1, ;, ;, 5e], [Num3, 36, 4, -4062.24, ?9Ы?, fff9cd30], [sep4, 40, 1, ;, ;, 5e], [Num4, 41, 4, -4062.24, ?9Ы?, fff9cd30], [sep5, 45, 1, ;, ;, 5e], [Num5, 46, 4, -6043860.00, ч9Ы?, dbf9cd30], [sep6, 50, 1, ;, ;, 5e], [Num6, 51, 4, -6043860.00, ч9Ы?, dbf9cd30], [sep7, 55, 1, ;, ;, 5e], [Num7, 56, 4, -6043860.00, ч9Ы?, dbf9cd30], [sep8, 60, 1, ;, ;, 5e], [Num8, 61, 8, 3129282266.08, уч9Ы?, 00000048dbf9cd30], [sep9, 69, 1, ;, ;, 5e], [Num9, 70, 8, 3129282266.08, уч9Ы?, 00000048dbf9cd30], [sep10, 78, 1, ;, ;, 5e], [Num10, 79, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep11, 87, 1, ;, ;, 5e], [Num11, 88, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep12, 96, 1, ;, ;, 5e], [Num12, 97, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep13, 105, 1, ;, ;, 5e], [Num13, 106, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep14, 114, 1, ;, ;, 5e], [Num14, 115, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep15, 123, 1, ;, ;, 5e], [Num15, 124, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep16, 132, 1, ;, , 00], [Num16, 133, 8, 321987654321.12, уч9Ы?, 00001d48dbf9cd30], [sep17, 141, 1, ;, ;, 5e], [Num17, 142, 4, -4062.24, ?9Ы?, fff9cd30]]') # ----------------------------------------------------------------------------------- # Do Compare # ----------------------------------------------------------------------------------- commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu') click('*2') select('FileChooser', commonBits.cobolTestDir() + 'mfComp.bin') commonBits.setCobolLayout(select, 'mfComp', 'Open Cobol Micro Focus (Intel)') click('Right') select('TabbedPane', '') select('FileChooser', commonBits.cobolTestDir() + 'zzMainframefComp.bin') commonBits.setCobolLayout(select, 'mainframeComp', 'Mainframe') click('Right') select('TabbedPane', '') select('Table', 'cell:Equivalent Record,0(-1)') select('Table', 'mainframeComp', 'Equivalent Record,0') select('Table', 'cell:Equivalent Record,0(0)') select('Table1', 'cell:Field,2(Num0)') assert_p('Table1', 'Content', '[[NumA, NumA], [sep0, sep0], [Num0, Num0], [sep1, sep1], [Num1, Num1], [sep2, sep2], [Num2, Num2], [sep3, sep3], [Num3, Num3], [sep4, sep4], [Num4, Num4], [sep5, sep5], [Num5, Num5], [sep6, sep6], [Num6, Num6], [sep7, sep7], [Num7, Num7], [sep8, sep8], [Num8, Num8], [sep9, sep9], [Num9, Num9], [sep10, sep10], [Num10, Num10], [sep11, sep11], [Num11, Num11], [sep12, sep12], [Num12, Num12], [sep13, sep13], [Num13, Num13], [sep14, sep14], [Num14, Num14], [sep15, sep15], [Num15, Num15], [sep16, sep16], [Num16, Num16], [sep17, sep17], [Num17, Num17]]') ## select('Table1', '') select('Table', 'cell:Record,0(mfComp)') select('Table', 'cell:Record,0(mfComp)') doubleclick('Table', 'Record,0') assert_p('Table', 'Content', '[[mfComp, mainframeComp]]') select('Table', 'cell:Record,0(mfComp)') click('Right') select('TabbedPane', '') click('Compare') ## assert_p('TextPane', 'Text', 'Files are Identical !!!') assert_p('TextPane', 'Text', '')
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): select( 'FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'AmsLocationTest1.xml') commonBits.doEdit(click) select('LayoutCombo', 'copybook') select('JTreeTable', 'cell:filename,0(AMSLOCATIONTEST1.cbl)') select('JTreeTable', 'cell:Xml~Namespace,0(null)') ###assert_p('JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , ]]') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , ], [, , ******************************, , , , ], [, , * Location Download, , , , ], [, , ******************************, , , , ], [, , , , 173, , ]]' ) rightclick('JTreeTable', commonBits.fl('Tree') + ',1') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:Xml~Prefix,3(******************************)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , ], [, , ******************************, , , , ], [, , * Location Download, , , , ], [, , ******************************, , , , ], [, , , , 173, , ]]' ) select('JTreeTable', 'cell:Xml~Prefix,2(* Location Download)') assert_p('JTreeTable', 'Text', '* Location Download', 'Xml~Prefix,2') select('JTreeTable', 'cell:Xml~Prefix,3(******************************)') assert_p('JTreeTable', 'RowCount', '5') select('JTreeTable', 'cell:Xml~Prefix,3(******************************)') rightclick('JTreeTable', 'Xml~Prefix,4') select_menu(commonBits.fl('Expand Tree')) select('LayoutCombo', 'item') select('JTreeTable', 'cell:name,6(Location-Details)') assert_p('JTreeTable', 'Text', 'Location-Details', 'name,6') select('JTreeTable', 'cell:name,5(Brand)') assert_p('JTreeTable', 'RowCount', '9') select('JTreeTable', 'cell:name,7(Full-Address)') assert_p('JTreeTable', 'Text', 'Full-Address', 'name,7') select('JTreeTable', 'cell:name,8(Location-Active)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('JTreeTable', 'cell:name,8(Location-Active)') rightclick('JTreeTable', 'Xml~Prefix,6') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:Xml~Prefix,7(null)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 4, 05, Location-Number, 4, 4, 9(4), true, True, ], [, , , , 2, 05, Location-Type, 8, 2, XX, , True, ], [, , , , 35, 05, Location-Name, 10, 35, X(35), , True, ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('JTreeTable', 'cell:name,7(Location-Number)') assert_p('JTreeTable', 'Text', 'Location-Number', 'name,7') select('JTreeTable', 'cell:name,8(Location-Type)') assert_p('JTreeTable', 'RowCount', '12') select('JTreeTable', 'cell:name,8(Location-Type)') rightclick('JTreeTable', 'Xml~Prefix,10') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:name,11(Address-Lines)') assert_p('JTreeTable', 'Text', 'Address-Lines', 'name,11') select('JTreeTable', 'cell:name,11(Address-Lines)') rightclick('JTreeTable', 'Xml~Prefix,6') select_menu(commonBits.fl('Collapse Tree')) select('JTreeTable', 'cell:name,10(State)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 115, 05, Address-Lines, 45, 115, , , , ], [, , , , 10, 05, Postcode, 160, 10, 9(10), true, True, ], [, , , , 3, 05, State, 170, 3, XXX, , True, ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('JTreeTable', 'cell:display-length,7(128)') rightclick('JTreeTable', 'display-length,7') select('JTreeTable', 'cell:display-length,8(115)') rightclick('JTreeTable', 'display-length,8') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:name,9(Address-1)') assert_p('JTreeTable', 'Text', 'Address-2', 'name,10') select('JTreeTable', 'cell:name,10(Address-2)') assert_p('JTreeTable', 'RowCount', '15') select('JTreeTable', 'cell:name,11(Address-3)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 115, 05, Address-Lines, 45, 115, , , , ], [, , , , 40, 07, Address-1, 45, 40, X(40), , True, ], [, , , , 40, 07, Address-2, 85, 40, X(40), , True, ], [, , , , 35, 07, Address-3, 125, 35, X(35), , True, ], [, , , , 10, 05, Postcode, 160, 10, 9(10), true, True, ], [, , , , 3, 05, State, 170, 3, XXX, , True, ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('JTreeTable', 'cell:display-length,7(128)') rightclick('JTreeTable', 'display-length,7') select_menu(commonBits.fl('Collapse Tree')) select('JTreeTable', 'cell:name,7(Full-Address)') assert_p('JTreeTable', 'RowCount', '9') select('JTreeTable', 'cell:name,6(Location-Details)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) select('JTreeTable', 'cell:name,7(Full-Address)') rightclick('JTreeTable', 'name,7') select_menu(commonBits.fl('Expand Tree')) select('JTreeTable', 'cell:name,8(Address-Lines)') assert_p('JTreeTable', 'Text', 'Address-1', 'name,9') select('JTreeTable', 'cell:name,10(Address-2)') assert_p('JTreeTable', 'RowCount', '15') select('JTreeTable', 'cell:name,11(Address-3)') assert_p( 'JTreeTable', 'Content', '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, 173, , , , ], [, , , , 3, 03, Brand, 1, 3, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, 41, , , , ], [, , , , 128, 03, Full-Address, 45, 128, , , , ], [, , , , 115, 05, Address-Lines, 45, 115, , , , ], [, , , , 40, 07, Address-1, 45, 40, X(40), , True, ], [, , , , 40, 07, Address-2, 85, 40, X(40), , True, ], [, , , , 35, 07, Address-3, 125, 35, X(35), , True, ], [, , , , 10, 05, Postcode, 160, 10, 9(10), true, True, ], [, , , , 3, 05, State, 170, 3, XXX, , True, ], [, , , , 1, 03, Location-Active, 173, 1, X, , True, ]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): from Modules import commonBits click('Choose File') if window('Open'): select(commonBits.selectPane(), 'utf8a_Ams_LocDownload_20041228.txt') click('Open') close() commonBits.setRecordLayout(select, 'utf8_ams Store') click('Edit1') select('Table', 'cell:4 - 4|Loc Nbr,0(5839)') rightclick('Table', '4 - 4|Loc Nbr,4') select_menu('Edit Record') select('Table', 'cell:Data,3(Bankstown)') ## assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5015, 5015], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Bankstown, Bankstown], [Loc Addr Ln1, 45, 40, Bankstown, Bankstown], [Loc Addr Ln2, 85, 40, Unit 2, 39-41 Allingham Street, Unit 2, 39-41 Allingham Street], [Loc Addr Ln3, 125, 35, Condell Park, Condell Park], [Loc Postcode, 160, 10, 2200, 2200], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]') if commonBits.isMissingCol(): assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5015, 5015], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Bankstown, Bankstown], [Loc Addr Ln1, 45, 40, Bankstown, Bankstown], [Loc Addr Ln2, 85, 40, Unit 2, 39-41 Allingham Street, Unit 2, 39-41 Allingham Street], [Loc Addr Ln3, 125, 35, Condell Park, Condell Park], [Loc Postcode, 160, 10, 2200, 2200], [Loc State, 170, 3, NSW, NSW]]') else: assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5015, 5015], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Bankstown, Bankstown], [Loc Addr Ln1, 45, 40, Bankstown, Bankstown], [Loc Addr Ln2, 85, 40, Unit 2, 39-41 Allingham Street, Unit 2, 39-41 Allingham Street], [Loc Addr Ln3, 125, 35, Condell Park, Condell Park], [Loc Postcode, 160, 10, 2200, 2200], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]') select('Table', 'cell:Data,3(Bankstown)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Choose File') if window('Open'): select(commonBits.selectPane(), 'utf8a_Ams_PODownload_20041231.txt') click('Open') close() commonBits.setRecordLayout(select, 'utf8_ams PO Download') commonBits.doEdit(click) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Choose File') if window('Open'): select(commonBits.selectPane(), 'utf8a_Ams_LocDownload_20041228.txt') click('Open') close() ##assert_p('ComboBox2', 'Text', 'ams Store') click('Edit1') select('Table', 'cell:4 - 4|Loc Nbr,0(5839)') rightclick('Table', '10 - 35|Loc Name,5') select_menu('Edit Record') select('Table', 'cell:Data,4(Penrith)') assert_p('Table', 'Text', 'Penrith', 'Data,4') select('Table', 'cell:Data,4(Penrith)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_PODownload_20041231.txt') commonBits.setRecordLayout(select, 'zzAms PO Download') commonBits.doEdit(click) click('Filter') select('Table', 'false', commonBits.fl('Include') + ',1') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'cell:' + commonBits.fl('Field') + ',0(null)') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'Record Type', commonBits.fl('Field') + ',0') select('Table2', 's', commonBits.fl('Value') + ',0') select('Table2', 'cell:' + commonBits.fl('Value') + ',1()') commonBits.filter(click) select('LayoutCombo', 'ams PO Download: Detail') select('Table', 'cell:3 - 9|Pack Qty,2(50360.0000)') assert_p('Table', 'Text', '50360.0000', '3 - 9|Pack Qty,2') select('Table', 'cell:3 - 9|Pack Qty,4(50430.0000)') assert_p('Table', 'ColumnCount', '9') select('Table', 'cell:3 - 9|Pack Qty,4(50430.0000)') rightclick('Table', '3 - 9|Pack Qty,2') select_menu(commonBits.fl('Edit Record')) ## select('LayoutCombo', 'ams PO Download: Detail') ## select('Table1', 'cell:3 - 9|Pack Qty,4(50430.0000)') select('Table', 'cell:' + commonBits.fl('Data') + ',3(550450000000)') ## assert_p('Table', 'Content', '[[Record Type, 1, 2, S1, S1], [Pack Qty, 3, 9, 50360.0000, 503600000], [Pack Cost, 12, 13, 3504300.0000, 0035043000000], [APN, 25, 13, 550450000000, 0550450000000], [Filler, 38, 1, 5, 5], [Product, 39, 8, 33315071, 33315071], [pmg dtl tech key, 72, 15, 004507600000004, 004507600000004], [Case Pack id, 87, 15, 507900000002509, 507900000002509], [Product Name, 101, 50, 9400000004512800000003, 9400000004512800000003]]') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5036, 5036], [Pack Quantity 1, 7, 8, 3, 00000003], [DC Number 2, 15, 4, 5043, 5043], [Pack Quantity 2, 19, 8, 5, 00000005], [DC Number 4, 39, 4, 3331, 3331], [Pack Quantity 4, 43, 8, 50710003, 50710003], [DC Number 5, 51, 4, 5065, 5065], [Pack Quantity 5, 55, 8, 4, 00000004], [DC Number 6, 63, 4, 5069, 5069], [Pack Quantity 6, 67, 8, 4, 00000004], [DC Number 7, 75, 4, 5076, 5076], [Pack Quantity 7, 79, 8, 4, 00000004], [DC Number 8, 87, 4, 5079, 5079], [Pack Quantity 8, 91, 8, 2, 00000002], [DC Number 9, 99, 4, 5094, 5094], [Pack Quantity 9, 103, 8, 4, 00000004], [DC Number 10, 111, 4, 5128, 5128], [Pack Quantity 10, 115, 8, 3, 00000003]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(004507600000004)') assert_p('Table', 'Text', '5065', commonBits.fl('Data') + ',7') select('Table', 'cell:' + commonBits.fl('Data') + ',6(004507600000004)') click('TextArea') assert_p( 'TextArea', 'Text', 'S1503600000003504300000005504500000005333150710003506500000004506900000004507600000004507900000002509400000004512800000003' ) click('Right') ## select('LayoutCombo', 'ams PO Download: Detail') select('Table', 'cell:' + commonBits.fl('Data') + ',3(350720000000)') ## assert_p('Table', 'Content', '[[Record Type, 1, 2, S1, S1], [Pack Qty, 3, 9, 51510.0000, 515100000], [Pack Cost, 12, 13, 4518000.0000, 0045180000000], [APN, 25, 13, 350720000000, 0350720000000], [Filler, 38, 1, 2, 2], [Product, 39, 8, 51730000, 51730000], [pmg dtl tech key, 72, 15, 000 00000000, 000 00000000], [Case Pack id, 87, 15, 00000000, 00000000], [Product Name, 101, 50, 00000000 00000000, 00000000 00000000]]') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5151, 5151], [Pack Quantity 1, 7, 8, 4, 00000004], [DC Number 2, 15, 4, 5180, 5180], [Pack Quantity 2, 19, 8, 3, 00000003], [DC Number 4, 39, 4, 5173, 5173], [Pack Quantity 4, 43, 8, 2, 00000002], [DC Number 5, 51, 4, , ], [Pack Quantity 5, 55, 8, 0, 00000000], [DC Number 6, 63, 4, , ], [Pack Quantity 6, 67, 8, 0, 00000000], [DC Number 7, 75, 4, , ], [Pack Quantity 7, 79, 8, 0, 00000000], [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]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(350720000000)') click('TextArea') assert_p( 'TextArea', 'Text', 'S1515100000004518000000003507200000002517300000002 00000000 00000000 00000000 00000000 00000000 00000000' ) click('Right') ## select('LayoutCombo', 'ams PO Download: Detail') select('Table', 'cell:' + commonBits.fl('Data') + ',3(150650000000)') assert_p('Table', 'Text', '1', commonBits.fl('Data') + ',4') select('Table', 'cell:' + commonBits.fl('Data') + ',5(33315156)') ## assert_p('Table', 'Content', '[[Record Type, 1, 2, S1, S1], [Pack Qty, 3, 9, 50430.0000, 504300000], [Pack Cost, 12, 13, 1504500.0000, 0015045000000], [APN, 25, 13, 150650000000, 0150650000000], [Filler, 38, 1, 1, 1], [Product, 39, 8, 33315156, 33315156], [pmg dtl tech key, 72, 15, 000 00000000, 000 00000000], [Case Pack id, 87, 15, 00000000, 00000000], [Product Name, 101, 50, 00000000 00000000, 00000000 00000000]]') 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 2, 15, 4, 5045, 5045], [Pack Quantity 2, 19, 8, 1, 00000001], [DC Number 4, 39, 4, 3331, 3331], [Pack Quantity 4, 43, 8, 51560001, 51560001], [DC Number 5, 51, 4, , ], [Pack Quantity 5, 55, 8, 0, 00000000], [DC Number 6, 63, 4, , ], [Pack Quantity 6, 67, 8, 0, 00000000], [DC Number 7, 75, 4, , ], [Pack Quantity 7, 79, 8, 0, 00000000], [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]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',5(33315156)') click('TextArea') select('Table', 'cell:' + commonBits.fl('Data') + ',6(000 00000000)') select('Table', 'cell:' + commonBits.fl('Data') + ',6(000 00000000)') click('TextArea') assert_p( 'TextArea', 'Text', 'S1504300000001504500000001506500000001333151560001 00000000 00000000 00000000 00000000 00000000 00000000' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'MF_VB_Test.bin') select('ComboBox2', 'Unknown Format') commonBits.doEdit(click) if window(''): select('Table', 'cell:J,1(P)') assert_p( 'Table', 'Content', '[[T, A, R, 5, 0, 1, 5, S, T, B, a, n, k, s, t, o, w, n, , , , , , , , , , , , , , , , , , , , , , , , , , , B, a, n, k, s, t, o, w, n, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , U, n, i, t, , 2, ,, , 3, 9, -, 4, 1, , A, l, l, i, n, g, h, a, m, , S, t, r, e, e, t, , , , , , , , , , , C, o, n, d, e, l, l, , P, a, r, k, , , , , , , , , , , , , , , , , , , , , , , , 2, 2, 0, 0, , , , , , , N, S, W, A], [T, A, R, 5, 0, 1, 9, S, T, P, e, n, r, i, t, h, , , , , , , , , , , , , , , , , , , , , , , , , , , , , P, e, n, r, i, t, h, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 5, 8, , L, e, l, a, n, d, , S, t, r, e, e, t, , , , , , , , , , , , , , , , , , , , , , , , , P, e, n, r, i, t, h, , , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 7, 5, 0, , , , , , , N, S, W, A], [T, A, R, 5, 0, 3, 3, S, T, B, l, a, c, k, t, o, w, n, , , , , , , , , , , , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , D, o, c, k, , 2, ,, , 1, 1, , M, e, l, i, s, s, a, , P, l, a, c, e, , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 1, 4, 8, , , , , , , N, S, W, A], [T, A, R, 5, 0, 3, 5, S, T, R, o, c, k, d, a, l, e, , , , , , , , , , , , , , , , , , , , , , , , , , , , B, u, i, l, d, i, n, g, , B, ,, , , P, o, r, t, s, i, d, e, , D, C, , , , , , , , , , , , , , , , , 2, -, 8, , M, c, , P, h, e, r, s, o, n, , S, t, r, e, e, t, , , , , , , , , , , , , , , , , , , , B, o, t, a, n, y, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 0, 1, 9, , , , , , , N, S, W, A], [T, A, R, 5, 0, 3, 7, S, T, M, i, r, a, n, d, a, , , , , , , , , , , , , , , , , , , , , , , , , , , , , W, e, s, t, f, i, e, l, d, , S, h, o, p, p, i, n, g, t, o, w, n, , , , , , , , , , , , , , , , , , , C, n, r, ., , U, r, u, n, g, a, , P, d, e, , &, , T, h, e, , K, i, n, g, s, w, a, y, , , , , , , , , , , M, i, r, a, n, d, a, , , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 2, 2, 8, , , , , , , N, S, W, A], [T, A, R, 5, 0, 5, 2, S, T, E, a, s, t, w, o, o, d, , , , , , , , , , , , , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , O, f, f, s, i, t, e, , R, e, s, e, r, v, e, , , , , , , , , , , , , , , , , 1, 1, , M, e, l, i, s, s, a, , P, l, a, c, e, , , , , , , , , , , , , , , , , , , , , , , , , M, a, r, a, y, o, n, g, , , , , , , , , , , , , , , , , , , , , , , , , , , , 2, 1, 4, 8, , , , , , , N, S, W, A]]' ) select('Table', 'cell:J,1(P)') # assert_p('BmKeyedComboBox', 'Text', '4') assert_p('BmKeyedComboBox', 'Text', commonBits.fl('Mainframe VB (rdw based) Binary')) commonBits.doSleep() click(commonBits.fl('Go')) commonBits.doSleep() close() commonBits.doSleep() select_menu( commonBits.fl('Window') + '>>MF_VB_Test.bin>>' + commonBits.fl('Table:')) select( 'Table', 'cell:1 - 1|Data,1(TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA)' ) assert_p( 'Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA]]' ) select( 'Table', 'cell:1 - 1|Data,1(TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA)' ) select('LayoutCombo', commonBits.fl('Full Line')) select( 'Table', 'cell:' + commonBits.fl('Full Line') + ',1(TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA)' ) assert_p( 'Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA]]' ) select( 'Table', 'cell:' + commonBits.fl('Full Line') + ',1(TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA)' ) select('LayoutCombo', commonBits.fl('Hex 1 Line')) assert_p( 'Table', 'Text', 'e3c1d9f5f0f1f5e2e3c2819592a2a396a6954040404040404040404040404040404040404040404040404040c2819592a2a396a69540404040404040404040404040404040404040404040404040404040404040e49589a340f26b40f3f960f4f140c1939389958788819440e2a3998585a340404040404040404040c396958485939340d78199924040404040404040404040404040404040404040404040f2f2f0f0404040404040d5e2e6c1', ' + 1|' + commonBits.fl('Hex (1 Line)') + ',0') assert_p( 'Table', 'Text', 'e3c1d9f5f0f1f9e2e3d785959989a38840404040404040404040404040404040404040404040404040404040d785959989a388404040404040404040404040404040404040404040404040404040404040404040f5f840d3859381958440e2a3998585a3404040404040404040404040404040404040404040404040d785959989a38840404040404040404040404040404040404040404040404040404040f2f7f5f0404040404040d5e2e6c1', ' + 1|' + commonBits.fl('Hex (1 Line)') + ',1') assert_p( 'Table', 'Text', 'e3c1d9f5f0f3f3e2e3c293818392a396a6954040404040404040404040404040404040404040404040404040d4819981a89695874040404040404040404040404040404040404040404040404040404040404040c496839240f26b40f1f140d4859389a2a28140d79381838540404040404040404040404040404040d4819981a8969587404040404040404040404040404040404040404040404040404040f2f1f4f8404040404040d5e2e6c1', ' + 1|' + commonBits.fl('Hex (1 Line)') + ',2') assert_p( 'Table', 'Text', 'e3c1d9f5f0f3f5e2e3d996839284819385404040404040404040404040404040404040404040404040404040c2a489938489958740c26b4040d79699a3a289848540c4c340404040404040404040404040404040f260f840d48340d7888599a2969540e2a3998585a340404040404040404040404040404040404040c296a38195a84040404040404040404040404040404040404040404040404040404040f2f0f1f9404040404040d5e2e6c1', ' + 1|' + commonBits.fl('Hex (1 Line)') + ',3') assert_p( 'Table', 'Text', 'e3c1d9f5f0f3f7e2e3d489998195848140404040404040404040404040404040404040404040404040404040e685a2a3868985938440e288969797899587a396a695404040404040404040404040404040404040c395994b40e499a495878140d78485405040e3888540d2899587a2a681a840404040404040404040d489998195848140404040404040404040404040404040404040404040404040404040f2f2f2f8404040404040d5e2e6c1', ' + 1|' + commonBits.fl('Hex (1 Line)') + ',4') assert_p( 'Table', 'Text', 'e3c1d9f5f0f5f2e2e3c581a2a3a6969684404040404040404040404040404040404040404040404040404040d4819981a896958740d68686a289a38540d985a28599a58540404040404040404040404040404040f1f140d4859389a2a28140d793818385404040404040404040404040404040404040404040404040d4819981a8969587404040404040404040404040404040404040404040404040404040f2f1f4f8404040404040d5e2e6c1', ' + 1|' + commonBits.fl('Hex (1 Line)') + ',5') select('LayoutCombo', commonBits.fl('Hex 2 Lines (Mainframe Style)')) assert_p( 'Table', 'Text', '''T A R 5 0 1 5 S T B a n k s t o w n B a n k s t o w n U n i t 2 , 3 9 - 4 1 A l l i n g h a m S t r e e t C o n d e l l P a r k 2 2 0 0 N S W A e3c1d9f5f0f1f5e2e3c2819592a2a396a6954040404040404040404040404040404040404040404040404040c2819592a2a396a69540404040404040404040404040404040404040404040404040404040404040e49589a340f26b40f3f960f4f140c1939389958788819440e2a3998585a340404040404040404040c396958485939340d78199924040404040404040404040404040404040404040404040f2f2f0f0404040404040d5e2e6c1''', ' + 1|' + commonBits.fl('Hex (2 Lines)') + ',0') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') assert_p( 'Table', 'Text', '''T A R 5 0 1 9 S T P e n r i t h P e n r i t h 5 8 L e l a n d S t r e e t P e n r i t h 2 7 5 0 N S W A e3c1d9f5f0f1f9e2e3d785959989a38840404040404040404040404040404040404040404040404040404040d785959989a388404040404040404040404040404040404040404040404040404040404040404040f5f840d3859381958440e2a3998585a3404040404040404040404040404040404040404040404040d785959989a38840404040404040404040404040404040404040404040404040404040f2f7f5f0404040404040d5e2e6c1''', ' + 1|' + commonBits.fl('Hex (2 Lines)') + ',1') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') assert_p( 'Table', 'Text', '''T A R 5 0 3 3 S T B l a c k t o w n M a r a y o n g D o c k 2 , 1 1 M e l i s s a P l a c e M a r a y o n g 2 1 4 8 N S W A e3c1d9f5f0f3f3e2e3c293818392a396a6954040404040404040404040404040404040404040404040404040d4819981a89695874040404040404040404040404040404040404040404040404040404040404040c496839240f26b40f1f140d4859389a2a28140d79381838540404040404040404040404040404040d4819981a8969587404040404040404040404040404040404040404040404040404040f2f1f4f8404040404040d5e2e6c1''', ' + 1|' + commonBits.fl('Hex (2 Lines)') + ',2') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') assert_p( 'Table', 'Text', '''T A R 5 0 3 5 S T R o c k d a l e B u i l d i n g B , P o r t s i d e D C 2 - 8 M c P h e r s o n S t r e e t B o t a n y 2 0 1 9 N S W A e3c1d9f5f0f3f5e2e3d996839284819385404040404040404040404040404040404040404040404040404040c2a489938489958740c26b4040d79699a3a289848540c4c340404040404040404040404040404040f260f840d48340d7888599a2969540e2a3998585a340404040404040404040404040404040404040c296a38195a84040404040404040404040404040404040404040404040404040404040f2f0f1f9404040404040d5e2e6c1''', ' + 1|' + commonBits.fl('Hex (2 Lines)') + ',3') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') ## assert_p('Table', 'Text', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') ## assert_p('Table', 'Text', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') rightclick( 'Table', ' + 1|' + commonBits.fl('Hex (2 Lines)') + ',1') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') assert_p( 'Table', 'Content', '[[Data, 1, 1, TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA, T, e3c1d9f5f0f1f9e2e3d785959989a38840404040404040404040404040404040404040404040404040404040d785959989a388404040404040404040404040404040404040404040404040404040404040404040f5f840d3859381958440e2a3998585a3404040404040404040404040404040404040404040404040d785959989a38840404040404040404040404040404040404040404040404040404040f2f7f5f0404040404040d5e2e6c1]]' ) select('CheckBox', 'false') select('Table', 'cell:' + commonBits.fl('Hex') + ',0([B@db7e08)') assert_p( 'Table', 'Text', '''TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSW ecdffffeed8998a84444444444444444444444444444d8998a8444444444444444444444444444444444ff4d898984ea988a444444444444444444444444d8998a84444444444444444444444444444ffff444444dee 3195019237559938000000000000000000000000000075599380000000000000000000000000000000005803531540239553000000000000000000000000755993800000000000000000000000000002750000000526''', commonBits.fl('Hex') + ',0') ## assert_p('Table', 'Content', '[[Data, 1, 1, TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA, T, [B@fc519b]]') ## assert_p('Table', 'Content', '[[Data, 1, 1, TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA, T, [B@fc519b]]') select('Table', 'cell:' + commonBits.fl('Hex') + ',0([B@106ef07)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select( 'Table', 'cell: + 1|' + commonBits.fl('Hex (2 Lines)') + ',1([B@150b06b)') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin') commonBits.setRecordLayout(select, 'DTAR020') commonBits.doEdit(click) select_menu('View>>Sorted Field Tree') # select('List', 'DTAR020') # select('List', 'DTAR020') select('Table', 'cell:Field,0( )') # select('List', 'DTAR020') select('Table', 'DEPT-NO', 'Field,0') select('Table', 'DATE', 'Field,1') select('Table', 'cell:Field,1(DATE)') select('Table1', 'cell:Function,3()') select('Table', 'cell:Field,1(DATE)') select('Table1', 'Maximum', 'Function,3') select('Table1', 'Sum', 'Function,4') select('Table1', 'Sum', 'Function,5') select('Table1', 'cell:Function,5(Sum)') click('Build Tree') select('JTreeTable', 'cell:DEPT-NO,0(60)') assert_p('JTreeTable', 'Text', '60', 'DEPT-NO,0') select('JTreeTable', 'cell:SALE-PRICE,0(8.74)') assert_p('JTreeTable', 'Text', '8.74', 'SALE-PRICE,0') select('JTreeTable', 'cell:SALE-PRICE,1(166.94)') assert_p('JTreeTable', 'Text', '87.46', 'SALE-PRICE,2') select('JTreeTable', 'cell:SALE-PRICE,2(87.46)') assert_p('JTreeTable', 'Text', '87.46', 'SALE-PRICE,2') select('JTreeTable', 'cell:DEPT-NO,3(160)') assert_p('JTreeTable', 'Text', '160', 'DEPT-NO,3') select('JTreeTable', 'cell:QTY-SOLD,3(-1)') assert_p('JTreeTable', 'Text', '3', 'QTY-SOLD,4') select('JTreeTable', 'cell:QTY-SOLD,1(8)') assert_p('JTreeTable', 'Text', '-1', 'QTY-SOLD,3') select_menu('File>>Save Tree as XML') if window('Open'): ## select('FilePane$3', 'x1DTAR020.bin.xml') ## select('File Name', 'x1DTAR020.bin.xml') if commonBits.isWindowsLook(): select(commonBits.selectPane(), 'xx2DTAR020.bin.xml') else: select('File Name', 'xx2DTAR020.bin.xml') click('Open') close() click('Open') select('FileChooser', commonBits.sampleDir() + 'xx2DTAR020.bin.xml') commonBits.doEdit(click) ##------------------------------------------------- rightclick('JTreeTable', 'Tree,0') # select_menu('Fully Expand Tree') select_menu('Expand Tree') select('LayoutCombo', 'DEPT-NO') #-------------------------------------------------- select('JTreeTable', 'cell:DEPT-NO,1(998)') select('JTreeTable', 'cell:DEPT-NO,1(998)') select('JTreeTable', 'cell:SALE-PRICE,1(2996.75)') select('JTreeTable', 'cell:Xml~Prefix,1(null)') rightclick('JTreeTable', 'Xml~Prefix,1') select_menu('Expand Tree') select('JTreeTable', 'cell:SALE-PRICE,1(2996.75)') assert_p('JTreeTable', 'Text', '8.44', 'SALE-PRICE,6') select('JTreeTable', 'cell:SALE-PRICE,2(8.74)') assert_p('JTreeTable', 'Text', '1', 'QTY-SOLD,9') select('JTreeTable', 'cell:SALE-PRICE,3(166.94)') assert_p('JTreeTable', 'Text', '135.00', 'SALE-PRICE,12') select('JTreeTable', 'cell:SALE-PRICE,4(87.46)') assert_p('JTreeTable', 'Text', '-4.00', 'SALE-PRICE,11') select('JTreeTable', 'cell:Key,5(160)') assert_p('JTreeTable', 'Text', '220', 'Key,8') select('JTreeTable', 'cell:SALE-PRICE,7(150.26)') assert_p('JTreeTable', 'Text', '7', 'QTY-SOLD,13') select('JTreeTable', 'cell:Xml~Prefix,2(null)') rightclick('JTreeTable', 'Xml~Prefix,2') select_menu('Edit Record') select('JTreeTable', 'cell:Xml~Prefix,2(null)') select('Table', 'cell:Data,6(8.74)') assert_p('Table', 'Text', '8.74', 'Data,6') select('Table', 'cell:Data,4(60)') assert_p( 'Table', 'Content', '[[Xml~Name, 0, , DEPT-NO, DEPT-NO], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Key, 5, , 60, 60], [DEPT-NO, 6, , 60, 60], [QTY-SOLD, 7, , 1, 1], [SALE-PRICE, 8, , 8.74, 8.74], [Xml~End, 1, , , ], [Following~Text, 2, , , ]]' ) click('Right') select('Table', 'cell:Data,3(40118)') select('Table', 'cell:Data,3(40118)') assert_p('Table', 'Text', '1', 'Data,5') select('Table', 'cell:Data,6(8.74)') assert_p( 'Table', 'Content', '[[Xml~Name, 0, , DATE, DATE], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Key, 5, , 40118, 40118], [DEPT-NO, 6, , 60, 60], [QTY-SOLD, 7, , 1, 1], [SALE-PRICE, 8, , 8.74, 8.74], [Xml~End, 1, , , ], [Following~Text, 2, , , ]]' ) click('Right') select('Table', 'cell:Data,3(60614646)') select('Table', 'cell:Data,3(60614646)') assert_p('Table', 'Text', '60614646', 'Data,3') select('Table', 'cell:Data,5(40118)') assert_p( 'Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 60614646, 60614646], [STORE-NO, 6, , 166, 166], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 60, 60], [QTY-SOLD, 9, , 1, 1], [SALE-PRICE, 10, , 6.00, 6.00], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]' ) click('Right') click('Right') select('Table', 'cell:Data,3(69644897)') select('Table', 'cell:Data,3(69644897)') assert_p('Table', 'Text', '166', 'Data,4') select('Table', 'cell:Data,5(40118)') assert_p( 'Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 69644897, 69644897], [STORE-NO, 6, , 166, 166], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 60, 60], [QTY-SOLD, 9, , 1, 1], [SALE-PRICE, 10, , 5.08, 5.08], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]' ) select('Table', 'cell:Data,6(60)') select('Table', 'cell:Data,6(60)') assert_p('Table', 'Text', '1', 'Data,7') select('Table', 'cell:Data,6(60)') click('Right') select('Table', 'cell:Data,3(68654655)') select('Table', 'cell:Data,3(68654655)') assert_p( 'Table', 'Content', '[[Xml~Name, 0, , DTAR020, DTAR020], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [KEYCODE-NO, 5, , 68654655, 68654655], [STORE-NO, 6, , 166, 166], [DATE, 7, , 40118, 40118], [DEPT-NO, 8, , 60, 60], [QTY-SOLD, 9, , 1, 1], [SALE-PRICE, 10, , 5.08, 5.08], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228.txt') click(commonBits.fl('Choose File')) if window('Open'): click('Open') close() commonBits.setRecordLayout(select, 'ams Store') commonBits.doEdit(click) ## click(commonBits.fl('Edit') + '1') click('Filter') select('Table1', 'Loc Type', commonBits.fl('Field') + ',0') select('Table1', 'dc', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Value') + ',0()') commonBits.filter(click) select('Table', 'cell:10 - 35|Loc Name,2(NSW North Sydney Ad Support)') rightclick('Table', '10 - 35|Loc Name,2') select('Table', 'cell:10 - 35|Loc Name,2(NSW North Sydney Ad Support)') assert_p( 'Table', 'Content', '[[TAR, 5839, DC, DC - Taras Ave, , 30-68 Taras Ave, Altona North, 3025, VIC, A], [TAR, 5850, DC, VIC West Ad Support, , Lot 2 Little Boundary Rd, Laverton, 3028, VIC, A], [TAR, 5853, DC, NSW North Sydney Ad Support, , , , , , A], [TAR, 5866, DC, WA Ad Support, , , , , , A], [TAR, 5700, DC, Head Office, , , , , , A], [TAR, 5887, DC, QLD Ad Support, , , , , , A], [TAR, 5888, DC, SA Ad Support, , , , , , A], [TAR, 5109, DC, National Ad Support, , , , , , A], [TAR, 5895, DC, VIC East Ad Support, , , , , , A], [TAR, 5897, DC, Sydney Gate DC, No 2 Sydney Gate, 830 Bourke Street, Waterloo, 2017, NSW, A], [TAR, 5949, DC, Central Returns Centre, , 214-228 Blackshaws Rd, Altona North, , VIC, A], [TAR, 5951, DC, NSW West Sydney Ad Support, , , , , , A], [TAR, 5952, DC, TAS Ad Support, , , , , , A], [TAR, 5953, DC, North Geelong Warehouse, Target Head Office, 12 Thompson Road, North Geelong, 3215, VIC, A], [TAR, 5954, DC, State Warehouse NSW, Target State Warehouse NSW (Westgate), Warehouse D Murtha Street, Arndell Park, 2148, NSW, A], [TAR, 5955, DC, State Warehouse VIC, Target State Warehouse VIC (Patricks), 180 Fitzgerald Road, Laverton, 3028, VIC, A], [TAR, 5957, DC, State Warehouse SA, Target State Warehouse (Patricks), 180 Fitzgerald Road, Laverton, 3028, VIC, A], [TAR, 5958, DC, State Warehouse WA, Target State Warehouse (WA) FCL, 56 Dowd Street, Welshpool, 6106, WA, A], [TAR, 5956, DC, State Warehouse QLD, Target State Warehouse QLD (RMS), 243 Bradman Street, Acacia Ridge, 4110, QLD, A], [TAR, 5959, DC, NSW South Sydney Ad Support, South Sydney Ad Support, 753 Hume Highway, Bass Hill, , NSW, A], [TAR, 5960, DC, NSW East Sydney Ad Support, Building B, Portside Distribution Ce, 2 - 8 Mc Pherson Street,, Botany, 2019, NSW, A], [TAR, 5963, DC, QLD South Ad Support, , , , , , A], [TAR, 5964, DC, QLD North Ad Support, , , , , , A], [TAR, 5965, DC, Canning Vale DC, Canning Vale DC, Cnr Nicholson & Bannister Rd\'s, Canning Vale, 6155, WA, A], [TAR, 5966, DC, Huntingwood DC, Huntingwood DC, 35 Huntingwood Drive, Huntingwood, 2148, NSW, A], [TAR, 5967, DC, Hendra DC, Hendra DC, Cnr Headly Ave & Nudgee Road, Hendra, 4011, QLD, A], [TAR, 5968, DC, Beverly DC, Beverly DC, 117 Main Street, Beverly, 5009, SA, A], [TAR, 5969, DC, Woodlands DC (DO NOT USE), Woodlands DC, Lot 9 Mills Road, Braeside, 3195, VIC, A]]' ) select('Table', 'cell:10 - 35|Loc Name,2(NSW North Sydney Ad Support)') assert_p('Table', 'RowCount', '28') select('Table', 'cell:10 - 35|Loc Name,2(NSW North Sydney Ad Support)') doubleclick('BaseDisplay$HeaderToolTips', '4 - 4|Loc Nbr') select('Table', 'cell:10 - 35|Loc Name,0(National Ad Support)') assert_p( 'Table', 'Content', '[[TAR, 5109, DC, National Ad Support, , , , , , A], [TAR, 5700, DC, Head Office, , , , , , A], [TAR, 5839, DC, DC - Taras Ave, , 30-68 Taras Ave, Altona North, 3025, VIC, A], [TAR, 5850, DC, VIC West Ad Support, , Lot 2 Little Boundary Rd, Laverton, 3028, VIC, A], [TAR, 5853, DC, NSW North Sydney Ad Support, , , , , , A], [TAR, 5866, DC, WA Ad Support, , , , , , A], [TAR, 5887, DC, QLD Ad Support, , , , , , A], [TAR, 5888, DC, SA Ad Support, , , , , , A], [TAR, 5895, DC, VIC East Ad Support, , , , , , A], [TAR, 5897, DC, Sydney Gate DC, No 2 Sydney Gate, 830 Bourke Street, Waterloo, 2017, NSW, A], [TAR, 5949, DC, Central Returns Centre, , 214-228 Blackshaws Rd, Altona North, , VIC, A], [TAR, 5951, DC, NSW West Sydney Ad Support, , , , , , A], [TAR, 5952, DC, TAS Ad Support, , , , , , A], [TAR, 5953, DC, North Geelong Warehouse, Target Head Office, 12 Thompson Road, North Geelong, 3215, VIC, A], [TAR, 5954, DC, State Warehouse NSW, Target State Warehouse NSW (Westgate), Warehouse D Murtha Street, Arndell Park, 2148, NSW, A], [TAR, 5955, DC, State Warehouse VIC, Target State Warehouse VIC (Patricks), 180 Fitzgerald Road, Laverton, 3028, VIC, A], [TAR, 5956, DC, State Warehouse QLD, Target State Warehouse QLD (RMS), 243 Bradman Street, Acacia Ridge, 4110, QLD, A], [TAR, 5957, DC, State Warehouse SA, Target State Warehouse (Patricks), 180 Fitzgerald Road, Laverton, 3028, VIC, A], [TAR, 5958, DC, State Warehouse WA, Target State Warehouse (WA) FCL, 56 Dowd Street, Welshpool, 6106, WA, A], [TAR, 5959, DC, NSW South Sydney Ad Support, South Sydney Ad Support, 753 Hume Highway, Bass Hill, , NSW, A], [TAR, 5960, DC, NSW East Sydney Ad Support, Building B, Portside Distribution Ce, 2 - 8 Mc Pherson Street,, Botany, 2019, NSW, A], [TAR, 5963, DC, QLD South Ad Support, , , , , , A], [TAR, 5964, DC, QLD North Ad Support, , , , , , A], [TAR, 5965, DC, Canning Vale DC, Canning Vale DC, Cnr Nicholson & Bannister Rd\'s, Canning Vale, 6155, WA, A], [TAR, 5966, DC, Huntingwood DC, Huntingwood DC, 35 Huntingwood Drive, Huntingwood, 2148, NSW, A], [TAR, 5967, DC, Hendra DC, Hendra DC, Cnr Headly Ave & Nudgee Road, Hendra, 4011, QLD, A], [TAR, 5968, DC, Beverly DC, Beverly DC, 117 Main Street, Beverly, 5009, SA, A], [TAR, 5969, DC, Woodlands DC (DO NOT USE), Woodlands DC, Lot 9 Mills Road, Braeside, 3195, VIC, A]]' ) select('Table', 'cell:4 - 4|Loc Nbr,2(5839)') assert_p('Table', 'Text', '5839', '4 - 4|Loc Nbr,2') doubleclick('BaseDisplay$HeaderToolTips', '10 - 35|Loc Name') select('Table', 'cell:10 - 35|Loc Name,1(Canning Vale DC)') assert_p( 'Table', 'Content', '[[TAR, 5968, DC, Beverly DC, Beverly DC, 117 Main Street, Beverly, 5009, SA, A], [TAR, 5965, DC, Canning Vale DC, Canning Vale DC, Cnr Nicholson & Bannister Rd\'s, Canning Vale, 6155, WA, A], [TAR, 5949, DC, Central Returns Centre, , 214-228 Blackshaws Rd, Altona North, , VIC, A], [TAR, 5839, DC, DC - Taras Ave, , 30-68 Taras Ave, Altona North, 3025, VIC, A], [TAR, 5700, DC, Head Office, , , , , , A], [TAR, 5967, DC, Hendra DC, Hendra DC, Cnr Headly Ave & Nudgee Road, Hendra, 4011, QLD, A], [TAR, 5966, DC, Huntingwood DC, Huntingwood DC, 35 Huntingwood Drive, Huntingwood, 2148, NSW, A], [TAR, 5959, DC, NSW South Sydney Ad Support, South Sydney Ad Support, 753 Hume Highway, Bass Hill, , NSW, A], [TAR, 5960, DC, NSW East Sydney Ad Support, Building B, Portside Distribution Ce, 2 - 8 Mc Pherson Street,, Botany, 2019, NSW, A], [TAR, 5853, DC, NSW North Sydney Ad Support, , , , , , A], [TAR, 5951, DC, NSW West Sydney Ad Support, , , , , , A], [TAR, 5109, DC, National Ad Support, , , , , , A], [TAR, 5953, DC, North Geelong Warehouse, Target Head Office, 12 Thompson Road, North Geelong, 3215, VIC, A], [TAR, 5887, DC, QLD Ad Support, , , , , , A], [TAR, 5964, DC, QLD North Ad Support, , , , , , A], [TAR, 5963, DC, QLD South Ad Support, , , , , , A], [TAR, 5888, DC, SA Ad Support, , , , , , A], [TAR, 5954, DC, State Warehouse NSW, Target State Warehouse NSW (Westgate), Warehouse D Murtha Street, Arndell Park, 2148, NSW, A], [TAR, 5958, DC, State Warehouse WA, Target State Warehouse (WA) FCL, 56 Dowd Street, Welshpool, 6106, WA, A], [TAR, 5956, DC, State Warehouse QLD, Target State Warehouse QLD (RMS), 243 Bradman Street, Acacia Ridge, 4110, QLD, A], [TAR, 5957, DC, State Warehouse SA, Target State Warehouse (Patricks), 180 Fitzgerald Road, Laverton, 3028, VIC, A], [TAR, 5955, DC, State Warehouse VIC, Target State Warehouse VIC (Patricks), 180 Fitzgerald Road, Laverton, 3028, VIC, A], [TAR, 5897, DC, Sydney Gate DC, No 2 Sydney Gate, 830 Bourke Street, Waterloo, 2017, NSW, A], [TAR, 5952, DC, TAS Ad Support, , , , , , A], [TAR, 5895, DC, VIC East Ad Support, , , , , , A], [TAR, 5850, DC, VIC West Ad Support, , Lot 2 Little Boundary Rd, Laverton, 3028, VIC, A], [TAR, 5866, DC, WA Ad Support, , , , , , A], [TAR, 5969, DC, Woodlands DC (DO NOT USE), Woodlands DC, Lot 9 Mills Road, Braeside, 3195, VIC, A]]' ) select('Table', 'cell:10 - 35|Loc Name,1(Canning Vale DC)') rightclick('Table', '10 - 35|Loc Name,1') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:10 - 35|Loc Name,1(Canning Vale DC)') select( 'Table', 'cell:' + commonBits.fl('Data') + ',5(Cnr Nicholson & Bannister Rd\'s)') assert_p( 'Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5965, 5965], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, Canning Vale DC, Canning Vale DC], [Loc Addr Ln1, 45, 40, Canning Vale DC, Canning Vale DC], [Loc Addr Ln2, 85, 40, Cnr Nicholson & Bannister Rd\'s, Cnr Nicholson & Bannister Rd\'s], [Loc Addr Ln3, 125, 35, Canning Vale, Canning Vale], [Loc Postcode, 160, 10, 6155, 6155], [Loc State, 170, 3, WA, WA], [Loc Actv Ind, 173, 1, A, A]]' ) select( 'Table', 'cell:' + commonBits.fl('Data') + ',5(Cnr Nicholson & Bannister Rd\'s)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',5(214-228 Blackshaws Rd)') assert_p('Table', 'Text', '214-228 Blackshaws Rd', commonBits.fl('Data') + ',5') select('Table', 'cell:' + commonBits.fl('Data') + ',5(214-228 Blackshaws Rd)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') #click('WindowsInternalFrameTitlePane', 627, 14) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select_menu('Record Layouts>>Load Copybook') select('FileChooser', commonBits.xmlCopybookDir() + 'yyAms PO Download.Xml') select('BmKeyedComboBox1', 'Other') click('Go') rightclick('TextArea') assert_p( 'TextArea', 'Text', ''' -->> ''' + commonBits.xmlCopybookDir() + '''yyAms PO Download.Xml processed Copybook: yyAms PO Download''') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') click('Reload from DB') select('FileChooser', commonBits.sampleDir() + 'zzAms_PODownload_20041231.txt') select('ComboBox1', 'Other') select_menu('Record Layouts>>Edit Layout') select('TextField', 'yy%') select('TextField1', '%') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Child Records') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') ## click('ScrollPane$ScrollBar', 12, 112) click('Reload from DB') ## select('ComboBox2', 'yyAms PO Download') commonBits.setRecordLayout(select, 'yyAms PO Download') commonBits.doEdit(click) select('Table', 'cell:3 - 4|DC Number 1,0(4534)') rightclick('Table', '1 - 2|Record Type,0') ## select('Table', 'cell:3 - 4|DC Number 1,0(4534)') select_menu('Edit Record') ## select('Table1', 'cell:3 - 4|DC Number 1,0(4534)') select('Table', 'cell:Data,3(286225)') 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], [Filler, 38, 1, , ], [Product, 39, 8, 43314531, 43314531], [pmg dtl tech key, 72, 15, 2075359, 2075359], [Case Pack id, 87, 15, 45614531, 45614531], [Product Name, 101, 50, DONKEY 24-006607 SHWL WRAP CARD, DONKEY 24-006607 SHWL WRAP CARD]]' ) click('TextArea') assert_p( 'TextArea', 'Text', 'D100007000000000000000022222500000000 43314531000000054540000007 2075359 45614531 DONKEY 24-006607 SHWL WRAP CARD ' ) click('Left') select('Table', 'cell:Data,4(040909)') 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:Data,4(040909)') click('TextArea') assert_p( 'TextArea', 'Text', 'H1453490000006060286225 040909 00 200 0501020501075965 LADIES KNICFT' ) doubleclick('Right') doubleclick('Right') select('Table', 'cell:Data,9(5151)') 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 2, 15, 4, 5045, 5045], [Pack Quantity 2, 19, 8, 1, 00000001], [DC Number 4, 39, 4, 5076, 5076], [Pack Quantity 4, 43, 8, 1, 00000001], [DC Number 5, 51, 4, 5079, 5079], [Pack Quantity 5, 55, 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]]' ) select_menu('Record Layouts>>Edit Layout') select('TextField', 'yy%') select('TextField1', '%') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Child Records') select('Table', 'cell:Description,0()') # click('Delete3') select('TextField', 'yyAms PO Download') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Child Records') click('Delete3') if window('Delete: yyAms PO Download'): click('Yes') close() # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Fields') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Fields') select('TextField', 'yyAms PO Download%') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Fields') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Fields') select('TextField', 'yyAms PO Download: A%') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Extras') # select('TabbedPane', 'Fields') click('Delete3') if window('Delete: yyAms PO Download: Allocation'): click('Yes') close() select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') select('TextField', 'yyAms PO Download: H%') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') click('Delete3') if window('Delete: yyAms PO Download: Header'): click('Yes') close() select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') select('TextField', 'yyAms PO Download: %') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') select('TabbedPane', 'Extras') select('TabbedPane', 'Extras') select('TabbedPane', 'Fields') click('Delete3') if window('Delete: yyAms PO Download: Detail'): click('Yes') close() close()