def test():
    from Modules import commonBits

    java_recorded_version = "1.5.0_11"

    if window("Protocol Buffer Editor"):
        select("FileChooser", commonBits.sampleDir() + "Ams_LocDownload_20041228_Extract2.bin")
        ##commonBits.setRecordLayout(select, 'ams Store')
        click("Edit1")
        select_menu("Data>>Sort")
        # select('List', 'Locations')
        select("Table", "Loc_Type", "Field,0")
        select("Table", "Loc_Nbr", "Field,1")
        select("Table", "cell:Field,1(Loc_Nbr)")
        click("Sort1")
        select("Table", "cell:4|Loc_Name,6(Ringwood)")
        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, 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, 5002, ST, Coffs Harbour, Coffs Harbour, Cnr. Park Beach Road & Pacific Hwy, Coffs Harbour, 2450, NSW, A], [TAR, 5012, ST, Ringwood, Ringwood, Seymour Street, Ringwood, 3134, VIC, A], [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, 5030, ST, Epping, Epping Plaza Shopping Centre, Cnr. High & Cooper Streets, Epping, 3076, VIC, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5054, ST, Highpoint City, Laverton, Lot 2, Cnr Lt Boundry & Old Geelong Road, Laverton, 3028, VIC, A], [TAR, 5062, ST, Castletown, Townsville, Cnr. Woolcock St. & Kings Road, Townsville, 4810, QLD, A], [TAR, 5096, ST, Canberra Civic, Target Canberra, Canberra City Centre, Akuna Ave, Canberra, 2601, ACT, A], [TAR, 5138, ST, Cairns Central, Cairns, Cnr. McLeod & Aplin Streets, Cairns, 4870, QLD, A], [TAR, 5141, ST, The Willows, Thuringowa Central, Cnr Thuringowa Drive &  Range Rd, Thuringowa Central, 4817, QLD, A], [TAR, 5146, ST, Palmerston, Palmerston Shopping Centre, Temple Terrace, Palmerston, 830, NT, A]]",
        )
        select("Table", "cell:4|Loc_Name,6(Ringwood)")
        click("BasicInternalFrameTitlePane$NoFocusButton2")

        if window("Save Changes to file: " + commonBits.sampleDir() + "Ams_LocDownload_20041228_Extract2.bin"):
            click("No")
        close()
    close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
		#commonBits.setRecordLayout(select, 'ams Store')
		click('Edit1')
		select('Table', 'rows:[1,2,3,4,5,6,7,8,9,10,11,12,13],columns:[4|Loc_Name]')
		select_menu('Data>>Table View #{Selected Records#}')
##		select('Table2', 'rows:[1,2,3,4,5,6,7,8,9,10,11,12,13],columns:[4|Loc_Name]')
		select('Table', 'rows:[2,3,4],columns:[3|Loc_Type]')
		select_menu('Edit>>Copy Record#{s#}')
		select('Table', 'cell:3|Loc_Type,11(ST)')
		select_menu('Edit>>Paste Record#{s#} Prior')
##		select('Table', 'cell:3|Loc_Type,10(ST)')
		assert_p('Table', 'Content', '[[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, 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], [TAR, 5866, DC, WA Ad Support, , , , , , A], [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, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, 2197, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A]]')
		select('Table', 'cell:3|Loc_Type,10(ST)')
		rightclick('Table', '4|Loc_Name,10')
		select_menu('Edit Record')
##		select('Table1', 'cell:3|Loc_Type,10(ST)')
		select('Table', 'cell:Data,5(Charles Hackett Drive)')
		assert_p('Table', 'Text', 'Charles Hackett Drive', 'Data,5')
		select('Table', 'cell:Data,4(St. Mary\'s)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5060, 5060], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , St Marys, St Marys], [Loc_Addr_Ln1, 5, , St. Mary\'s, St. Mary\'s], [Loc_Addr_Ln2, 6, , Charles Hackett Drive, Charles Hackett Drive], [Loc_Addr_Ln3, 7, , St Mary\'s, St Mary\'s], [Loc_Postcode, 8, , 2760, 2760], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		select('Table', 'cell:Data,4(St. Mary\'s)')
		click('Right')
		click('Right')
		select('Table', 'cell:Data,5(Unit 2, 39-41 Allingham Street)')
		assert_p('Table', 'Text', 'Unit 2, 39-41 Allingham Street', 'Data,5')
		select('Table', 'cell:Data,4(Bankstown)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5015, 5015], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Bankstown, Bankstown], [Loc_Addr_Ln1, 5, , Bankstown, Bankstown], [Loc_Addr_Ln2, 6, , Unit 2, 39-41 Allingham Street, Unit 2, 39-41 Allingham Street], [Loc_Addr_Ln3, 7, , Condell Park, Condell Park], [Loc_Postcode, 8, , 2200, 2200], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		select('Table', 'cell:Data,4(Bankstown)')
		click('Right')
		select('Table', 'cell:Data,5(58 Leland Street)')
		assert_p('Table', 'Text', 'cell:Data,5(58 Leland Street)')
		select('Table', 'cell:Data,4(Penrith)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5019, 5019], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Penrith, Penrith], [Loc_Addr_Ln1, 5, , Penrith, Penrith], [Loc_Addr_Ln2, 6, , 58 Leland Street, 58 Leland Street], [Loc_Addr_Ln3, 7, , Penrith, Penrith], [Loc_Postcode, 8, , 2750, 2750], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		select('Table', 'cell:Data,4(Penrith)')
		click('Right')
		select('Table', 'cell:Data,5(753 Hume Highway)')
		assert_p('Table', 'Text', 'cell:Data,5(753 Hume Highway)')
		select('Table', 'cell:Data,4(Bass Hill Plaza)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5070, 5070], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Bass Hill, Bass Hill], [Loc_Addr_Ln1, 5, , Bass Hill Plaza, Bass Hill Plaza], [Loc_Addr_Ln2, 6, , 753 Hume Highway, 753 Hume Highway], [Loc_Addr_Ln3, 7, , Bass Hill, Bass Hill], [Loc_Postcode, 8, , 2197, 2197], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		select('Table', 'cell:Data,4(Bass Hill Plaza)')
		click('Right')
		select('Table', 'cell:Data,5(303 Queen Street)')
		assert_p('Table', 'Text', 'cell:Data,5(303 Queen Street)')
		select('Table', 'cell:Data,4(Campbelltown Mall)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5074, 5074], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Campbelltown, Campbelltown], [Loc_Addr_Ln1, 5, , Campbelltown Mall, Campbelltown Mall], [Loc_Addr_Ln2, 6, , 303 Queen Street, 303 Queen Street], [Loc_Addr_Ln3, 7, , Campbelltown, Campbelltown], [Loc_Postcode, 8, , 2560, 2560], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		select('Table', 'cell:Data,4(Campbelltown Mall)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		#click('WindowsInternalFrameTitlePane', 883, 7)
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin'):
			click('No')
		close()
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_22'

	if window('Protocol Buffer Editor'):
		select('File_Txt', commonBits.sampleDir() + 'protoStoreSales7.bin')
		click('Edit1')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,0(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,0')
		select_menu('Collapse Tree')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,1(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,1')
		select_menu('Collapse Tree')
		assert_p('LineTreeChild.FileDisplay_JTbl', 'Content', '[[, , 20, Store: 20], [, , 59, Store: 59], [, , 166, Store: 166], [, , 184, Store: 184]]')
		select('LineTreeChild.FileDisplay_JTbl', 'rows:[1,2],columns:[Tree]')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,2')
		select_menu('Copy Record#{s#}')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,0(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,0')
		select_menu('Paste Record#{s#} Prior')
##		select('LineTreeChild.FileDisplay_JTbl', '')
		assert_p('LineTreeChild.FileDisplay_JTbl', 'Content', '[[, , 59, Store: 59], [, , 166, Store: 166], [, , 20, Store: 20], [, , 59, Store: 59], [, , 166, Store: 166], [, , 184, Store: 184]]')
		select_menu('Utilities>>Compare with Disk')
		assert_p('Table', 'Content', '[[, , , , , , , , , , ], [, Inserted, 1, 59, Store: 59, , , , , , ], [, , , , , , , , , , ], [, Inserted, 2, 335, Department: 335, , , , , , ], [, , , , , , , , , , ], [, Inserted, 3, 61664713, [40118, 40118], [1, -1], [17990, -17990], [SALE, RETURN], [17.99, -17.99], [17.99, -17.99], [\'\',\' -1\']], [, , , , , , , , , , ], [, Inserted, 4, 61684613, [40118], [1], [12990], [SALE], [12.99], [12.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 5, 1, 12990, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 6, 410, Department: 410, , , , , , ], [, , , , , , , , , , ], [, Inserted, 7, 68634752, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 8, 1, 8990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 9, 620, Department: 620, , , , , , ], [, , , , , , , , , , ], [, Inserted, 10, 60664659, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 11, 60694698, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 12, 2, 7980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 13, 878, Department: 878, , , , , , ], [, , , , , , , , , , ], [, Inserted, 14, 60614487, [40118], [1], [5950], [SALE], [5.95], [5.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 15, 63644339, [40118], [1], [12650], [SALE], [12.65], [12.65], [\'\']], [, , , , , , , , , , ], [, Inserted, 16, 2, 18600, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 17, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 18, 67674686, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 19, 1, 3990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 20, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 21, 62684217, [40118], [1], [9990], [SALE], [9.99], [9.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 22, 64614401, [40118, 40118], [1, 1], [1990, 1990], [SALE, SALE], [1.99, 1.99], [1.99, 1.99], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 23, 64624770, [40118], [1], [2590], [SALE], [2.59], [2.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 24, 4, 16560, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 25, 61684613, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 26, 68634752, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 27, 60664659, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 28, 60694698, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 29, 60614487, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 30, 63644339, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 31, 67674686, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 32, 62684217, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 33, 64614401, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 34, 64624770, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 35, 11, 69110, 13, , , , , ], [, , , , , , , , , , ], [, Inserted, 36, 166, Store: 166, , , , , , ], [, , , , , , , , , , ], [, Inserted, 37, 60, Department: 60, , , , , , ], [, , , , , , , , , , ], [, Inserted, 38, 60614646, [40118], [1], [6000], [SALE], [6.0], [6.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 39, 60614707, [40118], [1], [6000], [SALE], [6.0], [6.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 40, 68654655, [40118], [1], [5080], [SALE], [5.08], [5.08], [\'\']], [, , , , , , , , , , ], [, Inserted, 41, 69644897, [40118], [1], [5080], [SALE], [5.08], [5.08], [\'\']], [, , , , , , , , , , ], [, Inserted, 42, 69654084, [40118], [1], [6000], [SALE], [6.0], [6.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 43, 5, 28160, 5, , , , , ], [, , , , , , , , , , ], [, Inserted, 44, 80, Department: 80, , , , , , ], [, , , , , , , , , , ], [, Inserted, 45, 60604100, [40118], [1], [13300], [SALE], [13.3], [13.3], [\'\']], [, , , , , , , , , , ], [, Inserted, 46, 69624033, [40118], [1], [18190], [SALE], [18.19], [18.19], [\'\']], [, , , , , , , , , , ], [, Inserted, 47, 2, 31490, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 48, 170, Department: 170, , , , , , ], [, , , , , , , , , , ], [, Inserted, 49, 68674560, [40118], [1], [5990], [SALE], [5.99], [5.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 50, 1, 5990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 51, 193, Department: 193, , , , , , ], [, , , , , , , , , , ], [, Inserted, 52, 62694485, [40118], [1], [17560], [SALE], [17.56], [17.56], [\'\']], [, , , , , , , , , , ], [, Inserted, 53, 62694706, [40118], [1], [13590], [SALE], [13.59], [13.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 54, 62694843, [40118], [1], [13590], [SALE], [13.59], [13.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 55, 67644384, [40118], [1], [23960], [SALE], [23.96], [23.96], [\'\']], [, , , , , , , , , , ], [, Inserted, 56, 68664211, [40118], [1], [11190], [SALE], [11.19], [11.19], [\'\']], [, , , , , , , , , , ], [, Inserted, 57, 69644164, [40118], [1], [21590], [SALE], [21.59], [21.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 58, 6, 101480, 6, , , , , ], [, , , , , , , , , , ], [, Inserted, 59, 220, Department: 220, , , , , , ], [, , , , , , , , , , ], [, Inserted, 60, 64674633, [40118], [1], [15990], [SALE], [15.99], [15.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 61, 1, 15990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 62, 230, Department: 230, , , , , , ], [, , , , , , , , , , ], [, Inserted, 63, 69644961, [40118], [1], [9600], [SALE], [9.6], [9.6], [\'\']], [, , , , , , , , , , ], [, Inserted, 64, 1, 9600, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 65, 235, Department: 235, , , , , , ], [, , , , , , , , , , ], [, Inserted, 66, 64604513, [40118], [1], [16990], [SALE], [16.99], [16.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 67, 64674965, [40118, 40118, 40118], [1, -1, 1], [19990, -19990, 12000], [SALE, RETURN, SALE], [19.99, -19.99, 12.0], [19.99, -19.99, 12.0], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 68, 2, 28990, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 69, 250, Department: 250, , , , , , ], [, , , , , , , , , , ], [, Inserted, 70, 69604743, [40118], [1], [29950], [SALE], [29.95], [29.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 71, 1, 29950, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 72, 261, Department: 261, , , , , , ], [, , , , , , , , , , ], [, Inserted, 73, 60624523, [40118], [1], [12000], [SALE], [12.0], [12.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 74, 60624864, [40118], [1], [15000], [SALE], [15.0], [15.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 75, 62694605, [40118], [1], [25000], [SALE], [25.0], [25.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 76, 69634261, [40118], [1], [12000], [SALE], [12.0], [12.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 77, 69634263, [40118, 40118, 40118], [1, -1, 1], [25000, -25000, 12000], [SALE, RETURN, SALE], [25.0, -25.0, 12.0], [25.0, -25.0, 12.0], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 78, 69634660, [40118], [1], [12000], [SALE], [12.0], [12.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 79, 69634922, [40118], [1], [19000], [SALE], [19.0], [19.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 80, 69644909, [40118], [1], [9000], [SALE], [9.0], [9.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 81, 8, 116000, 10, , , , , ], [, , , , , , , , , , ], [, Inserted, 82, 265, Department: 265, , , , , , ], [, , , , , , , , , , ], [, Inserted, 83, 62684207, [40118], [1], [19000], [SALE], [19.0], [19.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 84, 62684580, [40118], [1], [19000], [SALE], [19.0], [19.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 85, 69644602, [40118], [1], [19000], [SALE], [19.0], [19.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 86, 3, 57000, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 87, 270, Department: 270, , , , , , ], [, , , , , , , , , , ], [, Inserted, 88, 60664241, [40118], [1], [9000], [SALE], [9.0], [9.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 89, 60664302, [40118], [1], [9000], [SALE], [9.0], [9.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 90, 63634768, [40118], [1], [12000], [SALE], [12.0], [12.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 91, 69694959, [40118], [1], [11990], [SALE], [11.99], [11.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 92, 4, 41990, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 93, 275, Department: 275, , , , , , ], [, , , , , , , , , , ], [, Inserted, 94, 63654066, [40118], [1], [24990], [SALE], [24.99], [24.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 95, 1, 24990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 96, 280, Department: 280, , , , , , ], [, , , , , , , , , , ], [, Inserted, 97, 64624081, [40118], [1], [26240], [SALE], [26.24], [26.24], [\'\']], [, , , , , , , , , , ], [, Inserted, 98, 69684947, [40118], [1], [22490], [SALE], [22.49], [22.49], [\'\']], [, , , , , , , , , , ], [, Inserted, 99, 2, 48730, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 100, 320, Department: 320, , , , , , ], [, , , , , , , , , , ], [, Inserted, 101, 62664576, [40118], [1], [9720], [SALE], [9.72], [9.72], [\'\']], [, , , , , , , , , , ], [, Inserted, 102, 63634260, [40118], [1], [5590], [SALE], [5.59], [5.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 103, 63654450, [40118], [1], [13990], [SALE], [13.99], [13.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 104, 63684449, [40118], [1], [16990], [SALE], [16.99], [16.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 105, 4, 46290, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 106, 335, Department: 335, , , , , , ], [, , , , , , , , , , ], [, Inserted, 107, 62604139, [40118], [1], [7990], [SALE], [7.99], [7.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 108, 1, 7990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 109, 355, Department: 355, , , , , , ], [, , , , , , , , , , ], [, Inserted, 110, 62634862, [40118], [1], [11890], [SALE], [11.89], [11.89], [\'\']], [, , , , , , , , , , ], [, Inserted, 111, 62654800, [40118], [1], [19990], [SALE], [19.99], [19.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 112, 69624221, [40118], [1], [16990], [SALE], [16.99], [16.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 113, 3, 48870, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 114, 360, Department: 360, , , , , , ], [, , , , , , , , , , ], [, Inserted, 115, 66674979, [40118], [1], [4500], [SALE], [4.5], [4.5], [\'\']], [, , , , , , , , , , ], [, Inserted, 116, 69694685, [40118], [1], [6990], [SALE], [6.99], [6.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 117, 69694814, [40118, 40118], [1, 1], [2500, 2500], [SALE, SALE], [2.5, 2.5], [2.5, 2.5], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 118, 69694937, [40118], [1], [2500], [SALE], [2.5], [2.5], [\'\']], [, , , , , , , , , , ], [, Inserted, 119, 5, 18990, 5, , , , , ], [, , , , , , , , , , ], [, Inserted, 120, 366, Department: 366, , , , , , ], [, , , , , , , , , , ], [, Inserted, 121, 62614014, [40118], [1], [14990], [SALE], [14.99], [14.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 122, 1, 14990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 123, 370, Department: 370, , , , , , ], [, , , , , , , , , , ], [, Inserted, 124, 62624382, [40118, 40118, 40118, 40118, 40118, 40118, 40118, 40118], [1, -1, 1, 1, -1, -1, 1, 1], [18980, -18980, 18980, 18980, -18980, -18980, 18980, 18980], [SALE, RETURN, SALE, SALE, RETURN, RETURN, SALE, SALE], [18.98, -18.98, 18.98, 18.98, -18.98, -18.98, 18.98, 18.98], [18.98, -18.98, 18.98, 18.98, -18.98, -18.98, 18.98, 18.98], [\'\',\' -1\',\' -1 1\',\' -1 1 1\',\' -1 1 1 -1\',\' -1 1 1 -1 -1\',\' -1 1 1 -1 -1 1\',\' -1 1 1 -1 -1 1 1\']], [, , , , , , , , , , ], [, Inserted, 125, 62664231, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 126, 62664347, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 127, 68614651, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 128, 5, 59930, 11, , , , , ], [, , , , , , , , , , ], [, Inserted, 129, 375, Department: 375, , , , , , ], [, , , , , , , , , , ], [, Inserted, 130, 62684907, [40118], [1], [13990], [SALE], [13.99], [13.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 131, 62694193, [40118, 40118, 40118], [1, -1, 1], [13990, -13990, 11990], [SALE, RETURN, SALE], [13.99, -13.99, 11.99], [13.99, -13.99, 11.99], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 132, 2, 25980, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 133, 395, Department: 395, , , , , , ], [, , , , , , , , , , ], [, Inserted, 134, 60614265, [40118, 40118, 40118, 40118, 40118, 40118, 40118], [1, 1, -1, -1, 1, -1, 1], [15990, 15990, -15990, -15990, 15990, -15990, 12800], [SALE, SALE, RETURN, RETURN, SALE, RETURN, SALE], [15.99, 15.99, -15.99, -15.99, 15.99, -15.99, 12.8], [15.99, 15.99, -15.99, -15.99, 15.99, -15.99, 12.8], [\'\',\' 1\',\' 1 -1\',\' 1 -1 -1\',\' 1 -1 -1 1\',\' 1 -1 -1 1 -1\',\' 1 -1 -1 1 -1 1\']], [, , , , , , , , , , ], [, Inserted, 135, 63614741, [40118], [1], [27990], [SALE], [27.99], [27.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 136, 2, 40790, 8, , , , , ], [, , , , , , , , , , ], [, Inserted, 137, 405, Department: 405, , , , , , ], [, , , , , , , , , , ], [, Inserted, 138, 62614815, [40118], [1], [20000], [SALE], [20.0], [20.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 139, 1, 20000, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 140, 410, Department: 410, , , , , , ], [, , , , , , , , , , ], [, Inserted, 141, 63684098, [40118, 40118, 40118], [1, 1, 1], [1980, 1980, 1980], [SALE, SALE, SALE], [1.98, 1.98, 1.98], [1.98, 1.98, 1.98], [\'\',\' 1\',\' 1 1\']], [, , , , , , , , , , ], [, Inserted, 142, 64684719, [40118], [1], [9990], [SALE], [9.99], [9.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 143, 4, 15930, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 144, 415, Department: 415, , , , , , ], [, , , , , , , , , , ], [, Inserted, 145, 62684548, [40118, 40118], [1, 1], [39990, 39990], [SALE, SALE], [39.99, 39.99], [39.99, 39.99], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 146, 2, 79980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 147, 432, Department: 432, , , , , , ], [, , , , , , , , , , ], [, Inserted, 148, 61694741, [40118], [1], [9060], [SALE], [9.06], [9.06], [\'\']], [, , , , , , , , , , ], [, Inserted, 149, 62614534, [40118], [1], [9090], [SALE], [9.09], [9.09], [\'\']], [, , , , , , , , , , ], [, Inserted, 150, 62664568, [40118], [1], [5990], [SALE], [5.99], [5.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 151, 62694387, [40118], [1], [7990], [SALE], [7.99], [7.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 152, 4, 32130, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 153, 440, Department: 440, , , , , , ], [, , , , , , , , , , ], [, Inserted, 154, 64684534, [40118], [1], [14990], [SALE], [14.99], [14.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 155, 1, 14990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 156, 455, Department: 455, , , , , , ], [, , , , , , , , , , ], [, Inserted, 157, 62664151, [40118], [1], [25000], [SALE], [25.0], [25.0], [\'\']], [, , , , , , , , , , ], [, Inserted, 158, 1, 25000, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 159, 471, Department: 471, , , , , , ], [, , , , , , , , , , ], [, Inserted, 160, 62664674, [40118], [1], [24990], [SALE], [24.99], [24.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 161, 1, 24990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 162, 475, Department: 475, , , , , , ], [, , , , , , , , , , ], [, Inserted, 163, 62694575, [40118], [1], [14990], [SALE], [14.99], [14.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 164, 1, 14990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 165, 485, Department: 485, , , , , , ], [, , , , , , , , , , ], [, Inserted, 166, 64674609, [40118], [1], [29990], [SALE], [29.99], [29.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 167, 1, 29990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 168, 500, Department: 500, , , , , , ], [, , , , , , , , , , ], [, Inserted, 169, 60624185, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 170, 60624314, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 171, 2, 17980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 172, 520, Department: 520, , , , , , ], [, , , , , , , , , , ], [, Inserted, 173, 62684028, [40118], [1], [29990], [SALE], [29.99], [29.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 174, 1, 29990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 175, 650, Department: 650, , , , , , ], [, , , , , , , , , , ], [, Inserted, 176, 62634996, [40118], [1], [9990], [SALE], [9.99], [9.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 177, 1, 9990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 178, 670, Department: 670, , , , , , ], [, , , , , , , , , , ], [, Inserted, 179, 61674701, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 180, 63654007, [40118], [1], [56990], [SALE], [56.99], [56.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 181, 2, 60980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 182, 685, Department: 685, , , , , , ], [, , , , , , , , , , ], [, Inserted, 183, 61684889, [40118, 40118], [1, 1], [4490, 4490], [SALE, SALE], [4.49, 4.49], [4.49, 4.49], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 184, 2, 8980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 185, 801, Department: 801, , , , , , ], [, , , , , , , , , , ], [, Inserted, 186, 64604876, [40118, 40118], [1, 1], [29620, 29620], [SALE, SALE], [29.62, 29.62], [29.62, 29.62], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 187, 64644495, [40118, 40118], [1, 1], [29650, 29650], [SALE, SALE], [29.65, 29.65], [29.65, 29.65], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 188, 67624103, [40118], [1], [16500], [SALE], [16.5], [16.5], [\'\']], [, , , , , , , , , , ], [, Inserted, 189, 5, 135040, 5, , , , , ], [, , , , , , , , , , ], [, Inserted, 190, 805, Department: 805, , , , , , ], [, , , , , , , , , , ], [, Inserted, 191, 60684907, [40118], [1], [5500], [SALE], [5.5], [5.5], [\'\']], [, , , , , , , , , , ], [, Inserted, 192, 1, 5500, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 193, 830, Department: 830, , , , , , ], [, , , , , , , , , , ], [, Inserted, 194, 65604476, [40118], [1], [19950], [SALE], [19.95], [19.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 195, 1, 19950, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 196, 845, Department: 845, , , , , , ], [, , , , , , , , , , ], [, Inserted, 197, 62654454, [40118], [1], [5950], [SALE], [5.95], [5.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 198, 64634712, [40118], [1], [3900], [SALE], [3.9], [3.9], [\'\']], [, , , , , , , , , , ], [, Inserted, 199, 2, 9850, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 200, 851, Department: 851, , , , , , ], [, , , , , , , , , , ], [, Inserted, 201, 62674092, [40118], [1], [15990], [SALE], [15.99], [15.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 202, 62694170, [40118], [1], [16990], [SALE], [16.99], [16.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 203, 2, 32980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 204, 870, Department: 870, , , , , , ], [, , , , , , , , , , ], [, Inserted, 205, 63624299, [40118], [1], [10990], [SALE], [10.99], [10.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 206, 63624367, [40118], [1], [11190], [SALE], [11.19], [11.19], [\'\']], [, , , , , , , , , , ], [, Inserted, 207, 2, 22180, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 208, 902, Department: 902, , , , , , ], [, , , , , , , , , , ], [, Inserted, 209, 68644966, [40118, 40118, 40118], [1, -1, 1], [12500, -12500, 10], [SALE, RETURN, SALE], [12.5, -12.5, 0.01], [12.5, -12.5, 0.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 210, 69614229, [40118], [1], [15950], [SALE], [15.95], [15.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 211, 2, 15960, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 212, 904, Department: 904, , , , , , ], [, , , , , , , , , , ], [, Inserted, 213, 63694928, [40118], [1], [11490], [SALE], [11.49], [11.49], [\'\']], [, , , , , , , , , , ], [, Inserted, 214, 69664661, [40118], [1], [14950], [SALE], [14.95], [14.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 215, 2, 26440, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 216, 905, Department: 905, , , , , , ], [, , , , , , , , , , ], [, Inserted, 217, 60654072, [40118, 40118], [1, 1], [4330, 4330], [SALE, SALE], [4.33, 4.33], [4.33, 4.33], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 218, 68604583, [40118, 40118, 40118, 40118, 40118], [1, -1, 1, -1, 1], [15990, -15990, 15990, -15990, 12800], [SALE, RETURN, SALE, RETURN, SALE], [15.99, -15.99, 15.99, -15.99, 12.8], [15.99, -15.99, 15.99, -15.99, 12.8], [\'\',\' -1\',\' -1 1\',\' -1 1 -1\',\' -1 1 -1 1\']], [, , , , , , , , , , ], [, Inserted, 219, 68614329, [40118], [1], [39990], [SALE], [39.99], [39.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 220, 69614011, [40118], [1], [6990], [SALE], [6.99], [6.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 221, 5, 68440, 9, , , , , ], [, , , , , , , , , , ], [, Inserted, 222, 910, Department: 910, , , , , , ], [, , , , , , , , , , ], [, Inserted, 223, 69674069, [40118], [1], [10490], [SALE], [10.49], [10.49], [\'\']], [, , , , , , , , , , ], [, Inserted, 224, 1, 10490, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 225, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 226, 60694417, [40118], [1], [650], [SALE], [0.65], [0.65], [\'\']], [, , , , , , , , , , ], [, Inserted, 227, 63634081, [40118], [1], [3890], [SALE], [3.89], [3.89], [\'\']], [, , , , , , , , , , ], [, Inserted, 228, 65694328, [40118], [1], [590], [SALE], [0.59], [0.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 229, 67664645, [40118], [1], [1390], [SALE], [1.39], [1.39], [\'\']], [, , , , , , , , , , ], [, Inserted, 230, 67664966, [40118, 40118], [1, 1], [890, 890], [SALE, SALE], [0.89, 0.89], [0.89, 0.89], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 231, 6, 8300, 6, , , , , ], [, , , , , , , , , , ], [, Inserted, 232, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 233, 62664909, [40118], [1], [3290], [SALE], [3.29], [3.29], [\'\']], [, , , , , , , , , , ], [, Inserted, 234, 62674492, [40118, 40118], [1, 1], [1490, 1490], [SALE, SALE], [1.49, 1.49], [1.49, 1.49], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 235, 62674751, [40118], [1], [1990], [SALE], [1.99], [1.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 236, 64654284, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 237, 66624253, [40118, 40118], [1, 1], [3490, 3490], [SALE, SALE], [3.49, 3.49], [3.49, 3.49], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 238, 66624829, [40118], [1], [1990], [SALE], [1.99], [1.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 239, 8, 21220, 8, , , , , ], [, , , , , , , , , , ], [, Inserted, 240, 970, Department: 970, , , , , , ], [, , , , , , , , , , ], [, Inserted, 241, 67634503, [40118], [1], [24990], [SALE], [24.99], [24.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 242, 1, 24990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 243, 60614646, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 244, 60614707, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 245, 68654655, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 246, 69644897, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 247, 69654084, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 248, 60604100, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 249, 69624033, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 250, 68674560, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 251, 62694485, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 252, 62694706, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 253, 62694843, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 254, 67644384, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 255, 68664211, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 256, 69644164, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 257, 64674633, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 258, 69644961, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 259, 64604513, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 260, 64674965, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 261, 69604743, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 262, 60624523, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 263, 60624864, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 264, 62694605, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 265, 69634261, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 266, 69634263, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 267, 69634660, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 268, 69634922, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 269, 69644909, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 270, 62684207, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 271, 62684580, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 272, 69644602, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 273, 60664241, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 274, 60664302, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 275, 63634768, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 276, 69694959, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 277, 63654066, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 278, 64624081, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 279, 69684947, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 280, 62664576, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 281, 63634260, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 282, 63654450, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 283, 63684449, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 284, 62604139, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 285, 62634862, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 286, 62654800, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 287, 69624221, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 288, 66674979, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 289, 69694685, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 290, 69694814, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 291, 69694937, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 292, 62614014, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 293, 62624382, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 294, 62664231, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 295, 62664347, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 296, 68614651, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 297, 62684907, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 298, 62694193, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 299, 60614265, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 300, 63614741, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 301, 62614815, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 302, 63684098, 3, , , , , , ], [, , , , , , , , , , ], [, Inserted, 303, 64684719, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 304, 62684548, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 305, 61694741, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 306, 62614534, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 307, 62664568, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 308, 62694387, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 309, 64684534, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 310, 62664151, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 311, 62664674, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 312, 62694575, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 313, 64674609, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 314, 60624185, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 315, 60624314, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 316, 62684028, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 317, 62634996, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 318, 61674701, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 319, 63654007, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 320, 61684889, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 321, 64604876, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 322, 64644495, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 323, 67624103, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 324, 60684907, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 325, 65604476, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 326, 62654454, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 327, 64634712, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 328, 62674092, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 329, 62694170, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 330, 63624299, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 331, 63624367, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 332, 68644966, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 333, 69614229, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 334, 63694928, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 335, 69664661, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 336, 60654072, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 337, 68604583, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 338, 68614329, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 339, 69614011, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 340, 69674069, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 341, 60694417, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 342, 63634081, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 343, 65694328, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 344, 67664645, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 345, 67664966, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 346, 62664909, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 347, 62674492, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 348, 62674751, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 349, 64654284, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 350, 66624253, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 351, 66624829, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 352, 67634503, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 353, 122, 1591450, 146, , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window(r'Save Changes to file: ' + commonBits.sampleDir() + 'protoStoreSales7.bin'):
			click('No')
		close()
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select_menu('Utilities>>Compare Menu')
		click('*2')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare.bin')
		click('Right')
		select('TabbedPane', '')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales.bin')
		select('FileChooser1', commonBits.stdCopybookDir() + 'StoreSales.protocomp')
		click('Right')
		select('TabbedPane', '')
##		assert_p('Table', 'Content', '[[Product, 0], [Order, -1], [Summary, -1], [Deptartment, 1], [Store, 2]]')
		assert_p('Table', 'Content', '[[Product, Product], [Order,  ], [Summary,  ], [Deptartment, Deptartment], [Store, Store]]')
#		select('Table', 'cell:Record,0(Product)')
#		select('Table1', 'cell:Equivalent Field,0(keycode)')
#		select('Table', 'cell:Record,0(Product)')
#		select('Table1', '', 'Equivalent Field,0')
#		select('Table1', '', 'Equivalent Field,1')
#		select('Table1', '', 'Equivalent Field,2')
#		select('Table1', '', 'Equivalent Field,3')
#		select('Table1', 'cell:Field,0(keycode)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
##		assert_p('Table', 'Content', '[[, , , , , , ], [, Inserted, 7, 69684558, 40118, 1, 5010], [, , , , , , ], [, Inserted, 9, 69694158, 40118, -1, -19000], [, , , , , , ], [, Inserted, 14, 929, Department: 929, , ], [, , , , , , ], [, Inserted, 15, 65674532, 40118, 1, 3590], [, , , , , , ], [, Inserted, 50, 170, Department: 170, , ], [, , , , , , ], [, Inserted, 51, 68674560, 40118, 1, 5990], [, , , , , , ], [, Inserted, 55, 62694843, 40118, 1, 13590], [, , , , , , ], [, Inserted, 58, 69644164, 40118, 1, 21590]]')
		assert_p('Table', 'Content', '[[, , , , , , ], [, Inserted, 7, 69684558, 40118, 1, 5010], [, , , , , , ], [, Inserted, 9, 69694158, 40118, -1, -19000], [, , , , , , ], [, Inserted, 14, 929, Department: 929, , ], [, , , , , , ], [, Inserted, 15, 65674532, 40118, 1, 3590], [, , , , , , ], [, Inserted, 50, 170, Department: 170, , ], [, , , , , , ], [, Inserted, 51, 68674560, 40118, 1, 5990], [, , , , , , ], [, Inserted, 55, 62694843, 40118, 1, 13590], [, , , , , , ], [, Inserted, 58, 69644164, 40118, 1, 21590]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Protocol Buffer Editor'):
		select_menu('Utilities>>Compare Menu')
		click('*1')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare2.bin')
		select('FileChooser1', commonBits.sampleDir() + 'protoStoreSales3.bin')
		click('Right')
		select('TabbedPane', '')
		assert_p('Table', 'Content', '[[Product, true], [Order, true], [Summary, true], [Deptartment, true], [Store, true]]')
		select('Table', 'cell:Record,0(Product)')
		assert_p('Table1', 'Content', '[[keycode, true], [saleDate, true], [quantity, true], [price, true]]')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', 'cell:Include,2(true)')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', 'cell:Include,3(true)')
		select('Table', 'cell:Record,0(Product)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, , , , , ], [, Inserted, 8, 69684558, 40118, ], [, , , , , ], [, Inserted, 11, 69694158, 40118, ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Protocol Buffer Editor'):
		select_menu('Utilities>>Compare Menu')
		click('*2')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare2.bin')
		click('Right')
		select('TabbedPane', '')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales.bin')
		select('FileChooser1', commonBits.stdCopybookDir() + 'StoreSales.protocomp')
		click('Right')
		select('TabbedPane', '')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', 'cell:Equivalent Field,2(quantity)')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', '', 'Equivalent Field,2')
		select('Table1', '', 'Equivalent Field,3')
		select('Table1', 'cell:Field,1(saleDate)')
		assert_p('Table1', 'Content', '[[keycode, keycode], [saleDate, saleDate], [quantity, ], [price, ]]')
		select('Table1', 'cell:Field,1(saleDate)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, , , , ], [, Inserted, 7, 69684558, 40118], [, , , , ], [, Inserted, 10, 69694158, 40118]]')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Protocol Buffer Editor'):
		select_menu('Utilities>>Compare Menu')
		click('*2')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare.bin')
		click('Right')
		select('TabbedPane', '')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales.bin')
		select('FileChooser1', commonBits.stdCopybookDir() + 'StoreSales.protocomp')
		click('Right')
		select('TabbedPane', '')
		assert_p('Table', 'Content', '[[Product, Product], [Order,  ], [Summary,  ], [Deptartment, Deptartment], [Store, Store]]')
		assert_p('Table1', 'Content', '[[keycode, keycode], [saleDate, saleDate], [quantity, quantity], [price, price]]')
		select('Table', 'cell:Equivalent Record,0(Product)')
		select('Table', ' ', 'Equivalent Record,0')
		select('Table', 'cell:Equivalent Record,0( )')
		assert_p('Table1', 'Content', '[[keycode, ], [saleDate, ], [quantity, ], [price, ]]')
		select('Table', 'cell:Equivalent Record,0( )')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, , , , ], [, Inserted, 5, 929, Department: 929], [, , , , ], [, Inserted, 17, 170, Department: 170]]')
	close()
Exemple #8
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() +  'protoStoreSales6.bin')
		click('Edit1')
		##select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Fully Expand Tree')
		select('LayoutCombo', 'Product')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select('JTreeTable', '', 'paymentType,8')
		##select('JTreeTable', '')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, ], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select_menu('Utilities>>Compare with Disk')
		assert_p('Table', 'Content', '[[, Old, 6, 69684558, 40118, 1, 19000, SALE, CHEQUE], [, New, 6, , , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('Save1')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('Edit1')
		##select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Fully Expand Tree')
		select('LayoutCombo', 'Product')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, ], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select('JTreeTable', 'CHEQUE', 'paymentType,8')
		##select('JTreeTable', '')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() +  'protoStoreSales6.bin'):
			click('Yes')
		close()
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_03'

	if window('Protocol Buffer Editor'):

		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3.bin')
		click('Edit1')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Fully Expand Tree')
		select('LayoutCombo', 'Product')
		select('JTreeTable', 'rows:[10,12],columns:[saleDate]')
		click('Delete2')
		select('JTreeTable', '1333', 'quantity,8')
		select('JTreeTable', '19123', 'price,10')
##		select('JTreeTable', '')
		assert_p('JTreeTable', 'Content', '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 63604808, 40118, 1, 4870], [, , , , , ], [, , , , , ], [, , , , , ], [, , 69684558, 40118, 1333, 19000], [, , 69684558, 40118, -1, -19000], [, , 69694158, 40118, 1, 19123], [, , 69694158, 40118, 1, 5010], [, , , , , ], [, , , , , ], [, , , , , ], [, , 62684671, 40118, 1, 69990], [, , 62684671, 40118, -1, -69990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 65674532, 40118, 1, 3590], [, , , , , ], [, , , , , ], [, , , , , ], [, , 63674861, 40118, 10, 2700], [, , 64634429, 40118, 1, 3990], [, , 66624458, 40118, 1, 890], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]')
		select_menu('Utilities>>Compare with Disk')
		assert_p('Table', 'Content', '[[, Old, 6, 69684558, 40118, 1, 19000], [, New, 6, , , 1333, ], [, Old, 8, 69684558, 40118, 1, 5010], [, New, 8, 69694158, , , 19123], [, Deleted, 9, 69694158, 40118, 1, 19000], [, , , , , , ], [, Deleted, 10, 69694158, 40118, -1, -19000], [, , , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu('File>>Export')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare2.bin')
		click('Save File')
#		select_menu('Window>>protoStoreSales3.bin>>Tree View')
#		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Protocol Buffer Editor'):
		select_menu('Utilities>>Compare Menu')
		click('*2')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales.bin')
		select('FileChooser1', commonBits.stdCopybookDir() + 'StoreSales.protocomp')
		click('Right')
		select('TabbedPane', '')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare2.bin')
		click('Right')
		select('TabbedPane', '')
		select('Table', 'cell:Record,0(Product)')
		assert_p('Table', 'Content', '[[Product, Product], [Deptartment, Deptartment], [Store, Store]]')
		select('Table', 'cell:Record,0(Product)')
		assert_p('Table1', 'Content', '[[keycode, keycode], [saleDate, saleDate], [quantity, quantity], [price, price]]')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', 'cell:Equivalent Field,3(price)')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', '', 'Equivalent Field,3')
		select('Table1', 'cell:Field,1(saleDate)')
		assert_p('Table1', 'Content', '[[keycode, keycode], [saleDate, saleDate], [quantity, quantity], [price, ]]')
		select('Table1', 'cell:Field,1(saleDate)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, Old, 5, 69684558, 40118, 1], [, New, 5, , , 1333], [, Deleted, 7, 69684558, 40118, 1], [, , , , , ], [, Deleted, 9, 69694158, 40118, -1], [, , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
##		select('FileChooser', '/C:/Program Files/RecordEdit/ProtoBuf/SampleFiles/protoStoreSales3_Compare.bin')
		select_menu('Utilities>>Compare Menu')
		click('*1')
##		select('FileChooser', '/C:/Program Files/RecordEdit/ProtoBuf/SampleFiles/protoStoreSales3_Compare.bin')
		select('FileChooser1', commonBits.sampleDir() + 'protoStoreSales3_Compare.bin')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3.bin')
		click('Right')
		select('TabbedPane', '')
		assert_p('Table', 'Content', '[[Product, true], [Order, true], [Summary, true], [Deptartment, true], [Store, true]]')
		assert_p('Table1', 'Content', '[[keycode, true], [saleDate, true], [quantity, true], [price, true]]')
		select('Table', 'cell:Record,1(Order)')
		assert_p('Table1', 'Content', '[[keycode, true], [quantity, true]]')
		select('Table', 'cell:Record,3(Deptartment)')
		assert_p('Table1', 'Content', '[[department, true], [name, true]]')
		select('Table', 'cell:Record,3(Deptartment)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, Deleted, 8, 69684558, 40118, 1, 5010], [, , , , , , ], [, Deleted, 10, 69694158, 40118, -1, -19000], [, , , , , , ], [, Deleted, 17, 929, Department: 929, , ], [, , , , , , ], [, Deleted, 18, 65674532, 40118, 1, 3590], [, , , , , , ], [, Deleted, 19, 1, 3590, 1, ], [, , , , , , ], [, Deleted, 26, 69684558, 1, , ], [, , , , , , ], [, Deleted, 28, 65674532, 1, , ], [, , , , , , ], [, Deleted, 82, 170, Department: 170, , ], [, , , , , , ], [, Deleted, 83, 68674560, 40118, 1, 5990], [, , , , , , ], [, Deleted, 84, 1, 5990, 1, ], [, , , , , , ], [, Deleted, 88, 62694843, 40118, 1, 13590], [, , , , , , ], [, Deleted, 91, 69644164, 40118, 1, 21590], [, , , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Protocol Buffer Editor'):
##		click('PopupMenu$Separator5', 73, 0)
		select_menu('Utilities>>Compare Menu')
		click('*1')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3.bin')
		select('FileChooser1', commonBits.sampleDir() + 'protoStoreSales3_Compare2.bin')
		click('Right')
		select('TabbedPane', '')
		assert_p('Table', 'Content', '[[Product, true], [Order, true], [Summary, true], [Deptartment, true], [Store, true]]')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', 'cell:Include,2(true)')
#		select('Table', ' ', 'Equivalent Record,3')
#		select('Table', 'cell:Record,2(Product)')
#		select('Table1', 'cell:Equivalent Field,2(quantity)')
#		select('Table', 'cell:Record,2(Product)')
#		select('Table1', '', 'Equivalent Field,2')

		select('Table', 'cell:Record,0(Product)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, Old, 8, 69684558, 40118, 5010], [, New, 8, 69694158, , 19123], [, Deleted, 9, 69694158, 40118, 19000], [, , , , , ], [, Deleted, 10, 69694158, 40118, -19000], [, , , , , ]]')
	close()
Exemple #13
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() +  'protoStoreSales6.bin')
		click('Edit1')
		##select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Fully Expand Tree')
		select('LayoutCombo', 'Product')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select('JTreeTable', 'OTHER', 'saleType,8')
		##select('JTreeTable', '')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, OTHER, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		##select('JTreeTable', '')
		rightclick('JTreeTable', 'quantity,8')
		select_menu('Edit Record')
		assert_p('Table', 'Content', '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 19000, 19000], [saleType, 5, , OTHER, OTHER], [paymentType, 6, , CHEQUE, CHEQUE]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu('Window>>protoStoreSales6.bin>>Tree View')
		select('JTreeTable', 'SALE', 'saleType,8')
		select('JTreeTable', 'cell:quantity,8(1)')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() +  'protoStoreSales6.bin'):
			click('No')
		close()
	close()
Exemple #14
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() +  'protoSales11.bin')
		click('Edit1')

		select('Table', 'cell:2|store,0(20)')
		rightclick('Table', '4|saleDate,2')
##		select('Table', 'cell:2|store,0(20)')
		select_menu('Edit Record')
##		select('Table1', 'cell:2|store,0(20)')
		select('Table', 'cell:Text,10([\'\',\' 0\',\' 0 1\'])')
		select('Table', 'cell:Data,10([\'\',\' 0\',\' 0 1\'])')
		click('ArrowButton')
		select('Table', 'cell:Data,1( 0)')
		select('Table', ' 0456', 'Data,1')
		select('Table', 'cell:Data,2( 0 1)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('Table', 'Text', '')
		select('Table', 'cell:Data,6(5.01)')
		assert_p('Table', 'Content', '[[keycode, 1, , 69684558, 69684558], [store, 2, , 20, 20], [department, 3, , 280, 280], [saleDate, 4, , 40118, 40118], [quantity, 5, , 1, 1], [price, 6, , 5010, 5010], [priceFloat, 7, , 5.01, 5.01], [priceDouble, 8, , 5.01, 5.01], [saleType, 9, , SALE, SALE], [paymentType, 10, , CREDIT_CARD, CREDIT_CARD], [strArray, 11, , [\'\',\' 0456\',\' 0 1\'], [\'\',\' 0456\',\' 0 1\']]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'cell:2|store,0(20)')
		select('Table', 'cell:2|store,0(20)')

		select_menu('Window>>protoSales11.bin>>Table:')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window(r'Save Changes to file: ' + commonBits.sampleDir() +  'protoSales11.bin'):
			click('No')
		close()
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'ams_locdownload_20041228.bin')
		click('Edit1')
		select('Table', '11', '5|Loc_Addr_Ln1,0')
		select('Table', 'cell:5|Loc_Addr_Ln1,0(11)')
		assert_p('Table', 'Text', '11', '5|Loc_Addr_Ln1,0')
		select('Table', 'cell:2|Loc_Nbr,2(5853)')
		rightclick('Table', '2|Loc_Nbr,2')
		select_menu('Edit Record')
##		select('Table1', 'cell:2|Loc_Nbr,2(5853)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5853, 5853], [Loc_Type, 3, , DC, DC], [Loc_Name, 4, , NSW North Sydney Ad Support, NSW North Sydney Ad Support], [Loc_Addr_Ln1, 5, , , ], [Loc_Addr_Ln2, 6, , , ], [Loc_Addr_Ln3, 7, , , ], [Loc_Postcode, 8, , , ], [Loc_State, 9, , , ], [Loc_Actv_Ind, 10, , A, A]]')
		click('Right')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5866, 5866], [Loc_Type, 3, , DC, DC], [Loc_Name, 4, , WA Ad Support, WA Ad Support], [Loc_Addr_Ln1, 5, , , ], [Loc_Addr_Ln2, 6, , , ], [Loc_Addr_Ln3, 7, , , ], [Loc_Postcode, 8, , , ], [Loc_State, 9, , , ], [Loc_Actv_Ind, 10, , A, A]]')
		click('Right')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5015, 5015], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Bankstown, Bankstown], [Loc_Addr_Ln1, 5, , Bankstown, Bankstown], [Loc_Addr_Ln2, 6, , Unit 2, 39-41 Allingham Street, Unit 2, 39-41 Allingham Street], [Loc_Addr_Ln3, 7, , Condell Park, Condell Park], [Loc_Postcode, 8, , 2200, 2200], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'cell:2|Loc_Nbr,2(5853)')
		select('Table', 'cell:2|Loc_Nbr,13(5074)')
		rightclick('Table', '2|Loc_Nbr,13')
		select_menu('Edit Record')
##		select('Table1', 'cell:2|Loc_Nbr,13(5074)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5074, 5074], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Campbelltown, Campbelltown], [Loc_Addr_Ln1, 5, , Campbelltown Mall, Campbelltown Mall], [Loc_Addr_Ln2, 6, , 303 Queen Street, 303 Queen Street], [Loc_Addr_Ln3, 7, , Campbelltown, Campbelltown], [Loc_Postcode, 8, , 2560, 2560], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
##		select('Table', 'cell:2|Loc_Nbr,13(5074)')
##		select('Table', 'cell:2|Loc_Nbr,13(5074)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() + 'ams_locdownload_20041228.bin'):
			click('Yes')
		close()

		click('Edit1')
		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		rightclick('Table', '3|Loc_Type,0')
##		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		select_menu('Edit Record')
##		select('Table1', 'cell:2|Loc_Nbr,0(5839)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5839, 5839], [Loc_Type, 3, , DC, DC], [Loc_Name, 4, , DC - Taras Ave, DC - Taras Ave], [Loc_Addr_Ln1, 5, , 11, 11], [Loc_Addr_Ln2, 6, , 30-68 Taras Ave, 30-68 Taras Ave], [Loc_Addr_Ln3, 7, , Altona North, Altona North], [Loc_Postcode, 8, , 3025, 3025], [Loc_State, 9, , VIC, VIC], [Loc_Actv_Ind, 10, , A, A]]')
		select('Table', '', 'Data,4')
		select('Table', 'cell:Data,5(30-68 Taras Ave)')
		click('Save1')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		select_menu('Window>>ams_locdownload_20041228.bin>>Table:')
		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('Edit1')
		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		rightclick('Table', '3|Loc_Type,0')
##		select('Table', 'cell:2|Loc_Nbr,0(5839)')
		select_menu('Edit Record')
##		select('Table1', 'cell:2|Loc_Nbr,0(5839)')
		assert_p('Table', 'Content', '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5839, 5839], [Loc_Type, 3, , DC, DC], [Loc_Name, 4, , DC - Taras Ave, DC - Taras Ave], [Loc_Addr_Ln1, 5, , , ], [Loc_Addr_Ln2, 6, , 30-68 Taras Ave, 30-68 Taras Ave], [Loc_Addr_Ln3, 7, , Altona North, Altona North], [Loc_Postcode, 8, , 3025, 3025], [Loc_State, 9, , VIC, VIC], [Loc_Actv_Ind, 10, , A, A]]')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Protocol Buffer Editor'):
		select_menu('Utilities>>Compare Menu')
		click('*1')
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3.bin')
		select('FileChooser1', commonBits.sampleDir() + 'protoStoreSales3_Compare3.bin')
		click('Right')
		select('TabbedPane', '')

##
##          Exclude saleDate
##

		select('Table', 'cell:Include,3(true)')
		select('Table', 'cell:Record,0(Product)')
		select('Table1', 'cell:Include,1(true)')
		select('Table', 'cell:Record,0(Product)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, Old, 1, 20, Store: 20, ], [, New, 1, , Store: 20 a, ], [, Old, 3, 1, 4870, 1], [, New, 3, , , 11], [, Old, 5, 69684558, -1, -19000], [, New, 5, , -10, -190000], [, Old, 59, 166, Store: 166, ], [, New, 59, , Store: 166 a, ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu('Window>>Single Layout Compare')
		click('Left')
		select('TabbedPane', '')

##
##          Include saleDate, 
##          Exclude quantity
##

		select('Table1', 'cell:Include,1(false)')
		select('Table1', 'cell:Include,2(true)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, Old, 1, 20, Store: 20, ], [, New, 1, , Store: 20 a, ], [, Old, 2, 63604808, 40118, 4870], [, New, 2, , 20040118, ], [, Old, 3, 1, 4870, 1], [, New, 3, , , 11], [, Old, 5, 69684558, 40118, -19000], [, New, 5, , , -190000], [, Old, 7, 69694158, 40118, 19000], [, New, 7, , 20040118, ], [, Old, 59, 166, Store: 166, ], [, New, 59, , Store: 166 a, ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu('Window>>Single Layout Compare')
		click('Left')
		select('TabbedPane', '')
## 
##          Exclude price
##
		select('Table1', 'cell:Include,3(true)')
		click('Right')
		select('TabbedPane', '')
		click('Compare')
		assert_p('Table', 'Content', '[[, Old, 1, 20, Store: 20, ], [, New, 1, , Store: 20 a, ], [, Old, 2, 63604808, 40118, ], [, New, 2, , 20040118, ], [, Old, 3, 1, 4870, 1], [, New, 3, , , 11], [, , , , , ], [, Inserted, 7, 69694158, 20040118, ], [, Deleted, 9, 69694158, 40118, ], [, , , , , ], [, Old, 59, 166, Store: 166, ], [, New, 59, , Store: 166 a, ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
Exemple #17
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() +  'protoStoreSales6.bin')
		click('Edit1')
		##select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Fully Expand Tree')
		select('LayoutCombo', 'Product')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select('LayoutCombo', 'Prefered')
		assert_p('JTreeTable', 'Content', '[[, , 20, Store: 20, , , , ], [, , , , , , , ], [, , 170, Department: 170, , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , 1, 4870, 1, , , ], [, , 280, Department: 280, , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, , 69694158, 40118, 1, 19000, SALE, ], [, , 69694158, 40118, -1, -19000, RETURN, CASH], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , 2, 10020, 6, , , ], [, , 685, Department: 685, , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , 0, 0, 2, , , ], [, , 929, Department: 929, , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , 1, 3590, 1, , , ], [, , 957, Department: 957, , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , 12, 7580, 3, , , ], [, , , , , , , ], [, , 63604808, 1, , , , ], [, , 69684558, 1, , , , ], [, , 69694158, 1, , , , ], [, , 65674532, 1, , , , ], [, , 63674861, 10, , , , ], [, , 64634429, 1, , , , ], [, , 66624458, 1, , , , ], [, , 16, 26060, 13, , , ], [, , 59, Store: 59, , , , ], [, , 166, Store: 166, , , , ], [, , 184, Store: 184, , , , ]]')
		select('JTreeTable', 'rows:[7,8,9,10,11,12,13],columns:[Tree,keycode]')

		
		select_menu('View>>Table View #{Selected Records#}')
		
##		select('JTreeTable', 'rows:[8,9,10,11,12,13],columns:[Tree,keycode]')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [69694158, 40118, 1, 19000, SALE, ], [69694158, 40118, -1, -19000, RETURN, CASH], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		select('Table', 'OTHER', '5|saleType,2')
		select('Table', 'cell:2|saleDate,2(40118)')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, OTHER, DEBIT_CARD], [69694158, 40118, 1, 19000, SALE, ], [69694158, 40118, -1, -19000, RETURN, CASH], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		select('Table', '', '6|paymentType,2')
		select('Table', 'cell:2|saleDate,2(40118)')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, OTHER, ], [69694158, 40118, 1, 19000, SALE, ], [69694158, 40118, -1, -19000, RETURN, CASH], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		select('Table', 'RETURN', '5|saleType,3')
		select('Table', 'cell:2|saleDate,3(40118)')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, OTHER, ], [69694158, 40118, 1, 19000, RETURN, ], [69694158, 40118, -1, -19000, RETURN, CASH], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		select('Table', 'CHEQUE', '6|paymentType,3')
		select('Table', 'cell:2|saleDate,3(40118)')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, OTHER, ], [69694158, 40118, 1, 19000, RETURN, CHEQUE], [69694158, 40118, -1, -19000, RETURN, CASH], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		select('Table', 'SALE', '5|saleType,4')
		select('Table', 'cell:3|quantity,4(-1)')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, OTHER, ], [69694158, 40118, 1, 19000, RETURN, CHEQUE], [69694158, 40118, -1, -19000, SALE, CASH], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		select('Table', '', '6|paymentType,4')
		select('Table', 'cell:3|quantity,4(-1)')
		assert_p('Table', 'Content', '[[69684558, 40118, 1, 19000, SALE, CHEQUE], [69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [69684558, 40118, 1, 5010, OTHER, ], [69694158, 40118, 1, 19000, RETURN, CHEQUE], [69694158, 40118, -1, -19000, SALE, ], [69694158, 40118, 1, 5010, SALE, CHEQUE]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('JTreeTable', 'rows:[8,9,10,11,12,13],columns:[Tree,keycode]')
		select('JTreeTable', 'rows:[8,9,10,11,12,13],columns:[Tree,keycode]')
		select_menu('Window>>protoStoreSales6.bin>>Tree View')
		select('JTreeTable', 'rows:[8,9,10,11,12,13],columns:[Tree,keycode]')
		assert_p('JTreeTable', 'Content', '[[, , 20, Store: 20, , , , ], [, , , , , , , ], [, , 170, Department: 170, , , , ], [, , , , , , , ], [, , 63604808, 40118, 1, 4870, SALE, CASH], [, , 1, 4870, 1, , , ], [, , 280, Department: 280, , , , ], [, , , , , , , ], [, , 69684558, 40118, 1, 19000, SALE, CHEQUE], [, , 69684558, 40118, -1, -19000, RETURN, CREDIT_CARD], [, , 69684558, 40118, 1, 5010, OTHER, ], [, , 69694158, 40118, 1, 19000, RETURN, CHEQUE], [, , 69694158, 40118, -1, -19000, SALE, ], [, , 69694158, 40118, 1, 5010, SALE, CHEQUE], [, , 2, 10020, 6, , , ], [, , 685, Department: 685, , , , ], [, , , , , , , ], [, , 62684671, 40118, 1, 69990, SALE, CREDIT_CARD], [, , 62684671, 40118, -1, -69990, RETURN, DEBIT_CARD], [, , 0, 0, 2, , , ], [, , 929, Department: 929, , , , ], [, , , , , , , ], [, , 65674532, 40118, 1, 3590, SALE, ], [, , 1, 3590, 1, , , ], [, , 957, Department: 957, , , , ], [, , , , , , , ], [, , 63674861, 40118, 10, 2700, SALE, CASH], [, , 64634429, 40118, 1, 3990, SALE, CHEQUE], [, , 66624458, 40118, 1, 890, SALE, CREDIT_CARD], [, , 12, 7580, 3, , , ], [, , , , , , , ], [, , 63604808, 1, , , , ], [, , 69684558, 1, , , , ], [, , 69694158, 1, , , , ], [, , 65674532, 1, , , , ], [, , 63674861, 10, , , , ], [, , 64634429, 1, , , , ], [, , 66624458, 1, , , , ], [, , 16, 26060, 13, , , ], [, , 59, Store: 59, , , , ], [, , 166, Store: 166, , , , ], [, , 184, Store: 184, , , , ]]')
		select_menu('Utilities>>Compare with Disk')
		assert_p('Table', 'Content', '[[, Old, 8, 69684558, 40118, 1, 5010, SALE, DEBIT_CARD], [, New, 8, , , , , OTHER, ], [, Old, 9, 69694158, 40118, 1, 19000, SALE, ], [, New, 9, , , , , RETURN, CHEQUE], [, Old, 10, 69694158, 40118, -1, -19000, RETURN, CASH], [, New, 10, , , , , SALE, ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() +  'protoStoreSales6.bin'):
			click('No')
		close()
	close()
def test():
	from Modules import commonBits
	import os
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'zXcStore.bin')
		select('FileChooser1', commonBits.stdCopybookDir() + 'sales.protocomp')
		select('ComboBox', 'Delimited Messages')
		select('ComboBox1', 'Compiled Proto')


		click('Edit1')
		select('Table', 'cell:Data,2(0)')
		assert_p('Table', 'Content', '[[keycode, 1, , 0, 0], [store, 2, , 0, 0], [department, 3, , 0, 0], [saleDate, 4, , 0, 0], [quantity, 5, , 0, 0], [price, 6, , 0, 0]]')
##		assert_p('Table', 'Content', '[[keycode, 1, , , ], [store, 2, , , ], [department, 3, , , ], [saleDate, 4, , , ], [quantity, 5, , , ], [price, 6, , , ]]')
##[[keycode, 1, , 0, 0], [store, 2, , 0, 0], [department, 3, , 0, 0], [saleDate, 4, , 0, 0], [quantity, 5, , 0, 0], [price, 6, , 0, 0]]')
		select('Table', '1111', 'Data,0')
		select('Table', '222', 'Data,1')
		select('Table', '3333', 'Data,2')
		select('Table', '445566', 'Data,3')
		select('Table', '1', 'Data,4')
		select('Table', '11000', 'Data,5')
		select('Table', 'cell:Data,4(1)')
		assert_p('Table', 'Content', '[[keycode, 1, , 1111, 1111], [store, 2, , 222, 222], [department, 3, , 3333, 3333], [saleDate, 4, , 445566, 445566], [quantity, 5, , 1, 1], [price, 6, , 11000, 11000]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('Table', 'Content', '[[1111, 222, 3333, 445566, 1, 11000]]')
		click('New')
		select('Table', '1212', 'Data,0')
		select('Table', '12', 'Data,1')
		select('Table', '12', 'Data,2')
		select('Table', '121212', 'Data,3')
		select('Table', '1', 'Data,4')
		select('Table', '12000', 'Data,5')
		select('Table', 'cell:Data,4(1)')
		assert_p('Table', 'Content', '[[keycode, 1, , 1212, 1212], [store, 2, , 12, 12], [department, 3, , 12, 12], [saleDate, 4, , 121212, 121212], [quantity, 5, , 1, 1], [price, 6, , 12000, 12000]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu('Window>>zXcStore.bin>>Table:')
		assert_p('Table', 'Content', '[[1111, 222, 3333, 445566, 1, 11000], [1212, 12, 12, 121212, 1, 12000]]')
		click('Save1')
		
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('Edit1')
		assert_p('Table', 'Content', '[[1111, 222, 3333, 445566, 1, 11000], [1212, 12, 12, 121212, 1, 12000]]')
##		click('Delete2')

		select('Table', 'rows:[0,1],columns:[3|department,4|saleDate]')
		click('Delete2')
		click('Save1')

		click('BasicInternalFrameTitlePane$NoFocusButton2')

		os.remove(commonBits.sampleDir() + 'zXcStore.bin')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228_Extract.bin')
		#commonBits.setRecordLayout(select, 'ams Store')
		click('Edit1')
		select('Table', 'rows:[1,2,3],columns:[4|Loc_Name]')
		click('Cut2')
		select('Table', 'cell:5|Loc_Addr_Ln1,1(Westfield Shoppingtown)')
		assert_p('Table', 'RowCount', '10')
		select('Table', 'cell:5|Loc_Addr_Ln1,2(Marayong Offsite Reserve)')
		assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, 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], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, 2197, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A], [TAR, 5078, ST, Warringah Mall, Frenchs Forest, Units 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, NSW, A], [TAR, 5081, ST, Ashfield, Ashfield Mall, Knox Street, Ashfield, 2131, NSW, A], [TAR, 5085, ST, Roselands, Condell park, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A]]')
		select('Table', 'cell:5|Loc_Addr_Ln1,6(Campbelltown Mall)')
		click('Paste2')
		select('Table', 'cell:5|Loc_Addr_Ln1,7(Penrith)')
		assert_p('Table', 'Text', 'Penrith', '5|Loc_Addr_Ln1,7')
		select('Table', 'cell:5|Loc_Addr_Ln1,8(Marayong)')
		assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, 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], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, 2197, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, 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, 5078, ST, Warringah Mall, Frenchs Forest, Units 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, NSW, A], [TAR, 5081, ST, Ashfield, Ashfield Mall, Knox Street, Ashfield, 2131, NSW, A], [TAR, 5085, ST, Roselands, Condell park, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A]]')
		select('Table', 'cell:5|Loc_Addr_Ln1,9(Building B,  Portside DC)')
		assert_p('Table', 'RowCount', '13')
		select('Table', 'rows:[8,9],columns:[4|Loc_Name]')
		click('Delete2')
		select('Table', 'cell:5|Loc_Addr_Ln1,7(Penrith)')
		assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, 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], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, 2197, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, NSW, A], [TAR, 5078, ST, Warringah Mall, Frenchs Forest, Units 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, NSW, A], [TAR, 5081, ST, Ashfield, Ashfield Mall, Knox Street, Ashfield, 2131, NSW, A], [TAR, 5085, ST, Roselands, Condell park, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A]]')
		select('Table', 'cell:5|Loc_Addr_Ln1,8(Frenchs Forest)')
		assert_p('Table', 'RowCount', '11')
		select('Table', 'rows:[1,2],columns:[5|Loc_Addr_Ln1]')
		click('Copy2')
		select('Table', 'cell:4|Loc_Name,9(Ashfield)')
		click('PasteUp')
		select('Table', 'cell:5|Loc_Addr_Ln1,8(Frenchs Forest)')
		assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, 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], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, 2197, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, NSW, A], [TAR, 5078, ST, Warringah Mall, Frenchs Forest, Units 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, 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, 5081, ST, Ashfield, Ashfield Mall, Knox Street, Ashfield, 2131, NSW, A], [TAR, 5085, ST, Roselands, Condell park, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A]]')
		select('Table', 'cell:5|Loc_Addr_Ln1,9(Westfield Shoppingtown)')
		assert_p('Table', 'RowCount', '13')
		select('Table', 'rows:[7,8,9,10],columns:[5|Loc_Addr_Ln1]')
		click('Delete2')
		select('Table', 'cell:5|Loc_Addr_Ln1,5(Bass Hill Plaza)')
		assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, 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], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, 2197, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A], [TAR, 5081, ST, Ashfield, Ashfield Mall, Knox Street, Ashfield, 2131, NSW, A], [TAR, 5085, ST, Roselands, Condell park, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A]]')
		select('Table', 'cell:5|Loc_Addr_Ln1,7(Ashfield Mall)')
		assert_p('Table', 'RowCount', '9')
		select('Table', 'cell:5|Loc_Addr_Ln1,7(Ashfield Mall)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() + 'Ams_LocDownload_20041228_Extract.bin'):
			click('No')
		close()
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_03'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
		#commonBits.setRecordLayout(select, 'ams Store')
		click('Edit1')
		select('Table', 'rows:[2,3,4,5,6],columns:[3|Loc_Type]')
		select_menu('View>>Column View #{Selected Records#}')
##		select('Table2', 'rows:[2,3,4,5,6],columns:[3|Loc_Type]')
		select('Table', 'cell:Row 1,3(NSW North Sydney Ad Support)')
		assert_p('Table', 'Text', 'DC', 'Row 1,2')
		select('Table', 'cell:Row 2,3(WA Ad Support)')
		assert_p('Table', 'Text', 'WA Ad Support', 'Row 2,3')
		select('Table', 'cell:Row 3,3(Bankstown)')
		assert_p('Table', 'Text', 'Condell Park', 'Row 3,6')
		select('Table', 'cell:Row 4,3(Penrith)')
		assert_p('Table', 'Text', 'Penrith', 'Row 4,6')
		select('Table', 'cell:Row 3,4(Bankstown)')
		assert_p('Table', 'Content', '[[TAR, TAR, TAR, TAR, TAR], [5853, 5866, 5015, 5019, 5033], [DC, DC, ST, ST, ST], [NSW North Sydney Ad Support, WA Ad Support, Bankstown, Penrith, Blacktown], [, , Bankstown, Penrith, Marayong], [, , Unit 2, 39-41 Allingham Street, 58 Leland Street, Dock 2, 11 Melissa Place], [, , Condell Park, Penrith, Marayong], [, , 2200, 2750, 2148], [, , NSW, NSW, NSW], [A, A, A, A, A]]')
		select('Table', 'cell:Row 3,4(Bankstown)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'rows:[2,3,4,5,6],columns:[3|Loc_Type]')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_22'

	if window('Protocol Buffer Editor'):
		select('File_Txt', commonBits.sampleDir() + 'DTAR020_tst1.bin')
		click('Proto Search')
		assert_p('Table1', 'Content', r'[[' + commonBits.stdCopybookDir() + 'DTAR020.proto, DTAR020.proto, sale], [' + commonBits.stdCopybookDir() + 'DTAR020.protocomp, DTAR020.proto, sale], [' + commonBits.stdCopybookDir() + 'Sales.proto, Sales.proto, sale], [' + commonBits.stdCopybookDir() + 'sales.protocomp, sales.proto, sale]]')
		assert_p('File_Txt', 'Text', commonBits.sampleDir() + 'DTAR020_tst1.bin')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('Proto File_Txt', 'Text', 'DTAR020.proto')
		assert_p('Primary Message_Txt', 'Text', 'sale')
##		assert_p('Type of Definition_Txt', 'Text', 'Proto Definition')
		assert_p('File Structure_Txt', 'Text', 'Delimited Messages')
##		assert_p('Proto Definition_Txt', 'Text', commonBits.stdCopybookDir() + 'DTAR020.protocomp')
	close()
Exemple #22
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales5SD.bin')
		click('Edit1')
		assert_p('JTreeTable', 'Content', '[[, , 20, Store: 20], [, , 59, Store: 59], [, , 166, Store: 166], [, , 184, Store: 184]]')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Expand Tree')
		select('LayoutCombo', 'Prefered')
		rightclick('JTreeTable', 'Tree,1')
		select_menu('Expand Tree')

		rightclick('JTreeTable', 'Tree,2')
		select_menu('Expand Tree')

		rightclick('JTreeTable', 'Tree,3')
		select_menu('Expand Tree')

		rightclick('JTreeTable', 'Tree,6')
		select_menu('Fully Expand Tree')
		assert_p('JTreeTable', 'Content', '[[, , 20, Store: 20, , , ], [, , , , , , ], [, , 170, Department: 170, , , ], [, , , , , , ], [, , 63604808, [40118], [1], [4870], [SALE]], [, , 1, 4870, 1, , ], [, , 280, Department: 280, , , ], [, , , , , , ], [, , 69684558, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE]], [, , 69694158, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE]], [, , 2, 10020, 6, , ], [, , 685, Department: 685, , , ], [, , 929, Department: 929, , , ], [, , 957, Department: 957, , , ], [, , , , , , ], [, , 16, 26060, 13, , ], [, , 59, Store: 59, , , ], [, , 166, Store: 166, , , ], [, , 184, Store: 184, , , ]]')
		select_menu('View>>Show Proto Definition')
##		assert_p('JTreeTable', 'Content', '[[, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , store, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , ], [, , department, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Deptartment, , ], [, , order, 4, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Order, , ], [, , summary, 5, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , quantity, 2, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , , , , ], [, , , , , , , , ], [, , department, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , ], [, , product, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Product, , ], [, , summary, 4, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , , , , ]]')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , , ], [, , , , , , , , ], [, , StoreSales5SD.proto, , , , , , ], [, , , , , , , , ], [, , Store, , , , , , ], [, , , , , , , , ], [, , store, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , ], [, , department, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Deptartment, , ], [, , order, 4, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Order, , ], [, , summary, 5, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , ], [, , , , , , , , ], [, , StoreSales5SD_Product.proto, , , , , , ], [, , , , , , , , ], [, , Product, , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , ], [, , , , , , , , ], [, , StoreSales5SD_Enum.proto, , , , , , ], [, , , , , , , , ], [, , SaleType, , , , , , ], [, , , , , , , , ], [, , RETURN, , , , , , ], [, , OTHER, , , , , , ], [, , SALE, , , , , , ], [, , StoreSales5SD_OrderDept.proto, , , , , , ], [, , , , , , , , ], [, , Order, , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , quantity, 2, LABEL_REQUIRED, TYPE_INT32, , , ], [, , Deptartment, , , , , , ], [, , , , , , , , ], [, , department, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , ], [, , product, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Product, , ], [, , summary, 4, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , ], [, , , , , , , , ], [, , StoreSales5SD_Product.proto, , , , , , ], [, , , , , , , , ], [, , Product, , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , ], [, , , , , , , , ], [, , StoreSales5SD_Enum.proto, , , , , , ], [, , , , , , , , ], [, , SaleType, , , , , , ], [, , , , , , , , ], [, , RETURN, , , , , , ], [, , OTHER, , , , , , ], [, , SALE, , , , , , ], [, , StoreSales5SD_Summary.proto, , , , , , ], [, , , , , , , , ], [, , Summary, , , , , , ], [, , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , , , , ], [, , StoreSales5SD_Summary.proto, , , , , , ], [, , , , , , , , ], [, , Summary, , , , , , ], [, , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , , , , ]]')
##		click('ScrollPane$ScrollBar', 12, 55)
		select('LayoutCombo', 'Prefered')
##		assert_p('JTreeTable', 'Content', '[[, , , , , , , , ], [, , , , , , , , ], [, , StoreSales5SD.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Product.proto\',\'StoreSales5SD_OrderDept.proto\',\'StoreSales5SD_Summary.proto\'], , , , ], [, , , , , , , , ], [, , Store, , , , , , ], [, , , , , , , , ], [, , store, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , ], [, , department, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Deptartment, , ], [, , order, 4, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Order, , ], [, , summary, 5, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , ], [, , , , , SPEED, , , ], [, , StoreSales5SD_Product.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Enum.proto\'], , , , ], [, , , , , , , , ], [, , Product, , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , ], [, , , , , SPEED, , , ], [, , StoreSales5SD_Enum.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , ], [, , , , , , , , ], [, , SaleType, , , , , , ], [, , , , , , , , ], [, , RETURN, -1, , , , , ], [, , OTHER, 0, , , , , ], [, , SALE, 1, , , , , ], [, , StoreSales5SD_OrderDept.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Product.proto\',\'StoreSales5SD_Summary.proto\'], , , , ], [, , , , , , , , ], [, , Order, , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , quantity, 2, LABEL_REQUIRED, TYPE_INT32, , , ], [, , Deptartment, , , , , , ], [, , , , , , , , ], [, , department, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , ], [, , product, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Product, , ], [, , summary, 4, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , ], [, , , , , SPEED, , , ], [, , StoreSales5SD_Product.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Enum.proto\'], , , , ], [, , , , , , , , ], [, , Product, , , , , , ], [, , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , ], [, , , , , SPEED, , , ], [, , StoreSales5SD_Enum.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , ], [, , , , , , , , ], [, , SaleType, , , , , , ], [, , , , , , , , ], [, , RETURN, -1, , , , , ], [, , OTHER, 0, , , , , ], [, , SALE, 1, , , , , ], [, , StoreSales5SD_Summary.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , ], [, , , , , , , , ], [, , Summary, , , , , , ], [, , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , SPEED, , , ], [, , StoreSales5SD_Summary.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , ], [, , , , , , , , ], [, , Summary, , , , , , ], [, , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , ], [, , , , , SPEED, , , ]]')
##		assert_p('JTreeTable', 'Content', '[[, , , , , , , , , ], [, , , , , , , , , ], [, , StoreSales5SD.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Product.proto\',\'StoreSales5SD_OrderDept.proto\',\'StoreSales5SD_Summary.proto\'], , , , , ], [, , , , , , , , , ], [, , Store, , , , , , , ], [, , , , , , , , , ], [, , store, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , , ], [, , department, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Deptartment, , , ], [, , order, 4, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Order, , , ], [, , summary, 5, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , , ], [, , , , , , SPEED, , , ], [, , StoreSales5SD_Product.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Enum.proto\'], , , , , ], [, , , , , , , , , ], [, , Product, , , , , , , ], [, , , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , , ], [, , , , , , SPEED, , , ], [, , StoreSales5SD_Enum.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , , ], [, , , , , , , , , ], [, , SaleType, , , , , , , ], [, , , , , , , , , ], [, , RETURN, -1, , , , , , ], [, , OTHER, 0, , , , , , ], [, , SALE, 1, , , , , , ], [, , StoreSales5SD_OrderDept.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Product.proto\',\'StoreSales5SD_Summary.proto\'], , , , , ], [, , , , , , , , , ], [, , Order, , , , , , , ], [, , , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , quantity, 2, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , Deptartment, , , , , , , ], [, , , , , , , , , ], [, , department, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , , ], [, , product, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Product, , , ], [, , summary, 4, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , , ], [, , , , , , SPEED, , , ], [, , StoreSales5SD_Product.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Enum.proto\'], , , , , ], [, , , , , , , , , ], [, , Product, , , , , , , ], [, , , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , , ], [, , , , , , SPEED, , , ], [, , StoreSales5SD_Enum.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , , ], [, , , , , , , , , ], [, , SaleType, , , , , , , ], [, , , , , , , , , ], [, , RETURN, -1, , , , , , ], [, , OTHER, 0, , , , , , ], [, , SALE, 1, , , , , , ], [, , StoreSales5SD_Summary.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , , ], [, , , , , , , , , ], [, , Summary, , , , , , , ], [, , , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , , , , , SPEED, , , ], [, , StoreSales5SD_Summary.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], , , , , ], [, , , , , , , , , ], [, , Summary, , , , , , , ], [, , , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , , ], [, , , , , , SPEED, , , ]]')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , , , , ], [, , , , , , , , , , ], [, , StoreSales5SD.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Product.proto\',\'StoreSales5SD_OrderDept.proto\',\'StoreSales5SD_Summary.proto\'], [], [], , , , ], [, , , , , , , , , , ], [, , Store, , , , , , , , ], [, , , , , , , , , , ], [, , store, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , , , ], [, , department, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Deptartment, , , , ], [, , order, 4, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Order, , , , ], [, , summary, 5, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , , , ], [, , , , , , SPEED, , , , ], [, , StoreSales5SD_Product.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Enum.proto\'], [], [], , , , ], [, , , , , , , , , , ], [, , Product, , , , , , , , ], [, , , , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , , , ], [, , , , , , SPEED, , , , ], [, , StoreSales5SD_Enum.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], [], [], , , , ], [, , , , , , , , , , ], [, , SaleType, , , , , , , , ], [, , , , , , , , , , ], [, , RETURN, -1, , , , , , , ], [, , OTHER, 0, , , , , , , ], [, , SALE, 1, , , , , , , ], [, , StoreSales5SD_OrderDept.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Product.proto\',\'StoreSales5SD_Summary.proto\'], [], [], , , , ], [, , , , , , , , , , ], [, , Order, , , , , , , , ], [, , , , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , quantity, 2, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , Deptartment, , , , , , , , ], [, , , , , , , , , , ], [, , department, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , name, 2, LABEL_REQUIRED, TYPE_STRING, , , , , ], [, , product, 3, LABEL_REPEATED, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Product, , , , ], [, , summary, 4, LABEL_OPTIONAL, TYPE_MESSAGE, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.Summary, , , , ], [, , , , , , SPEED, , , , ], [, , StoreSales5SD_Product.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [\'StoreSales5SD_Enum.proto\'], [], [], , , , ], [, , , , , , , , , , ], [, , Product, , , , , , , , ], [, , , , , , , , , , ], [, , keycode, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , saleDate, 2, LABEL_REPEATED, TYPE_INT32, , , , , ], [, , quantity, 3, LABEL_REPEATED, TYPE_INT32, , , , , ], [, , price, 4, LABEL_REPEATED, TYPE_INT64, , , , , ], [, , saleType, 5, LABEL_REPEATED, TYPE_ENUM, .net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.SaleType, , , , ], [, , , , , , SPEED, , , , ], [, , StoreSales5SD_Enum.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], [], [], , , , ], [, , , , , , , , , , ], [, , SaleType, , , , , , , , ], [, , , , , , , , , , ], [, , RETURN, -1, , , , , , , ], [, , OTHER, 0, , , , , , , ], [, , SALE, 1, , , , , , , ], [, , StoreSales5SD_Summary.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], [], [], , , , ], [, , , , , , , , , , ], [, , Summary, , , , , , , , ], [, , , , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , , , , , SPEED, , , , ], [, , StoreSales5SD_Summary.proto, net.sf.RecordEditor.ProtoBuf.re.Test.SalesX, [], [], [], , , , ], [, , , , , , , , , , ], [, , Summary, , , , , , , , ], [, , , , , , , , , , ], [, , quantity, 1, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , price, 2, LABEL_REQUIRED, TYPE_INT64, , , , , ], [, , count, 3, LABEL_REQUIRED, TYPE_INT32, , , , , ], [, , , , , , SPEED, , , , ]]')


	close()
Exemple #23
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
		click('Edit1')
		click('Find1')
		assert_p('Label', 'Text', 'Search For')
		assert_p('Label1', 'Text', 'Replace With')
		assert_p('Label2', 'Text', 'Record Layout')
		assert_p('Label3', 'Text', 'Field')
		assert_p('Label5', 'Text', 'Direction')
		assert_p('Label6', 'Text', 'Ignore Case')
		assert_p('Find1', 'Text', 'Find')
		assert_p('Replace', 'Text', 'Replace')
		assert_p('Replace Find', 'Text', 'Replace Find')
		assert_p('Replace All', 'Text', 'Replace All')
		assert_p('ComboBox2', 'Content', '[[Forward, Backward]]')
##		assert_p('ComboBox1', 'Content', '[[Contains,  = , Doesn\'t Contain,  <> , >, >=, <, <= ,  = (Numeric), > (Text), >= (Text), < (Text), <= (Text)]]')
		assert_p('ComboBox1', 'Content', '[[Contains,  = , Doesn\'t Contain,  <> , Starts With, >, >=, <, <= , = (Numeric), > (Text), >= (Text), < (Text), <= (Text)]]')
		assert_p('ComboBox', 'Content', '[[, All Fields, Brand_Id, Loc_Nbr, Loc_Type, Loc_Name, Loc_Addr_Ln1, Loc_Addr_Ln2, Loc_Addr_Ln3, Loc_Postcode, Loc_State, Loc_Actv_Ind]]')
#		assert_p('LayoutCombo', 'Content', '[Locations]]')

		assert_p('LayoutCombo', 'Content', '[[Locations]]')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_22'

	if window('Protocol Buffer Editor'):
		select('File_Txt', commonBits.sampleDir() + 'protoStoreSales7.bin')
		click('Edit1')
		select_menu('Window>>Show Child Record')
		assert_p('LineTreeChild.FileDisplay_JTbl', 'Content', '[[, , 20, Store: 20], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , 59, Store: 59], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , 166, Store: 166], [, , 184, Store: 184]]')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[store, 1, , INT32, 20, 20], [name, 2, , STRING, Store: 20, Store: 20]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,2(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[department, 1, , INT32, 170, 170], [name, 2, , STRING, Department: 170, Department: 170]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,4(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[keycode, 1, , INT32, 63604808, 63604808], [saleDate, 2, , INT32, [40118], [40118]], [quantity, 3, , INT32, [1], [1]], [price, 4, , INT64, [4870], [4870]], [saleType, 5, , ENUM, [SALE], [SALE]], [priceFloat, 6, , FLOAT, [4.87], [4.87]], [priceDouble, 7, , DOUBLE, [4.87], [4.87]], [strArray, 8, , STRING, [\'\'], [\'\']]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,5(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[quantity, 1, , INT32, 1, 1], [price, 2, , INT64, 4870, 4870], [count, 3, , INT32, 1, 1]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,6(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[department, 1, , INT32, 280, 280], [name, 2, , STRING, Department: 280, Department: 280]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,8(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[keycode, 1, , INT32, 69684558, 69684558], [saleDate, 2, , INT32, [40118, 40118, 40118], [40118, 40118, 40118]], [quantity, 3, , INT32, [1, -1, 1], [1, -1, 1]], [price, 4, , INT64, [19000, -19000, 5010], [19000, -19000, 5010]], [saleType, 5, , ENUM, [SALE, RETURN, SALE], [SALE, RETURN, SALE]], [priceFloat, 6, , FLOAT, [19.0, -19.0, 5.01], [19.0, -19.0, 5.01]], [priceDouble, 7, , DOUBLE, [19.0, -19.0, 5.01], [19.0, -19.0, 5.01]], [strArray, 8, , STRING, [\'\',\' -1\',\' -1 1\'], [\'\',\' -1\',\' -1 1\']]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,9(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[keycode, 1, , INT32, 69694158, 69694158], [saleDate, 2, , INT32, [40118, 40118, 40118], [40118, 40118, 40118]], [quantity, 3, , INT32, [1, -1, 1], [1, -1, 1]], [price, 4, , INT64, [19000, -19000, 5010], [19000, -19000, 5010]], [saleType, 5, , ENUM, [SALE, RETURN, SALE], [SALE, RETURN, SALE]], [priceFloat, 6, , FLOAT, [19.0, -19.0, 5.01], [19.0, -19.0, 5.01]], [priceDouble, 7, , DOUBLE, [19.0, -19.0, 5.01], [19.0, -19.0, 5.01]], [strArray, 8, , STRING, [\'\',\' -1\',\' -1 1\'], [\'\',\' -1\',\' -1 1\']]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,8(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[keycode, 1, , INT32, 69684558, 69684558], [saleDate, 2, , INT32, [40118, 40118, 40118], [40118, 40118, 40118]], [quantity, 3, , INT32, [1, -1, 1], [1, -1, 1]], [price, 4, , INT64, [19000, -19000, 5010], [19000, -19000, 5010]], [saleType, 5, , ENUM, [SALE, RETURN, SALE], [SALE, RETURN, SALE]], [priceFloat, 6, , FLOAT, [19.0, -19.0, 5.01], [19.0, -19.0, 5.01]], [priceDouble, 7, , DOUBLE, [19.0, -19.0, 5.01], [19.0, -19.0, 5.01]], [strArray, 8, , STRING, [\'\',\' -1\',\' -1 1\'], [\'\',\' -1\',\' -1 1\']]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,6(null)')
		assert_p('LineFrameTree.FileDisplay_JTbl', 'Content', '[[department, 1, , INT32, 280, 280], [name, 2, , STRING, Department: 280, Department: 280]]')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'protoSales.bin')
		##commonBits.setRecordLayout(select, 'DTAR020')
		click('Edit1')
		select_menu('View>>Sorted Field Tree')
		##select('List', 'sale')
		select('Table', 'store', 'Field,0')
		##select('Table', 'department', 'Field,1')
		select('Table', 'department', 'Field,1')
		select('Table', 'cell:Field,1(department)')
		click('Build Tree')
		#select('JTreeTable', '')
		rightclick('JTreeTable', 'keycode,1')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Tree,2(null)')
		select_menu('View>>Record View #{Selected Records#}')
		select('JTreeTable', 'cell:Tree,2(null)')
		select('Table', 'cell:Data,0(61664713)')
		assert_p('Table', 'Text', '59', 'Data,1')
		select('Table', 'cell:Data,0(61664713)')
		click('RightM')
		doubleclick('TextField')
		assert_p('TextField', 'Text', '3')
		select('Table', 'cell:Data,0(61684613)')
		assert_p('Table', 'Text', 'cell:Data,0(61684613)')
		select('Table', 'cell:Data,0(61684613)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_03'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
		#commonBits.setRecordLayout(select, 'ams Store')
		click('Edit1')
		select('Table', 'rows:[5,8,11,14],columns:[4|Loc_Name]')
#		rightclick('Table', '4|Loc_Name,8')
#		select('Table', 'rows:[5,8,11,14],columns:[4|Loc_Name]')
		select_menu('View>>Column View #{Selected Records#}')
#		select('Table2', 'rows:[5,8,11,14],columns:[4|Loc_Name]')
		select('Table', 'cell:Row 1,3(Penrith)')
		assert_p('Table', 'Text', '58 Leland Street', 'Row 1,5')
		select('Table', 'cell:Row 2,3(Miranda)')
		assert_p('Table', 'Text', 'NSW', 'Row 1,8')
		select('Table', 'cell:Row 3,3(St Marys)')
		assert_p('Table', 'Text', '2760', 'Row 3,7')
		select('Table', 'cell:Row 2,5(Cnr. Urunga Pde & The Kingsway)')
		assert_p('Table', 'Text', 'Miranda', 'Row 2,6')
		select('Table', 'cell:Row 3,5(Charles Hackett Drive)')
		assert_p('Table', 'Text', 'St Mary\'s', 'Row 3,6')
		select('Table', 'cell:Row 2,6(Miranda)')
		assert_p('Table', 'Content', '[[TAR, TAR, TAR, TAR], [5019, 5037, 5060, 5078], [ST, ST, ST, ST], [Penrith, Miranda, St Marys, Warringah Mall], [Penrith, Westfield Shoppingtown, St. Mary\'s, Frenchs Forest], [58 Leland Street, Cnr. Urunga Pde & The Kingsway, Charles Hackett Drive, Units 2-3, 14 Aquatic Drive], [Penrith, Miranda, St Mary\'s, Frenchs Forest], [2750, 2228, 2760, 2086], [NSW, NSW, NSW, NSW], [A, A, A, A]]')
		select('Table', 'cell:Row 2,6(Miranda)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'rows:[5,8,11,14],columns:[4|Loc_Name]')
	close()
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Protocol Buffer Editor'):
        select('FileChooser',
               commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
        #commonBits.setRecordLayout(select, 'ams Store')
        click('Edit1')
        select('Table', 'rows:[0,4,8,13,18,23,27],columns:[4|Loc_Name]')
        select_menu('View>>Table View #{Selected Records#}')
        ##		select('Table2', 'rows:[0,4,8,13,18,23,27],columns:[4|Loc_Name]')
        select('Table', 'cell:3|Loc_Type,1(ST)')
        assert_p(
            'Table', 'Content',
            '[[TAR, 5839, DC, DC - Taras Ave, , 30-68 Taras Ave, Altona North, 3025, VIC, A], [TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A], [TAR, 5091, ST, Chatswood, Frenchs Forest, Unit 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, NSW, A], [TAR, 5157, ST, Chirnside Park, Kilsyth South, Lot 3 & 4 Southfork Drive, Kilsyth Park, 3137, VIC, A], [TAR, 5170, ST, Bondi, Building B, Portside Distribution Centre, 2-8 McPherson Street, Botany, 2019, NSW, A]]'
        )
        select('Table', 'cell:4|Loc_Name,3(Campbelltown)')
        assert_p('Table', 'Text', 'Campbelltown', '4|Loc_Name,3')
        select('Table', 'cell:4|Loc_Name,1(Bankstown)')
        rightclick('Table', '4|Loc_Name,1')
        select_menu('Edit Record')
        ##		select('Table1', 'cell:4|Loc_Name,1(Bankstown)')
        select('Table', 'cell:Data,4(Bankstown)')
        assert_p(
            'Table', 'Content',
            '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5015, 5015], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Bankstown, Bankstown], [Loc_Addr_Ln1, 5, , Bankstown, Bankstown], [Loc_Addr_Ln2, 6, , Unit 2, 39-41 Allingham Street, Unit 2, 39-41 Allingham Street], [Loc_Addr_Ln3, 7, , Condell Park, Condell Park], [Loc_Postcode, 8, , 2200, 2200], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]'
        )
        select('Table', 'cell:Data,4(Bankstown)')
        click('RightM')
        select('Table',
               'cell:Data,4(Building B, Portside Distribution Centre)')
        assert_p(
            'Table', 'Content',
            '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5170, 5170], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Bondi, Bondi], [Loc_Addr_Ln1, 5, , Building B, Portside Distribution Centre, Building B, Portside Distribution Centre], [Loc_Addr_Ln2, 6, , 2-8 McPherson Street, 2-8 McPherson Street], [Loc_Addr_Ln3, 7, , Botany, Botany], [Loc_Postcode, 8, , 2019, 2019], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]'
        )
        select('Table',
               'cell:Data,4(Building B, Portside Distribution Centre)')
        click('LeftM')
        select('Table', 'cell:Data,5(30-68 Taras Ave)')
        assert_p(
            'Table', 'Content',
            '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5839, 5839], [Loc_Type, 3, , DC, DC], [Loc_Name, 4, , DC - Taras Ave, DC - Taras Ave], [Loc_Addr_Ln1, 5, , , ], [Loc_Addr_Ln2, 6, , 30-68 Taras Ave, 30-68 Taras Ave], [Loc_Addr_Ln3, 7, , Altona North, Altona North], [Loc_Postcode, 8, , 3025, 3025], [Loc_State, 9, , VIC, VIC], [Loc_Actv_Ind, 10, , A, A]]'
        )
        select('Table', 'cell:Data,5(30-68 Taras Ave)')
        click('RightM')
        click('Left')
        select('Table', 'cell:Data,5(Lot 3 & 4 Southfork Drive)')
        assert_p(
            'Table', 'Content',
            '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5157, 5157], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Chirnside Park, Chirnside Park], [Loc_Addr_Ln1, 5, , Kilsyth South, Kilsyth South], [Loc_Addr_Ln2, 6, , Lot 3 & 4 Southfork Drive, Lot 3 & 4 Southfork Drive], [Loc_Addr_Ln3, 7, , Kilsyth Park, Kilsyth Park], [Loc_Postcode, 8, , 3137, 3137], [Loc_State, 9, , VIC, VIC], [Loc_Actv_Ind, 10, , A, A]]'
        )
        select('Table', 'cell:Data,5(Lot 3 & 4 Southfork Drive)')
        click('Left')
        select('Table', 'cell:Data,5(Unit 2-3, 14 Aquatic Drive)')
        assert_p(
            'Table', 'Content',
            '[[Brand_Id, 1, , TAR, TAR], [Loc_Nbr, 2, , 5091, 5091], [Loc_Type, 3, , ST, ST], [Loc_Name, 4, , Chatswood, Chatswood], [Loc_Addr_Ln1, 5, , Frenchs Forest, Frenchs Forest], [Loc_Addr_Ln2, 6, , Unit 2-3, 14 Aquatic Drive, Unit 2-3, 14 Aquatic Drive], [Loc_Addr_Ln3, 7, , Frenchs Forest, Frenchs Forest], [Loc_Postcode, 8, , 2086, 2086], [Loc_State, 9, , NSW, NSW], [Loc_Actv_Ind, 10, , A, A]]'
        )
    close()
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_03'

	if window('Protocol Buffer Editor'):
		select('FileChooser',  commonBits.sampleDir() + 'protoFieldTest.bin')
		click('Edit1')
		rightclick('Table1', 'Line,2')
		select_menu('Edit Record')
		assert_p('Table', 'Content', '[[f01, 1, , 20000, 20000], [f02, 2, , 20000, 20000], [f03, 3, , 20000, 20000], [f04, 4, , 20000, 20000], [f05, 5, , 20000, 20000], [f06, 6, , 200000000, 200000000], [f07, 7, , 200000000, 200000000], [f08, 8, , 200000000, 200000000], [f09, 9, , 200000000, 200000000], [f10, 10, , 200000000, 200000000], [f11, 11, , 20000.0, 20000.0], [f12, 12, , 2.0E8, 2.0E8], [f13, 13, , false, false], [f14, 14, , , ], [f15, 15, , 200000000, 200000000], [f16, 16, , , ], [f17, 17, , SALE, SALE], [f18, 18, , , ], [f19, 19, , 0000000002, 0000000002], [f20, 20, , , ]]')
		assert_p('TextArea', 'Text', '20000	20000	20000	20000	20000	200000000	200000000	200000000	200000000	200000000	20000.0	2.0E8	false		200000000		SALE		0000000002')

		click('Right')
		assert_p('TextArea', 'Text', '30000	30000	30000	30000	30000	300000000	300000000	300000000	300000000	300000000	30000.0	3.0E8	true	false	300000000	300000000 optional	RETURN	RETURN	0000000003	0000000003')
		click('Right')
		assert_p('TextArea', 'Text', '40000	40000	40000	40000	40000	400000000	400000000	400000000	400000000	400000000	40000.0	4.0E8	false	true	400000000	400000000 optional	OTHER	OTHER	0000000004	0000000004')
		assert_p('Table', 'Content', '[[f01, 1, , 40000, 40000], [f02, 2, , 40000, 40000], [f03, 3, , 40000, 40000], [f04, 4, , 40000, 40000], [f05, 5, , 40000, 40000], [f06, 6, , 400000000, 400000000], [f07, 7, , 400000000, 400000000], [f08, 8, , 400000000, 400000000], [f09, 9, , 400000000, 400000000], [f10, 10, , 400000000, 400000000], [f11, 11, , 40000.0, 40000.0], [f12, 12, , 4.0E8, 4.0E8], [f13, 13, , false, false], [f14, 14, , true, true], [f15, 15, , 400000000, 400000000], [f16, 16, , 400000000 optional, 400000000 optional], [f17, 17, , OTHER, OTHER], [f18, 18, , OTHER, OTHER], [f19, 19, , 0000000004, 0000000004], [f20, 20, , 0000000004, 0000000004]]')
		click('Right')
		assert_p('TextArea', 'Text', '50000	50000	50000	50000	50000	500000000	500000000	500000000	500000000	500000000	50000.0	5.0E8	false	true	500000000	500000000 optional	SALE	SALE	0000000005	0000000005')
		assert_p('Table', 'Content', '[[f01, 1, , 50000, 50000], [f02, 2, , 50000, 50000], [f03, 3, , 50000, 50000], [f04, 4, , 50000, 50000], [f05, 5, , 50000, 50000], [f06, 6, , 500000000, 500000000], [f07, 7, , 500000000, 500000000], [f08, 8, , 500000000, 500000000], [f09, 9, , 500000000, 500000000], [f10, 10, , 500000000, 500000000], [f11, 11, , 50000.0, 50000.0], [f12, 12, , 5.0E8, 5.0E8], [f13, 13, , false, false], [f14, 14, , true, true], [f15, 15, , 500000000, 500000000], [f16, 16, , 500000000 optional, 500000000 optional], [f17, 17, , SALE, SALE], [f18, 18, , SALE, SALE], [f19, 19, , 0000000005, 0000000005], [f20, 20, , 0000000005, 0000000005]]')
		click('Right')
		assert_p('TextArea', 'Text', '60000	60000	60000	60000	60000	600000000	600000000	600000000	600000000	600000000	60000.0	6.0E8	true		600000000		RETURN		0000000006')
		assert_p('Table', 'Content', '[[f01, 1, , 60000, 60000], [f02, 2, , 60000, 60000], [f03, 3, , 60000, 60000], [f04, 4, , 60000, 60000], [f05, 5, , 60000, 60000], [f06, 6, , 600000000, 600000000], [f07, 7, , 600000000, 600000000], [f08, 8, , 600000000, 600000000], [f09, 9, , 600000000, 600000000], [f10, 10, , 600000000, 600000000], [f11, 11, , 60000.0, 60000.0], [f12, 12, , 6.0E8, 6.0E8], [f13, 13, , true, true], [f14, 14, , , ], [f15, 15, , 600000000, 600000000], [f16, 16, , , ], [f17, 17, , RETURN, RETURN], [f18, 18, , , ], [f19, 19, , 0000000006, 0000000006], [f20, 20, , , ]]')
##		click('ScrollPane$ScrollBar3', 491, 5)
		click('Right')
		assert_p('TextArea', 'Text', '70000	70000	70000	70000	70000	700000000	700000000	700000000	700000000	700000000	70000.0	7.0E8	false	true	700000000	700000000 optional	OTHER	RETURN	0000000007	0000000007')
		assert_p('Table', 'Content', '[[f01, 1, , 70000, 70000], [f02, 2, , 70000, 70000], [f03, 3, , 70000, 70000], [f04, 4, , 70000, 70000], [f05, 5, , 70000, 70000], [f06, 6, , 700000000, 700000000], [f07, 7, , 700000000, 700000000], [f08, 8, , 700000000, 700000000], [f09, 9, , 700000000, 700000000], [f10, 10, , 700000000, 700000000], [f11, 11, , 70000.0, 70000.0], [f12, 12, , 7.0E8, 7.0E8], [f13, 13, , false, false], [f14, 14, , true, true], [f15, 15, , 700000000, 700000000], [f16, 16, , 700000000 optional, 700000000 optional], [f17, 17, , OTHER, OTHER], [f18, 18, , RETURN, RETURN], [f19, 19, , 0000000007, 0000000007], [f20, 20, , 0000000007, 0000000007]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
Exemple #29
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Protocol Buffer Editor'):
		select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3.bin')
		click('Edit1')
		select('JTreeTable', 'cell:Tree,0(null)')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Edit Record')
##		select('JTreeTable', 'cell:Tree,0(null)')
		click('Find1')
		select('TextField', '66')
		select('ComboBox', 'All Fields')
		click('Find1')
		select_menu('Window>>protoStoreSales3.bin>>Record: ')
		select('Table', 'cell:Data,1(40118)')
		assert_p('Table', 'Content', '[[keycode, 1, , 66624458, 66624458], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 890, 890]]')
		select('Table', 'cell:Data,1(40118)')
#		select_menu('Window>>protostoresales3.bin>>Find')
#		select_menu('Window>>protostoresales3.bin>>Find')
#		zzzzz
		click('Find1')
		select('ComboBox', 'All Fields')
		click('Find1')

		select_menu('Window>>protoStoreSales3.bin>>Record: ')
##		select('Table', 'cell:Data,0(66624458)')
		assert_p('Table', 'Content', '[[keycode, 1, , 66624458, 66624458], [quantity, 2, , 1, 1]]')
		assert_p('Table', 'Content', '[[keycode, 1, , 66624458, 66624458], [quantity, 2, , 1, 1]]')
##		select('JTreeTable', 'cell:Tree,0(null)')
##		select('JTreeTable', 'cell:Tree,0(null)')
	close()
Exemple #30
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_03'

	if window('Protocol Buffer Editor'):
		select('FileChooser',  commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')

		select('FileChooser1', commonBits.stdCopybookDir() + 'Ams_Location.protocomp')

		click('Edit1')
		select('Table', 'rows:[0,1,2,3,4,5,6,7],columns:[2|Loc_Nbr,3|Loc_Type,4|Loc_Name]')
		select_menu('View>>Column View #{Selected Records#}')
##		select('Table2', 'rows:[0,1,2,3,4,5,6,7],columns:[2|Loc_Nbr,3|Loc_Type,4|Loc_Name]')
		select('Table', 'cell:Row 1,3(DC - Taras Ave)')
		assert_p('Table', 'Text', 'DC', 'Row 1,2')
		select('Table', 'cell:Row 2,3(VIC West Ad Support)')
		assert_p('Table', 'Text', 'VIC West Ad Support', 'Row 2,3')
		select('Table', 'cell:Row 3,3(NSW North Sydney Ad Support)')
		assert_p('Table', 'Text', 'VIC West Ad Support', 'Row 2,3')
		select('Table', 'cell:Row 2,5(Lot 2 Little Boundary Rd)')
		assert_p('Table', 'Text', 'Lot 2 Little Boundary Rd', 'Row 2,5')
		select('Table', 'cell:Row 1,5(30-68 Taras Ave)')
		assert_p('Table', 'Content', '[[TAR, TAR, TAR, TAR, TAR, TAR, TAR, TAR], [5839, 5850, 5853, 5866, 5015, 5019, 5033, 5035], [DC, DC, DC, DC, ST, ST, ST, ST], [DC - Taras Ave, VIC West Ad Support, NSW North Sydney Ad Support, WA Ad Support, Bankstown, Penrith, Blacktown, Rockdale], [, , , , Bankstown, Penrith, Marayong, Building B,  Portside DC], [30-68 Taras Ave, Lot 2 Little Boundary Rd, , , Unit 2, 39-41 Allingham Street, 58 Leland Street, Dock 2, 11 Melissa Place, 2-8 Mc Pherson Street], [Altona North, Laverton, , , Condell Park, Penrith, Marayong, Botany], [3025, 3028, , , 2200, 2750, 2148, 2019], [VIC, VIC, , , NSW, NSW, NSW, NSW], [A, A, A, A, A, A, A, A]]')
		select('Table', 'cell:Row 5,5(Unit 2, 39-41 Allingham Street)')
		assert_p('Table', 'Text', '58 Leland Street', 'Row 6,5')
		select('Table', 'cell:Row 6,5(58 Leland Street)')
		assert_p('Table', 'Text', 'Penrith', 'Row 6,6')
		select('Table', 'cell:Row 6,5(58 Leland Street)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'rows:[0,1,2,3,4,5,6,7],columns:[2|Loc_Nbr,3|Loc_Type,4|Loc_Name]')
Exemple #31
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Editor'):
        select('File_Txt', commonBits.sampleDir() + 'csv2DTAR020_tst1.bin.csv')
        click(commonBits.fl('Edit') + '1')
        click('Filter1')
        ##		select('Fields.FieldRelationship_JTbl', 'cell:' + commonBits.fl('Field') + ',0(null)')
        select('Fields.FieldRelationship_JTbl', 'SALE-PRICE',
               commonBits.fl('Field') + ',0')
        select('Fields.FieldRelationship_JTbl', '<= ',
               commonBits.fl('Operator') + ',0')
        select('Fields.FieldRelationship_JTbl', '3.99',
               commonBits.fl('Value') + ',0')
        ##		select('Fields.FieldRelationship_JTbl', 'cell:Or,1()')
        commonBits.filter(click)
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [62684671, 20, 40118, 685, -1, -69.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30]]'
        )

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        ##		select('Fields.FieldRelationship_JTbl', 'cell:' + commonBits.fl('Field') + ',1(null)')
        select('Fields.FieldRelationship_JTbl', 'STORE-NO',
               commonBits.fl('Field') + ',1')
        select('Fields.FieldRelationship_JTbl', '20',
               commonBits.fl('Value') + ',1')
        ##		select('Fields.FieldRelationship_JTbl', 'cell:' + commonBits.fl('Value') + ',2()')

        assert_p(
            'Fields.FieldRelationship_JTbl', 'Content',
            '[[, , SALE-PRICE, true, <= , 3.99], [, ' + commonBits.fl('And') +
            ', STORE-NO, true, ' + commonBits.fl('Contains') + ', 20], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ]]')

        select('Fields.FieldRelationship_JTbl',
               'cell:' + commonBits.fl('Value') + ',2()')
        commonBits.filter(click)
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [62684671, 20, 40118, 685, -1, -69.99]]'
        )
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('Fields.FieldRelationship_JTbl', '59',
               commonBits.fl('Value') + ',1')
        select('Fields.FieldRelationship_JTbl',
               'cell:' + commonBits.fl('Value') + ',2()')
        assert_p(
            'Fields.FieldRelationship_JTbl', 'Content',
            '[[, , SALE-PRICE, true, <= , 3.99], [, ' + commonBits.fl('And') +
            ', STORE-NO, true, ' + commonBits.fl('Contains') + ', 59], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ], [, ' +
            commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') +
            ', ], [, ' + commonBits.fl('And') + ', , true, ' +
            commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') +
            ', , true, ' + commonBits.fl('Contains') + ', ]]')
        select('Fields.FieldRelationship_JTbl',
               'cell:' + commonBits.fl('Value') + ',2()')
        commonBits.filter(click)
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99]]'
        )

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('Fields.FieldRelationship_JTbl', '16',
               commonBits.fl('Value') + ',1')
        select('Fields.FieldRelationship_JTbl',
               'cell:' + commonBits.fl('Value') + ',2()')
        commonBits.filter(click)
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30]]'
        )
    close()
Exemple #32
0
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')
        commonBits.setRecordLayout(select, 'ams Store')

        click(commonBits.fl('Edit') + '1')
        click('Find1')
        #click('MetalInternalFrameTitlePane', 199, 13)
        select('TextField', 'West')
        select('TextField1', 'West_')
        select('ComboBox', 'Loc Addr Ln1')
        click(commonBits.fl('Replace All'))
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('Table', 'cell:45 - 40|Loc Addr Ln1,0()')
        rightclick('Table', '4 - 4|Loc Nbr,0')
        select_menu(commonBits.fl('Edit Record'))
        click('Find1')
        #click('MetalInternalFrameTitlePane', 211, 10)
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select('Table',
               'cell:' + commonBits.fl('Data') + ',4(West_field Shoppingtown)')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',4(West_field Shoppingtown)')
        assert_p('Table', 'Text', 'Cnr. Urunga Pde & The Kingsway',
                 commonBits.fl('Data') + ',5')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',4(West_field Shoppingtown)')
        select(
            'Table', 'cell:' + commonBits.fl('Data') +
            ',5(Cnr. Urunga Pde & The Kingsway)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5037, 5037], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Miranda, Miranda], [Loc Addr Ln1, 45, 40, West_field Shoppingtown, West_field Shoppingtown], [Loc Addr Ln2, 85, 40, Cnr. Urunga Pde & The Kingsway, Cnr. Urunga Pde & The Kingsway], [Loc Addr Ln3, 125, 35, Miranda, Miranda], [Loc Postcode, 160, 10, 2228, 2228], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select(
            'Table', 'cell:' + commonBits.fl('Data') +
            ',5(Cnr. Urunga Pde & The Kingsway)')
        click('Find1')
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select(
            'Table',
            'cell:' + commonBits.fl('Data') + ',4(West_field Phoenix Plaza)')
        assert_p('Table', 'Text', 'Northumberland Street',
                 commonBits.fl('Data') + ',5')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Northumberland Street)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5093, 5093], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Liverpool, Liverpool], [Loc Addr Ln1, 45, 40, West_field Phoenix Plaza, West_field Phoenix Plaza], [Loc Addr Ln2, 85, 40, Northumberland Street, Northumberland Street], [Loc Addr Ln3, 125, 35, Liverpool, Liverpool], [Loc Postcode, 160, 10, 2170, 2170], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Northumberland Street)')
        click('Find1')
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select(
            'Table', 'cell:' + commonBits.fl('Data') +
            ',4(West_field Shoppingtown Eastgardens)')
        assert_p(
            'Table', 'Text', 'cell:' + commonBits.fl('Data') +
            ',4(West_field Shoppingtown Eastgardens)')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(152 Bunnerong Road)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5095, 5095], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Eastgarden, Eastgarden], [Loc Addr Ln1, 45, 40, West_field Shoppingtown Eastgardens, West_field Shoppingtown Eastgardens], [Loc Addr Ln2, 85, 40, 152 Bunnerong Road, 152 Bunnerong Road], [Loc Addr Ln3, 125, 35, Eastgardens, Eastgardens], [Loc Postcode, 160, 10, 2036, 2036], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(152 Bunnerong Road)')
        click('Find1')
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select(
            'Table',
            'cell:' + commonBits.fl('Data') + ',4(West_field Shopping Centre)')
        assert_p('Table', 'Text', 'George Street',
                 commonBits.fl('Data') + ',5')
        select('Table', 'cell:' + commonBits.fl('Data') + ',6(Hornsby)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5169, 5169], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Hornsby, Hornsby], [Loc Addr Ln1, 45, 40, West_field Shopping Centre, West_field Shopping Centre], [Loc Addr Ln2, 85, 40, George Street, George Street], [Loc Addr Ln3, 125, 35, Hornsby, Hornsby], [Loc Postcode, 160, 10, 2077, 2077], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select('Table', 'cell:' + commonBits.fl('Data') + ',6(Hornsby)')
        click('Find1')
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select(
            'Table',
            'cell:' + commonBits.fl('Data') + ',4(West_ Point Shopping Ctr)')
        assert_p(
            'Table', 'Text',
            'cell:' + commonBits.fl('Data') + ',4(West_ Point Shopping Ctr)')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Balmoral Street)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5178, 5178], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Blacktown - Not Yet Open, Blacktown - Not Yet Open], [Loc Addr Ln1, 45, 40, West_ Point Shopping Ctr, West_ Point Shopping Ctr], [Loc Addr Ln2, 85, 40, Balmoral Street, Balmoral Street], [Loc Addr Ln3, 125, 35, Blacktown, Blacktown], [Loc Postcode, 160, 10, 2134, 2134], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Balmoral Street)')
        click('Find1')
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select('Table',
               'cell:' + commonBits.fl('Data') + ',4(West_field Shoppingtown)')
        assert_p(
            'Table', 'Text',
            'cell:' + commonBits.fl('Data') + ',4(West_field Shoppingtown)')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Matthews Avenue)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5168, 5168], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Airport West, Airport West], [Loc Addr Ln1, 45, 40, West_field Shoppingtown, West_field Shoppingtown], [Loc Addr Ln2, 85, 40, Matthews Avenue, Matthews Avenue], [Loc Addr Ln3, 125, 35, Airport West, Airport West], [Loc Postcode, 160, 10, 3042, 3042], [Loc State, 170, 3, VIC, VIC], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Matthews Avenue)')

        click('Find1')
        select('TextField', 'West_')
        select('ComboBox2', commonBits.fl('Backward'))
        assert_p('ComboBox2', 'Text', commonBits.fl('Backward'))

        ##click('Find1')
        commonBits.find(click)

        select(
            'Table',
            'cell:' + commonBits.fl('Data') + ',4(West_ Point Shopping Ctr)')
        assert_p(
            'Table', 'Text',
            'cell:' + commonBits.fl('Data') + ',4(West_ Point Shopping Ctr)')
        select('Table',
               'cell:' + commonBits.fl('Data') + ',5(Balmoral Street)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5178, 5178], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Blacktown - Not Yet Open, Blacktown - Not Yet Open], [Loc Addr Ln1, 45, 40, West_ Point Shopping Ctr, West_ Point Shopping Ctr], [Loc Addr Ln2, 85, 40, Balmoral Street, Balmoral Street], [Loc Addr Ln3, 125, 35, Blacktown, Blacktown], [Loc Postcode, 160, 10, 2134, 2134], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select(
            'Table',
            'cell:' + commonBits.fl('Data') + ',4(West_ Point Shopping Ctr)')
        click('Find1')
        select('TextField', 'West_')
        ##click('Find1')
        commonBits.find(click)

        select(
            'Table',
            'cell:' + commonBits.fl('Data') + ',4(West_field Shopping Centre)')
        assert_p(
            'Table', 'Text',
            'cell:' + commonBits.fl('Data') + ',4(West_field Shopping Centre)')
        select('Table', 'cell:' + commonBits.fl('Data') + ',5(George Street)')
        assert_p(
            'Table', 'Content',
            '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5169, 5169], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Hornsby, Hornsby], [Loc Addr Ln1, 45, 40, West_field Shopping Centre, West_field Shopping Centre], [Loc Addr Ln2, 85, 40, George Street, George Street], [Loc Addr Ln3, 125, 35, Hornsby, Hornsby], [Loc Postcode, 160, 10, 2077, 2077], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
        )
        select('Table', 'cell:' + commonBits.fl('Data') + ',5(George Street)')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        ##		click('BasicInternalFrameTitlePane$NoFocusButton5')
        #select('Table', 'cell:10 - 35|Loc Name,1(VIC West Ad Support)')
        #click('MetalInternalFrameTitlePane', 396, 14)
        #click('BasicInternalFrameTitlePane$NoFocusButton2')

        #close()
        if window(
                commonBits.fl('Save Changes to file: ' +
                              commonBits.sampleDir() +
                              'Ams_LocDownload_20041228.txt')):
            click('No')
        close()
    close()
Exemple #33
0
def test():

    set_java_recorded_version("1.6.0_22")
    if frame(' - Open File:0'):
        select('File', commonBits.sampleDir() + 'DTAR020_tst1.bin')
        click('Edit')
    close()

    if frame('Table:  - DTAR020_tst1.bin:0'):
        assert_content('JTable_22',
                       [['63604808', '20', '40118', '170', '1', '4.87'],
                        ['69684558', '20', '40118', '280', '1', '19.00'],
                        ['69684558', '20', '40118', '280', '-1', '-19.00'],
                        ['69694158', '20', '40118', '280', '1', '5.01'],
                        ['62684671', '20', '40118', '685', '1', '69.99'],
                        ['62684671', '20', '40118', '685', '-1', '-69.99'],
                        ['61664713', '59', '40118', '335', '1', '17.99'],
                        ['61664713', '59', '40118', '335', '-1', '-17.99'],
                        ['61684613', '59', '40118', '335', '1', '12.99'],
                        ['68634752', '59', '40118', '410', '1', '8.99'],
                        ['60694698', '59', '40118', '620', '1', '3.99'],
                        ['60664659', '59', '40118', '620', '1', '3.99'],
                        ['60614487', '59', '40118', '878', '1', '5.95'],
                        ['68654655', '166', '40118', '60', '1', '5.08'],
                        ['69624033', '166', '40118', '80', '1', '18.19'],
                        ['60604100', '166', '40118', '80', '1', '13.30'],
                        ['68674560', '166', '40118', '170', '1', '5.99']])
        select('JTable_22', 'rows:[0],columns:[9 - 2|STORE-NO]')
    close()

    if window('Record Editor'):
        select_menu('File>>Export via Script>>toCsvComma.py')

        if frame('Export - DTAR020_tst1.bin:0'):
            select('File Name',
                   commonBits.sampleDir() + 'DTAR020_tst1.bin.csv')
            select('Edit Output File', 'true')
            select('Keep screen open', 'true')
            click('save file')
        close()

        if window('<NoTitle>'):
            assert_content('JTable_29',
                           [['63604808', '20', '40118', '170', '1', '4.87'],
                            ['69684558', '20', '40118', '280', '1', '19.00'],
                            ['69684558', '20', '40118', '280', '-1', '-19.00'],
                            ['69694158', '20', '40118', '280', '1', '5.01'],
                            ['62684671', '20', '40118', '685', '1', '69.99'],
                            ['62684671', '20', '40118', '685', '-1', '-69.99'],
                            ['61664713', '59', '40118', '335', '1', '17.99'],
                            ['61664713', '59', '40118', '335', '-1', '-17.99'],
                            ['61684613', '59', '40118', '335', '1', '12.99'],
                            ['68634752', '59', '40118', '410', '1', '8.99'],
                            ['60694698', '59', '40118', '620', '1', '3.99'],
                            ['60664659', '59', '40118', '620', '1', '3.99'],
                            ['60614487', '59', '40118', '878', '1', '5.95'],
                            ['68654655', '166', '40118', '60', '1', '5.08'],
                            ['69624033', '166', '40118', '80', '1', '18.19'],
                            ['60604100', '166', '40118', '80', '1', '13.30'],
                            ['68674560', '166', '40118', '170', '1', '5.99'],
                            ['', '', '', '', '', ''], ['', '', '', '', '', ''],
                            ['', '', '', '', '', ''], ['', '', '', '', '', ''],
                            ['', '', '', '', '', ''], ['', '', '', '', '', ''],
                            ['', '', '', '', '', ''], ['', '', '', '', '', ''],
                            ['', '', '', '', '', ''], ['', '', '', '', '', ''],
                            ['', '', '', '', '', ''], ['', '', '', '', '', ''],
                            ['', '', '', '', '', '']])
            assert_p('Line Number of Names', 'Text', '1')
            assert_p('Parser', 'Text', 'Basic Parser')
            assert_p('JComboBox_9', 'Text', ',')
            click('Go')
        close()

        if frame('Table:  - DTAR020_tst1.bin.csv:0'):
            assert_content('JTable_22',
                           [['63604808', '20', '40118', '170', '1', '4.87'],
                            ['69684558', '20', '40118', '280', '1', '19.00'],
                            ['69684558', '20', '40118', '280', '-1', '-19.00'],
                            ['69694158', '20', '40118', '280', '1', '5.01'],
                            ['62684671', '20', '40118', '685', '1', '69.99'],
                            ['62684671', '20', '40118', '685', '-1', '-69.99'],
                            ['61664713', '59', '40118', '335', '1', '17.99'],
                            ['61664713', '59', '40118', '335', '-1', '-17.99'],
                            ['61684613', '59', '40118', '335', '1', '12.99'],
                            ['68634752', '59', '40118', '410', '1', '8.99'],
                            ['60694698', '59', '40118', '620', '1', '3.99'],
                            ['60664659', '59', '40118', '620', '1', '3.99'],
                            ['60614487', '59', '40118', '878', '1', '5.95'],
                            ['68654655', '166', '40118', '60', '1', '5.08'],
                            ['69624033', '166', '40118', '80', '1', '18.19'],
                            ['60604100', '166', '40118', '80', '1', '13.30'],
                            ['68674560', '166', '40118', '170', '1', '5.99']])
            select('JTable_22', 'rows:[0],columns:[2|B]')
            select('JTable_22', 'rows:[0],columns:[2|B]')
            select('Layouts', 'Full Line')
            assert_content('JTable_22', [['63604808,20,40118,170,1,4.87'],
                                         ['69684558,20,40118,280,1,19.00'],
                                         ['69684558,20,40118,280,-1,-19.00'],
                                         ['69694158,20,40118,280,1,5.01'],
                                         ['62684671,20,40118,685,1,69.99'],
                                         ['62684671,20,40118,685,-1,-69.99'],
                                         ['61664713,59,40118,335,1,17.99'],
                                         ['61664713,59,40118,335,-1,-17.99'],
                                         ['61684613,59,40118,335,1,12.99'],
                                         ['68634752,59,40118,410,1,8.99'],
                                         ['60694698,59,40118,620,1,3.99'],
                                         ['60664659,59,40118,620,1,3.99'],
                                         ['60614487,59,40118,878,1,5.95'],
                                         ['68654655,166,40118,60,1,5.08'],
                                         ['69624033,166,40118,80,1,18.19'],
                                         ['60604100,166,40118,80,1,13.30'],
                                         ['68674560,166,40118,170,1,5.99']])
            click('Close')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            click('Close')
        close()

        if frame('Table:  - DTAR020_tst1.bin:0'):
            select('JTable_22', 'rows:[0],columns:[9 - 2|STORE-NO]')
        close()

    close()

    pass
Exemple #34
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin')
		commonBits.doEdit(click)

		select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Sorted Field Tree'))
#		select('List', 'DTAR020')
		select('Table', 'STORE-NO', commonBits.fl('Field') + ',0')
		select('Table', 'DEPT-NO', commonBits.fl('Field') + ',1')
		select('Table', 'cell:' + commonBits.fl('Field') + ',1(DEPT-NO)')
		click(commonBits.fl('Build Tree'))
		select('JTreeTable', 'cell:KEYCODE-NO,0(null)')
		rightclick('JTreeTable', 'KEYCODE-NO,0')
		select_menu(commonBits.fl('Copy Record#{s#}'))
		select('JTreeTable', 'cell:KEYCODE-NO,2(null)')
		rightclick('JTreeTable', 'KEYCODE-NO,2')
		select_menu(commonBits.fl('Paste Record#{s#} Prior'))
		select('JTreeTable', 'cell:KEYCODE-NO,2(null)')
		assert_p('JTreeTable', 'RowCount', '5')
		select('JTreeTable', 'cell:KEYCODE-NO,2(null)')
		rightclick('JTreeTable', 'KEYCODE-NO,2')
		select_menu(commonBits.fl('Expand Tree'))
		select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',5(null)')
		assert_p('JTreeTable', 'RowCount', '10')
		select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',3(null)')
		rightclick('JTreeTable', commonBits.fl('Tree') + ',3')
		select_menu(commonBits.fl('Expand Tree'))
		select('JTreeTable', 'cell:KEYCODE-NO,4(63604808)')
		assert_p('JTreeTable', 'Text', '63604808', 'KEYCODE-NO,4')
		select('JTreeTable', 'cell:STORE-NO,4(20)')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 20, 40118, 170, 1, 4.87], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',8(null)')
		rightclick('JTreeTable', commonBits.fl('Tree') + ',8')
		select_menu(commonBits.fl('Expand Tree'))
		select('JTreeTable', 'cell:KEYCODE-NO,10(66624458)')
		assert_p('JTreeTable', 'Text', '66624458', 'KEYCODE-NO,10')
		select('JTreeTable', 'cell:KEYCODE-NO,11(63674861)')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 20, 40118, 170, 1, 4.87], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 64634429, 20, 40118, 957, 1, 3.99], [, , 66624458, 20, 40118, 957, 1, 0.89], [, , 63674861, 20, 40118, 957, 10, 2.70], [, , , , , , , ], [, , , , , , , ]]')
		select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',6(null)')
		rightclick('JTreeTable', commonBits.fl('Tree') + ',6')
		select_menu(commonBits.fl('Expand Tree'))
		select('JTreeTable', 'cell:KEYCODE-NO,7(62684671)')
		assert_p('JTreeTable', 'Text', '62684671', 'KEYCODE-NO,7')
		select('JTreeTable', 'cell:KEYCODE-NO,8(62684671)')
		rightclick('JTreeTable', 'KEYCODE-NO,8')
		select('JTreeTable', 'cell:KEYCODE-NO,8(62684671)')
		assert_p('JTreeTable', 'RowCount', '16')
		select('JTreeTable', 'cell:DATE,7(40118)')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 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('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',1(null)')
		rightclick('JTreeTable', commonBits.fl('Tree') + ',1')
		select_menu(commonBits.fl('Expand Tree'))
		select('JTreeTable', 'cell:' + commonBits.fl('Tree') + ',6(null)')
		assert_p('JTreeTable', 'RowCount', '22')
		select('JTreeTable', 'rows:[7,8,9,10,11,12,13,14,15],columns:[' + commonBits.fl('Tree') + ']')
		select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}'))
		select('JTreeTable', 'rows:[7,8,9,10,11,12,13,14,15],columns:[' + commonBits.fl('Tree') + ']')
		select('Table', 'cell:1 - 8|KEYCODE-NO,4(63604808)')
		assert_p('Table', 'Content', '[[64614401, 59, 40118, 957, 1, 1.99], [64614401, 59, 40118, 957, 1, 1.99], [62684217, 59, 40118, 957, 1, 9.99], [64624770, 59, 40118, 957, 1, 2.59], [63604808, 20, 40118, 170, 1, 4.87], [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], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [65674532, 20, 40118, 929, 1, 3.59]]')
		select('Table', 'cell:1 - 8|KEYCODE-NO,7(69684558)')
		assert_p('Table', 'Text', '69684558', '1 - 8|KEYCODE-NO,7')
		select('Table', 'cell:1 - 8|KEYCODE-NO,1(64614401)')
		assert_p('Table', 'Text', '62684217', '1 - 8|KEYCODE-NO,2')
		select('Table', 'cell:1 - 8|KEYCODE-NO,1(64614401)')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window(commonBits.fl('Save Changes to file: ' + commonBits.sampleDir() + 'DTAR020.bin')):
			click('No')
		close()
	close()
def test():
    from Modules import commonBits
    java_recorded_version = '1.7.0_51'

    if window(commonBits.applicationName()):
        select('File_Txt', commonBits.sampleDir() + 'FieldTestOptional.bin')
        select('File Structure_Txt', 'Delimited Messages')
        select('Proto Definition_Txt',
               commonBits.stdCopybookDir() + 'FieldTestOptional.proto')
        click('Edit1')
        select('TabbedPane', 'Record:')
        select('LineFrame.FileDisplay_JTbl', '11', 'Data,0')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,0()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,0')
        select('LineFrame.FileDisplay_JTbl', '22', 'Data,1')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,1()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,1')
        select('LineFrame.FileDisplay_JTbl', '33', 'Data,2')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,2()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,2')
        select('LineFrame.FileDisplay_JTbl', '44', 'Data,3')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,3()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,3')
        select('LineFrame.FileDisplay_JTbl', '55', 'Data,4')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,4()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,4')
        select('LineFrame.FileDisplay_JTbl', '66', 'Data,5')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,5()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,5')
        select('LineFrame.FileDisplay_JTbl', '77', 'Data,6')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,6()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,6')
        select('LineFrame.FileDisplay_JTbl', '88', 'Data,7')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,7()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,7')
        select('LineFrame.FileDisplay_JTbl', '99', 'Data,8')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,8()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,8')
        select('LineFrame.FileDisplay_JTbl', '10', 'Data,9')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,9()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,9')
        select('LineFrame.FileDisplay_JTbl', '222', 'Data,10')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,10()')
        keystroke('LineFrame.FileDisplay_JTbl', 'Down', 'Data,10')
        select('LineFrame.FileDisplay_JTbl', '333.0', 'Data,11')
        select('LineFrame.FileDisplay_JTbl', 'true', 'Data,12')
        select('LineFrame.FileDisplay_JTbl', '555', 'Data,13')
        select('LineFrame.FileDisplay_JTbl', 'RETURN', 'Data,14')
        select('LineFrame.FileDisplay_JTbl', '77', 'Data,15')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,15(77)')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, 99, 99], [f10, 10, , FIXED64, 10, 10], [f11, 11, , FLOAT, 222.0, 222.0], [f12, 12, , DOUBLE, 333.0, 333.0], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, 555, 555], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, 77, 77]]'
        )
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,15(77)')
        click('DisplayFrame$TabButton', 33, 22)
        select('TabbedPane', 'Table:')
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[11, 22, 33, 44, 55, 66, 77, 88, 99, 10, 222.0, 333.0, true, 555, RETURN, 77]]'
        )
        click('Record: 1')
        select('TabbedPane', 'Record:')

        rightclick('LineFrame.FileDisplay_JTbl', 'Data,15')
        select_menu('Clear Field')

        select('LineFrame.FileDisplay_JTbl', 'cell:Text,15()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, 99, 99], [f10, 10, , FIXED64, 10, 10], [f11, 11, , FLOAT, 222.0, 222.0], [f12, 12, , DOUBLE, 333.0, 333.0], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, 555, 555], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,13')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,13()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, 99, 99], [f10, 10, , FIXED64, 10, 10], [f11, 11, , FLOAT, 222.0, 222.0], [f12, 12, , DOUBLE, 333.0, 333.0], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,11')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,11()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, 99, 99], [f10, 10, , FIXED64, 10, 10], [f11, 11, , FLOAT, 222.0, 222.0], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,10')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,10()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, 99, 99], [f10, 10, , FIXED64, 10, 10], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,9')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Data,8(99)')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, 99, 99], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,8')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,8()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, 88, 88], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,7')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,7()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, 77, 77], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,6')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,6()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, 66, 66], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,5')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,5()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, 55, 55], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,4')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,4()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, 33, 33], [f04, 4, , UINT32, 44, 44], [f05, 5, , FIXED32, , ], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,4()')
        click('DisplayFrame$TabButton', 33, 21)
        select('TabbedPane', 'Table:')
        assert_p('LineList.FileDisplay_JTbl', 'Content',
                 '[[11, 22, 33, 44, , , , , , , , , true, , RETURN, ]]')
        select('LineList.FileDisplay_JTbl', '', '4|f04,0')
        select('LineList.FileDisplay_JTbl', 'cell:5|f05,0()')
        assert_p('LineList.FileDisplay_JTbl', 'Content',
                 '[[11, 22, 33, , , , , , , , , , true, , RETURN, ]]')
        select('LineList.FileDisplay_JTbl', '', '3|f03,0')
        select('LineList.FileDisplay_JTbl', 'cell:4|f04,0()')
        assert_p('LineList.FileDisplay_JTbl', 'Content',
                 '[[11, 22, , , , , , , , , , , true, , RETURN, ]]')
        select('LineList.FileDisplay_JTbl', 'cell:4|f04,0()')
        click('Record: 1')
        select('TabbedPane', 'Record:')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, 22, 22], [f03, 3, , SFIXED32, , ], [f04, 4, , UINT32, , ], [f05, 5, , FIXED32, , ], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,1')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,1()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, 11, 11], [f02, 2, , SINT32, , ], [f03, 3, , SFIXED32, , ], [f04, 4, , UINT32, , ], [f05, 5, , FIXED32, , ], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,0')
        select_menu('Clear Field')
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,0()')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, , ], [f02, 2, , SINT32, , ], [f03, 3, , SFIXED32, , ], [f04, 4, , UINT32, , ], [f05, 5, , FIXED32, , ], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, true, true], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        select('LineFrame.FileDisplay_JTbl', 'cell:Text,0()')
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,12')
        select_menu('Clear Field')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, , ], [f02, 2, , SINT32, , ], [f03, 3, , SFIXED32, , ], [f04, 4, , UINT32, , ], [f05, 5, , FIXED32, , ], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, , ], [f15, 14, , STRING, , ], [f17, 15, , ENUM, RETURN, RETURN], [f19, 16, , BYTES, , ]]'
        )
        ##		select('LineFrame.FileDisplay_JTbl', '')
        rightclick('LineFrame.FileDisplay_JTbl', 'Data,14')
        select_menu('Clear Field')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f01, 1, , INT32, , ], [f02, 2, , SINT32, , ], [f03, 3, , SFIXED32, , ], [f04, 4, , UINT32, , ], [f05, 5, , FIXED32, , ], [f06, 6, , INT64, , ], [f07, 7, , SINT64, , ], [f08, 8, , SFIXED64, , ], [f09, 9, , UINT64, , ], [f10, 10, , FIXED64, , ], [f11, 11, , FLOAT, , ], [f12, 12, , DOUBLE, , ], [f13, 13, , BOOL, , ], [f15, 14, , STRING, , ], [f17, 15, , ENUM, , ], [f19, 16, , BYTES, , ]]'
        )
        click('Table:')
        select('TabbedPane', 'Table:')
        assert_p('LineList.FileDisplay_JTbl', 'Content',
                 '[[, , , , , , , , , , , , , , , ]]')
        click('Delete2')
##		click('BasicInternalFrameTitlePane$NoFocusButton2')

##		if window(r'Save Changes to file: G:\Users\BruceTst01\.RecordEditor\ProtoBuf\SampleFiles\FieldTestOptional.bin'):
##			click('No')
##		close()
    close()
Exemple #36
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Record Editor'):
        select('FileChooser',
               commonBits.sampleDir() + 'utf8a_Ams_LocDownload_20041228.txt')
        commonBits.setRecordLayout(select, 'utf8_ams Store')
        click(commonBits.fl('Edit') + '1')
        click('Filter1')
        select('Table1', 'Loc Type', commonBits.fl('Field') + ',0')
        select('Table1', ' = ', commonBits.fl('Operator') + ',0')
        select('Table1', 'dc', commonBits.fl('Value') + ',0')
        select('Table1', 'Loc Nbr', commonBits.fl('Field') + ',1')
        select('Table1', '8', commonBits.fl('Value') + ',1')
        select('Table1', 'cell:' + commonBits.fl('Value') + ',1()')
        select('Table', 'false', commonBits.fl('Include') + ',0')
        select('Table', 'false', commonBits.fl('Include') + ',2')
        select('Table', 'false', commonBits.fl('Include') + ',7')
        select('Table', 'false', commonBits.fl('Include') + ',6')
        select('Table', 'false', commonBits.fl('Include') + ',5')
        #select('Table1', 'cell:' + commonBits.fl('Include') + ',5(false)')
        commonBits.filter(click)

        select('Table', 'cell:10 - 35|Loc Name,1(VIC West Ad Support)')

        ##		assert_p('Table', 'Content', '[[5839, DC - Taras Ave, , VIC, A], [5850, VIC West Ad Support, , VIC, A], [5853, NSW North Sydney Ad Support, , , A], [5866, WA Ad Support, , , A], [5887, QLD Ad Support, , , A], [5888, SA Ad Support, , , A], [5895, VIC East Ad Support, , , A], [5897, Sydney Gate DC, No 2 Sydney Gate, NSW, A], [5958, State Warehouse  WA, Target State Warehouse (WA) FCL, WA, A], [5968, Beverly DC, Beverly DC, SA, A]]')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[5839, DC - Taras Ave, , VIC], [5850, VIC West Ad Support, , VIC], [5853, NSW North Sydney Ad Support, , ], [5866, WA Ad Support, , ], [5887, QLD Ad Support, , ], [5888, SA Ad Support, , ], [5895, VIC East Ad Support, , ], [5897, Sydney Gate DC, No 2 Sydney Gate, NSW], [5958, State Warehouse  WA, Target State Warehouse (WA) FCL, WA], [5968, Beverly DC, Beverly DC, SA]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[5839, DC - Taras Ave, , VIC, A], [5850, VIC West Ad Support, , VIC, A], [5853, NSW North Sydney Ad Support, , , A], [5866, WA Ad Support, , , A], [5887, QLD Ad Support, , , A], [5888, SA Ad Support, , , A], [5895, VIC East Ad Support, , , A], [5897, Sydney Gate DC, No 2 Sydney Gate, NSW, A], [5958, State Warehouse  WA, Target State Warehouse (WA) FCL, WA, A], [5968, Beverly DC, Beverly DC, SA, A]]'
            )

        select('Table', 'cell:10 - 35|Loc Name,7(Sydney Gate DC)')
        assert_p('Table', 'Text', 'cell:10 - 35|Loc Name,7(Sydney Gate DC)')
        select('Table', 'cell:10 - 35|Loc Name,5(SA Ad Support)')
        assert_p('Table', 'RowCount', '10')
        select('Table', 'cell:10 - 35|Loc Name,7(Sydney Gate DC)')
        rightclick('Table', '10 - 35|Loc Name,7')
        select_menu(commonBits.fl('Edit Record'))
        ##	select('Table1', 'cell:10 - 35|Loc Name,7(Sydney Gate DC)')
        select('Table', 'cell:' + commonBits.fl('Data') + ',1(Sydney Gate DC)')

        ##		assert_p('Table', 'Content', '[[Loc Nbr, 4, 4, 5897, 5897], [Loc Name, 10, 35, Sydney Gate DC, Sydney Gate DC], [Loc Addr Ln1, 45, 40, No 2 Sydney Gate, No 2 Sydney Gate], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[Loc Nbr, 4, 4, 5897, 5897], [Loc Name, 10, 35, Sydney Gate DC, Sydney Gate DC], [Loc Addr Ln1, 45, 40, No 2 Sydney Gate, No 2 Sydney Gate], [Loc State, 170, 3, NSW, NSW]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[Loc Nbr, 4, 4, 5897, 5897], [Loc Name, 10, 35, Sydney Gate DC, Sydney Gate DC], [Loc Addr Ln1, 45, 40, No 2 Sydney Gate, No 2 Sydney Gate], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
            )

        select('Table', 'cell:' + commonBits.fl('Data') + ',3(NSW)')
        assert_p('Table', 'Text', 'cell:' + commonBits.fl('Data') + ',3(NSW)')
        select('Table', 'cell:' + commonBits.fl('Data') + ',1(Sydney Gate DC)')

        if commonBits.isMissingCol():
            assert_p('Table', 'RowCount', '4')
        else:
            assert_p('Table', 'RowCount', '5')

    close()
Exemple #37
0
def test():
    from Modules import commonBits
    import time

    java_recorded_version = '1.6.0_17'

    if window('Record Editor'):
        select('FileChooser', commonBits.sampleDir() + 'OC_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', '8')
            assert_p('BmKeyedComboBox', 'Text', 'Open Cobol VB')
            commonBits.doSleep()

            click('Go')
            commonBits.doSleep()
        close()

        commonBits.doSleep()

        commonBits.doSleep()

        select_menu('Window>>OC_VB_Test.bin>>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', 'Hex 1 Line')
        select('Table', 'cell:         +         1|Hex (1 Line),0([B@168442e)')
        assert_p(
            'Table', 'Text',
            '54415235303135535442616e6b73746f776e202020202020202020202020202020202020202020202020202042616e6b73746f776e20202020202020202020202020202020202020202020202020202020202020556e697420322c2033392d343120416c6c696e6768616d2053747265657420202020202020202020436f6e64656c6c205061726b2020202020202020202020202020202020202020202020323230302020202020204e535741',
            '         +         1|Hex (1 Line),0')
        select('Table', 'cell:         +         1|Hex (1 Line),1([B@18374c9)')
        assert_p(
            'Table', 'Text',
            '54415235303139535450656e726974682020202020202020202020202020202020202020202020202020202050656e726974682020202020202020202020202020202020202020202020202020202020202020203538204c656c616e642053747265657420202020202020202020202020202020202020202020202050656e7269746820202020202020202020202020202020202020202020202020202020323735302020202020204e535741',
            '         +         1|Hex (1 Line),1')
        select('Table', 'cell:         +         1|Hex (1 Line),2([B@c31c7d)')
        assert_p(
            'Table', 'Text',
            '544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741',
            '         +         1|Hex (1 Line),2')
        select('Table', 'cell:         +         1|Hex (1 Line),3([B@11de95a)')
        assert_p(
            'Table', 'Text',
            '544152353033355354526f636b64616c652020202020202020202020202020202020202020202020202020204275696c64696e6720422c2020506f72747369646520444320202020202020202020202020202020322d38204d632050686572736f6e2053747265657420202020202020202020202020202020202020426f74616e792020202020202020202020202020202020202020202020202020202020323031392020202020204e535741',
            '         +         1|Hex (1 Line),3')
        select('Table', 'cell:         +         1|Hex (1 Line),4([B@1c20de3)')
        assert_p(
            'Table', 'Text',
            '5441523530333753544d6972616e646120202020202020202020202020202020202020202020202020202020576573746669656c642053686f7070696e67746f776e202020202020202020202020202020202020436e722e205572756e676120506465202620546865204b696e6773776179202020202020202020204d6972616e646120202020202020202020202020202020202020202020202020202020323232382020202020204e535741',
            '         +         1|Hex (1 Line),4')
        select('Table', 'cell:         +         1|Hex (1 Line),5([B@3aab44)')
        assert_p(
            'Table', 'Text',
            '54415235303532535445617374776f6f642020202020202020202020202020202020202020202020202020204d617261796f6e67204f6666736974652052657365727665202020202020202020202020202020203131204d656c6973736120506c6163652020202020202020202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741',
            '         +         1|Hex (1 Line),5')
        select('Table', 'cell:         +         1|Hex (1 Line),5([B@3aab44)')
        select('LayoutCombo', 'Hex 2 Lines (Mainframe Style)')
        select('Table',
               'cell:         +         1|Hex (2 Lines),0([B@168442e)')
        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|Hex (2 Lines),0')
        select('Table',
               'cell:         +         1|Hex (2 Lines),1([B@18374c9)')
        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 
54415235303139535450656e726974682020202020202020202020202020202020202020202020202020202050656e726974682020202020202020202020202020202020202020202020202020202020202020203538204c656c616e642053747265657420202020202020202020202020202020202020202020202050656e7269746820202020202020202020202020202020202020202020202020202020323735302020202020204e535741''',
            '         +         1|Hex (2 Lines),1')
        select('Table', 'cell:         +         1|Hex (2 Lines),2([B@c31c7d)')
        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 
544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741''',
            '         +         1|Hex (2 Lines),2')
        select('Table',
               'cell:         +         1|Hex (2 Lines),3([B@11de95a)')
        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|Hex (2 Lines),3')
        select('Table',
               'cell:         +         1|Hex (2 Lines),4([B@1c20de3)')
        assert_p(
            'Table', 'Text',
            '''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 
5441523530333753544d6972616e646120202020202020202020202020202020202020202020202020202020576573746669656c642053686f7070696e67746f776e202020202020202020202020202020202020436e722e205572756e676120506465202620546865204b696e6773776179202020202020202020204d6972616e646120202020202020202020202020202020202020202020202020202020323232382020202020204e535741''',
            '         +         1|Hex (2 Lines),4')
        select('Table', 'cell:         +         1|Hex (2 Lines),5([B@3aab44)')
        assert_p(
            'Table', 'Text',
            '''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 
54415235303532535445617374776f6f642020202020202020202020202020202020202020202020202020204d617261796f6e67204f6666736974652052657365727665202020202020202020202020202020203131204d656c6973736120506c6163652020202020202020202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741''',
            '         +         1|Hex (2 Lines),5')
        select('Table', 'cell:         +         1|Hex (2 Lines),5([B@3aab44)')
        select('LayoutCombo', 'Hex 3 Lines (ISPF Edit Hex)')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),0([B@168442e)')
        assert_p(
            'Table', 'Text',
            '''TAR5015STBankstown                          Bankstown                               Unit 2, 39-41 Allingham Street          Condell Park                       2200      NSWA
54533335546667767622222222222222222222222222466677676222222222222222222222222222222256672322332332466666666257766722222222224666666256762222222222222222222222233332222224554
41250153421eb34f7e0000000000000000000000000021eb34f7e00000000000000000000000000000005e9402c039d4101cc9e781d034255400000000003fe45cc0012b000000000000000000000002200000000e371''',
            '    +    1|Hex (SPF Edit Style),0')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),1([B@18374c9)')
        assert_p(
            'Table', 'Text',
            '''TAR5019STPenrith                            Penrith                                 58 Leland Street                        Penrith                            2750      NSWA
54533335556676762222222222222222222222222222566767622222222222222222222222222222222233246666625776672222222222222222222222225667676222222222222222222222222222233332222224554
41250193405e2948000000000000000000000000000005e2948000000000000000000000000000000000580c5c1e4034255400000000000000000000000005e294800000000000000000000000000002750000000e371''',
            '    +    1|Hex (SPF Edit Style),1')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),2([B@c31c7d)')
        assert_p(
            'Table', 'Text',
            '''TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA
54533335546666767622222222222222222222222222467676662222222222222222222222222222222246662322332466677625666622222222222222224676766622222222222222222222222222233332222224554
4125033342c13b4f7e00000000000000000000000000d1219fe7000000000000000000000000000000004f3b02c0110d5c933100c1350000000000000000d1219fe70000000000000000000000000002148000000e371''',
            '    +    1|Hex (SPF Edit Style),2')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),3([B@11de95a)')
        assert_p(
            'Table', 'Text',
            '''TAR5035STRockdale                           Building B,  Portside DC                2-8 Mc Pherson Street                   Botany                             2019      NSWA
54533335556666666222222222222222222222222222476666662422256777666244222222222222222232324625667766257766722222222222222222224676672222222222222222222222222222233332222224554
4125035342f3b41c5000000000000000000000000000259c49e702c000f24394504300000000000000002d80d3008523fe034255400000000000000000002f41e9000000000000000000000000000002019000000e371''',
            '    +    1|Hex (SPF Edit Style),3')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),4([B@1c20de3)')
        assert_p(
            'Table', 'Text',
            '''TAR5037STMiranda                            Westfield Shoppingtown                  Cnr. Urunga Pde & The Kingsway          Miranda                            2228      NSWA
54533335546766662222222222222222222222222222567766666256677666767622222222222222222246722577666256622256624666776722222222224676666222222222222222222222222222233332222224554
412503734d921e4100000000000000000000000000007534695c4038f009e74f7e0000000000000000003e2e0525e7100450604850b9e737190000000000d921e4100000000000000000000000000002228000000e371''',
            '    +    1|Hex (SPF Edit Style),4')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),5([B@3aab44)')
        assert_p(
            'Table', 'Text',
            '''TAR5052STEastwood                           Marayong Offsite Reserve                11 Melissa Place                        Marayong                           2148      NSWA
54533335546777666222222222222222222222222222467676662466767625676776222222222222222233246667762566662222222222222222222222224676766622222222222222222222222222233332222224554
41250523451347ff4000000000000000000000000000d1219fe70f663945025352650000000000000000110d5c933100c135000000000000000000000000d1219fe70000000000000000000000000002148000000e371''',
            '    +    1|Hex (SPF Edit Style),5')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),2([B@c31c7d)')
        rightclick('Table', '    +    1|Hex (SPF Edit Style),2')
        select_menu('Edit Record')
        ##		select('Table1', 'cell:    +    1|Hex (SPF Edit Style),2([B@c31c7d)')
        select(
            'Table',
            'cell:Data,0(TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA)'
        )
        assert_p(
            'Table', 'Content',
            '[[Data, 1, 1, TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA, T, 544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741]]'
        )
        select(
            'Table',
            'cell:Data,0(TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA)'
        )
        assert_p(
            'Table', 'Content',
            '[[Data, 1, 1, TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA, T, 544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741]]'
        )
        select(
            'Table',
            'cell:Data,0(TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA)'
        )
        assert_p(
            'Table', 'Text',
            'cell:Data,0(TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSWA)'
        )
        select(
            'Table',
            'cell:Hex,0(544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741)'
        )
        assert_p(
            'Table', 'Text',
            '544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741',
            'Hex,0')
        select(
            'Table',
            'cell:Hex,0(544152353033335354426c61636b746f776e20202020202020202020202020202020202020202020202020204d617261796f6e672020202020202020202020202020202020202020202020202020202020202020446f636b20322c203131204d656c6973736120506c616365202020202020202020202020202020204d617261796f6e67202020202020202020202020202020202020202020202020202020323134382020202020204e535741)'
        )
        select('CheckBox', 'false')
        select('Table', 'cell:Hex,0([B@be568b)')
        assert_p(
            'Table', 'Text',
            '''TAR5033STBlacktown                          Marayong                                Dock 2, 11 Melissa Place                Marayong                           2148      NSW
5453333554666676762222222222222222222222222246767666222222222222222222222222222222224666232233246667762566662222222222222222467676662222222222222222222222222223333222222455
4125033342c13b4f7e00000000000000000000000000d1219fe7000000000000000000000000000000004f3b02c0110d5c933100c1350000000000000000d1219fe70000000000000000000000000002148000000e37''',
            'Hex,0')
        select('Table', 'cell:Hex,0([B@1aff6b1)')
        select('Table', 'cell:Hex,0([B@1589559)')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('Table', 'cell:    +    1|Hex (SPF Edit Style),2([B@c31c7d)')
    close()
Exemple #38
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window(commonBits.applicationName()):
        select('FileNameTxtFld',
               commonBits.sampleDir() + 'protoStoreSales3im.bin')
        click('Edit1')
        ##		select('JTreeTable', '')
        rightclick('JTreeTable', 'Tree,0')
        select_menu('Edit Record')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(20)')
        assert_p('BaseLineAsColumn$LineAsColTbl', 'Content',
                 '[[store, 1, , 20, 20], [name, 2, , Store: 20, Store: 20]]')
        click('Find1')
        click('MetalInternalFrameTitlePane', 219, 13)
        select('TextField', '66')
        select('ComboBox', 'All Fields')
        click('Find1')
        select_menu('Window>>protoStoreSales3im.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(66624458)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 66624458, 66624458], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 890, 890]]'
        )
        select_menu('Window>>protoStoreSales3im.bin>>Find')
        ##		click('Find1')

        ##		click('Find1')
        select('ComboBox', 'All Fields')
        click('Find1')

        select_menu('Window>>protoStoreSales3im.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(66624458)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 66624458, 66624458], [quantity, 2, , 1, 1]]')
        select_menu('Window>>protoStoreSales3im.bin>>Find')
        click('Find1')

        click('Find1')
        select('ComboBox', 'All Fields')
        click('Find1')

        select_menu('Window>>protoStoreSales3im.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,1(40118)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 61664713, 61664713], [saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1], [price, 4, , -17990, -17990]]'
        )
        #		click('Find1')
        #		click('Find1')

        click('Find1')
        select('ComboBox', 'All Fields')
        click('Find1')

        select_menu('Window>>protoStoreSales3im.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(60664659)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 60664659, 60664659], [quantity, 2, , 1, 1]]')
        ##		click('Find1')
        ##		click('Find1')

        click('Find1')
        select('ComboBox', 'All Fields')
        click('Find1')

        select_menu('Window>>protoStoreSales3im.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(166)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[store, 1, , 166, 166], [name, 2, , Store: 166, Store: 166]]')

    close()
Exemple #39
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Editor'):
        select('File_Txt', commonBits.sampleDir() + 'csv2DTAR020_tst1.bin.csv')
        if commonBits.version() == 'MsAccess':
            select('Record Layout_Txt',
                   'Comma Delimited, names on the first line')
        else:
            select('System_Txt', 'CSV')
        click('Edit1')
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [68634752, 59, 40118, 410, 1, 8.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [60614487, 59, 40118, 878, 1, 5.95], [68654655, 166, 40118, 60, 1, 5.08], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30], [68674560, 166, 40118, 170, 1, 5.99]]'
        )
        select('LineList.FileDisplay_JTbl', 'cell:2|STORE-NO,0(20)')
        rightclick('LineList.FileDisplay_JTbl', '1|KEYCODE-NO,0')
        ##		select('LineList.FileDisplay_JTbl', 'cell:2|STORE-NO,0(20)')
        select_menu('Edit Record')
        #		select('LineList.FileDisplay_JTbl', 'cell:2|STORE-NO,0(20)')
        #		select('LineList.FileDisplay_JTbl', 'cell:2|STORE-NO,0(20)')
        click('Find1')
        ##		click('WindowsInternalFrameTitlePane', 153, 18)
        select('Find.Search For_Txt', '20')

        select('Find.Operator_Txt', ' <> ')
        select('Find.Field_Txt', 'STORE-NO')
        click('Find1')
        assert_p('TextField', 'Text',
                 'Found (line, field Num, field position)=7, 1, 0')
        select_menu('Window>>csv2DTAR020_tst1.bin.csv>>Record: ')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, , 61664713, 61664713], [STORE-NO, 2, , 59, 59], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 335, 335], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 17.99, 17.99]]'
        )
        assert_p('LineFrame.Record_Txt', 'Text', '7')
        select_menu('Window>>csv2DTAR020_tst1.bin.csv>>Find')
        select('Find.Operator_Txt', ' <> ')
        select('Find.Field_Txt', 'STORE-NO')
        click('Find1')
        ##		click('Find1')
        assert_p('TextField', 'Text',
                 'Found (line, field Num, field position)=8, 1, 0')
        select_menu('Window>>csv2DTAR020_tst1.bin.csv>>Record: ')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, , 61664713, 61664713], [STORE-NO, 2, , 59, 59], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 335, 335], [QTY-SOLD, 5, , -1, -1], [SALE-PRICE, 6, , -17.99, -17.99]]'
        )
        assert_p('LineFrame.Record_Txt', 'Text', '8')
        select_menu('Window>>csv2DTAR020_tst1.bin.csv>>Find')
        select('Find.Operator_Txt', ' <> ')
        select('Find.Field_Txt', 'STORE-NO')
        click('Find1')
        assert_p('TextField', 'Text',
                 'Found (line, field Num, field position)=9, 1, 0')
        click('Find1')
        assert_p('TextField', 'Text',
                 'Found (line, field Num, field position)=10, 1, 0')
        select_menu('Window>>csv2DTAR020_tst1.bin.csv>>Record: ')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, , 68634752, 68634752], [STORE-NO, 2, , 59, 59], [DATE, 3, , 40118, 40118], [DEPT-NO, 4, , 410, 410], [QTY-SOLD, 5, , 1, 1], [SALE-PRICE, 6, , 8.99, 8.99]]'
        )
        assert_p('LineFrame.Record_Txt', 'Text', '10')
    close()
Exemple #40
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Editor'):
        select('File_Txt', commonBits.sampleDir() + 'csv3DTAR020_tst1.bin.csv')

        if commonBits.version() == 'MsAccess':
            select('Record Layout_Txt',
                   'Comma Delimited, names on the first line')
        else:
            select('System_Txt', 'CSV')

        click(commonBits.fl('Edit') + '1')
        select_menu(
            commonBits.fl('View') + '>>' + commonBits.fl('Sorted Field Tree'))
        select('fields_JTbl', 'STORE-NO', commonBits.fl('Field') + ',0')
        select('fields_JTbl',
               'cell:' + commonBits.fl('Field') + ',0(STORE-NO)')
        select('fieldSummary_JTbl',
               'cell:' + commonBits.fl('Function') + ',1()')
        select('fields_JTbl',
               'cell:' + commonBits.fl('Field') + ',0(STORE-NO)')
        select('fieldSummary_JTbl', commonBits.fl('Maximum'),
               commonBits.fl('Function') + ',1')
        ##
        ##
        select('fieldSummary_JTbl', commonBits.fl('Sum'),
               commonBits.fl('Function') + ',4')
        select('fieldSummary_JTbl', commonBits.fl('Sum'),
               commonBits.fl('Function') + ',5')
        select(
            'fieldSummary_JTbl', 'cell:' + commonBits.fl('Function') + ',5(' +
            commonBits.fl('Sum') + ')')
        click(commonBits.fl('Build Tree'))
        select('TabbedPane', 'Tree View')
        assert_p(
            'LineTree.FileDisplay_JTbl', 'Content',
            '[[, , , 166, , , 4, 42.56], [, , 68654655, 166, 40118, 60, 1, 5.08], [, , 69624033, 166, 40118, 80, 1, 18.19], [, , 60604100, 166, 40118, 80, 1, 13.30], [, , 68674560, 166, 40118, 170, 1, 5.99], [, , , 20, , , 2, 9.88], [, , 63604808, 20, 40118, 170, 1, 4.87], [, , 69684558, 20, 40118, 280, 1, 19.00], [, , 69684558, 20, 40118, 280, -1, -19.00], [, , 69694158, 20, 40118, 280, 1, 5.01], [, , 62684671, 20, 40118, 685, 1, 69.99], [, , 62684671, 20, 40118, 685, -1, -69.99], [, , , 59, , , 5, 35.91], [, , 61664713, 59, 40118, 335, 1, 17.99], [, , 61664713, 59, 40118, 335, -1, -17.99], [, , 61684613, 59, 40118, 335, 1, 12.99], [, , 68634752, 59, 40118, 410, 1, 8.99], [, , 60694698, 59, 40118, 620, 1, 3.99], [, , 60664659, 59, 40118, 620, 1, 3.99], [, , 60614487, 59, 40118, 878, 1, 5.95]]'
        )
        ##		select_menu(commonBits.fl('Window') + '>>' + commonBits.fl('Show Child Record'))

        rightclick(commonBits.fl('Tree View'))
        select_menu(commonBits.fl('Show Child Record'))

        select('TabbedPane', 'Tree View')
        assert_p('LineFrame.Record_Txt', 'Text', '1')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, 68654655, 68654655], [STORE-NO, 2, 166, 166], [DATE, 3, 40118, 40118], [DEPT-NO, 4, 60, 60], [QTY-SOLD, 5, 1, 1], [SALE-PRICE, 6, 5.08, 5.08]]'
        )
        select('LineTree.FileDisplay_JTbl', 'cell:KEYCODE-NO,4(68674560)')
        assert_p('LineFrame.Record_Txt', 'Text', '4')
        select('LineTree.FileDisplay_JTbl', 'cell:KEYCODE-NO,4(68674560)')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, 68674560, 68674560], [STORE-NO, 2, 166, 166], [DATE, 3, 40118, 40118], [DEPT-NO, 4, 170, 170], [QTY-SOLD, 5, 1, 1], [SALE-PRICE, 6, 5.99, 5.99]]'
        )
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,7(40118)')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, 69684558, 69684558], [STORE-NO, 2, 20, 20], [DATE, 3, 40118, 40118], [DEPT-NO, 4, 280, 280], [QTY-SOLD, 5, 1, 1], [SALE-PRICE, 6, 19.00, 19.00]]'
        )
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,7(40118)')
        assert_p('LineFrame.Record_Txt', 'Text', '6')
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,11(40118)')
        assert_p('LineFrame.Record_Txt', 'Text', '10')
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,11(40118)')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[KEYCODE-NO, 1, 62684671, 62684671], [STORE-NO, 2, 20, 20], [DATE, 3, 40118, 40118], [DEPT-NO, 4, 685, 685], [QTY-SOLD, 5, -1, -1], [SALE-PRICE, 6, -69.99, -69.99]]'
        )
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,11(40118)')
        select_menu(
            commonBits.fl('Window') + '>>' +
            commonBits.fl('Remove Child Record'))
        select('TabbedPane', 'Tree View')
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,11(40118)')
        assert_p(
            'LineTree.FileDisplay_JTbl', 'Content',
            '[[, , , 166, , , 4, 42.56], [, , 68654655, 166, 40118, 60, 1, 5.08], [, , 69624033, 166, 40118, 80, 1, 18.19], [, , 60604100, 166, 40118, 80, 1, 13.30], [, , 68674560, 166, 40118, 170, 1, 5.99], [, , , 20, , , 2, 9.88], [, , 63604808, 20, 40118, 170, 1, 4.87], [, , 69684558, 20, 40118, 280, 1, 19.00], [, , 69684558, 20, 40118, 280, -1, -19.00], [, , 69694158, 20, 40118, 280, 1, 5.01], [, , 62684671, 20, 40118, 685, 1, 69.99], [, , 62684671, 20, 40118, 685, -1, -69.99], [, , , 59, , , 5, 35.91], [, , 61664713, 59, 40118, 335, 1, 17.99], [, , 61664713, 59, 40118, 335, -1, -17.99], [, , 61684613, 59, 40118, 335, 1, 12.99], [, , 68634752, 59, 40118, 410, 1, 8.99], [, , 60694698, 59, 40118, 620, 1, 3.99], [, , 60664659, 59, 40118, 620, 1, 3.99], [, , 60614487, 59, 40118, 878, 1, 5.95]]'
        )
        select('LineTree.FileDisplay_JTbl', 'cell:DATE,11(40118)')
        click('X1')
        ##		select('TabbedPane', 'Table:')
        assert_p(
            'LineList.FileDisplay_JTbl', 'Content',
            '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [68634752, 59, 40118, 410, 1, 8.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [60614487, 59, 40118, 878, 1, 5.95], [68654655, 166, 40118, 60, 1, 5.08], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30], [68674560, 166, 40118, 170, 1, 5.99]]'
        )
    close()
Exemple #41
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() + 'utf8a_Ams_LocDownload_20041228.txt')
		commonBits.setRecordLayout(select, 'utf8_ams Store')
		click(commonBits.fl('Edit') + '1')
		select('Table', 'rows:[2,4,8,11,14],columns:[10 - 35|Loc Name]')
		select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Record View #{Selected Records#}')
)
##		select('Table1', 'rows:[2,4,8,11,14],columns:[10 - 35|Loc Name]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',1(5853)')
		if commonBits.isMissingCol():
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5853, 5853], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, NSW North Sydney Ad Support, NSW North Sydney Ad Support], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, , ], [Loc Addr Ln3, 125, 35, , ], [Loc Postcode, 160, 10, , ], [Loc State, 170, 3, , ]]')
		else:
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5853, 5853], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, NSW North Sydney Ad Support, NSW North Sydney Ad Support], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, , ], [Loc Addr Ln3, 125, 35, , ], [Loc Postcode, 160, 10, , ], [Loc State, 170, 3, , ], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(NSW North Sydney Ad Support)')
		assert_p('Table', 'Text', 'cell:' + commonBits.fl('Data') + ',3(NSW North Sydney Ad Support)')
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(NSW North Sydney Ad Support)')
		click('Right')
		select('Table', 'cell:' + commonBits.fl('Data') + ',4(Bankstown)')
		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:' + commonBits.fl('Data') + ',5(Unit 2, 39-41 Allingham Street)')
		assert_p('Table', 'Text', 'cell:' + commonBits.fl('Data') + ',5(Unit 2, 39-41 Allingham Street)')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Unit 2, 39-41 Allingham Street)')
		click('Right')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Cnr. Urunga Pde & The Kingsway)')
		assert_p('Table', 'Text', 'Cnr. Urunga Pde & The Kingsway', commonBits.fl('Data') + ',5')
		select('Table', 'cell:' + commonBits.fl('Data') + ',4(Westfield Shoppingtown)')
		if commonBits.isMissingCol():
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5037, 5037], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Miranda, Miranda], [Loc Addr Ln1, 45, 40, Westfield Shoppingtown, Westfield Shoppingtown], [Loc Addr Ln2, 85, 40, Cnr. Urunga Pde & The Kingsway, Cnr. Urunga Pde & The Kingsway], [Loc Addr Ln3, 125, 35, Miranda, Miranda], [Loc Postcode, 160, 10, 2228, 2228], [Loc State, 170, 3, NSW, NSW]]')
		else:
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5037, 5037], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Miranda, Miranda], [Loc Addr Ln1, 45, 40, Westfield Shoppingtown, Westfield Shoppingtown], [Loc Addr Ln2, 85, 40, Cnr. Urunga Pde & The Kingsway, Cnr. Urunga Pde & The Kingsway], [Loc Addr Ln3, 125, 35, Miranda, Miranda], [Loc Postcode, 160, 10, 2228, 2228], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',4(Westfield Shoppingtown)')
		click('Right')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Charles Hackett Drive)')
		if commonBits.isMissingCol():
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5060, 5060], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, St Marys, St Marys], [Loc Addr Ln1, 45, 40, St. Mary\'s, St. Mary\'s], [Loc Addr Ln2, 85, 40, Charles Hackett Drive, Charles Hackett Drive], [Loc Addr Ln3, 125, 35, St Mary\'s, St Mary\'s], [Loc Postcode, 160, 10, 2760, 2760], [Loc State, 170, 3, NSW, NSW]]')
		else:
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5060, 5060], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, St Marys, St Marys], [Loc Addr Ln1, 45, 40, St. Mary\'s, St. Mary\'s], [Loc Addr Ln2, 85, 40, Charles Hackett Drive, Charles Hackett Drive], [Loc Addr Ln3, 125, 35, St Mary\'s, St Mary\'s], [Loc Postcode, 160, 10, 2760, 2760], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Charles Hackett Drive)')
		click('Right')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Units 2-3, 14 Aquatic Drive)')
		if commonBits.isMissingCol():
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5078, 5078], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Warringah Mall, Warringah Mall], [Loc Addr Ln1, 45, 40, Frenchs Forest, Frenchs Forest], [Loc Addr Ln2, 85, 40, Units 2-3, 14 Aquatic Drive, Units 2-3, 14 Aquatic Drive], [Loc Addr Ln3, 125, 35, Frenchs Forest, Frenchs Forest], [Loc Postcode, 160, 10, 2086, 2086], [Loc State, 170, 3, NSW, NSW]]')
		else:
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5078, 5078], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Warringah Mall, Warringah Mall], [Loc Addr Ln1, 45, 40, Frenchs Forest, Frenchs Forest], [Loc Addr Ln2, 85, 40, Units 2-3, 14 Aquatic Drive, Units 2-3, 14 Aquatic Drive], [Loc Addr Ln3, 125, 35, Frenchs Forest, Frenchs Forest], [Loc Postcode, 160, 10, 2086, 2086], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Units 2-3, 14 Aquatic Drive)')
		click('LeftM')
		select('Table', 'cell:' + commonBits.fl('Data') + ',1(5853)')
		if commonBits.isMissingCol():
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5853, 5853], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, NSW North Sydney Ad Support, NSW North Sydney Ad Support], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, , ], [Loc Addr Ln3, 125, 35, , ], [Loc Postcode, 160, 10, , ], [Loc State, 170, 3, , ]]')
		else:
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5853, 5853], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, NSW North Sydney Ad Support, NSW North Sydney Ad Support], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, , ], [Loc Addr Ln3, 125, 35, , ], [Loc Postcode, 160, 10, , ], [Loc State, 170, 3, , ], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',1(5853)')
		click('RightM')
		select('Table', 'cell:' + commonBits.fl('Data') + ',4(Frenchs Forest)')
		if commonBits.isMissingCol():
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5078, 5078], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Warringah Mall, Warringah Mall], [Loc Addr Ln1, 45, 40, Frenchs Forest, Frenchs Forest], [Loc Addr Ln2, 85, 40, Units 2-3, 14 Aquatic Drive, Units 2-3, 14 Aquatic Drive], [Loc Addr Ln3, 125, 35, Frenchs Forest, Frenchs Forest], [Loc Postcode, 160, 10, 2086, 2086], [Loc State, 170, 3, NSW, NSW]]')
		else:
			assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5078, 5078], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Warringah Mall, Warringah Mall], [Loc Addr Ln1, 45, 40, Frenchs Forest, Frenchs Forest], [Loc Addr Ln2, 85, 40, Units 2-3, 14 Aquatic Drive, Units 2-3, 14 Aquatic Drive], [Loc Addr Ln3, 125, 35, Frenchs Forest, Frenchs Forest], [Loc Postcode, 160, 10, 2086, 2086], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
Exemple #42
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window('Record Editor'):
        select('FileChooser',
               commonBits.sampleDir() + 'Ams_PODownload_20041231.txt')
        click(commonBits.fl('Edit') + '1')
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
        rightclick('Table', '1 - 2|Record Type,1')
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
        rightclick('Table', '1 - 2|Record Type,1')
        select_menu(commonBits.fl('Edit Record'))
        ##		select('Table1', 'cell:3 - 4|DC Number 1,0(4534)')
        select('Table', '17.0000', commonBits.fl('Data') + ',1')
        select('Table', '0.0102', commonBits.fl('Data') + ',2')
        select('Table', 'cell:' + commonBits.fl('Data') + ',4()')
        assert_p(
            'Table', 'Content',
            '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 17.0000, 000170000], [Pack Cost, 12, 13, 0.0102, 0000000000102], [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]]'
        )
        select('Table', 'cell:' + commonBits.fl('Data') + ',4()')
        click('Right')
        select('Table', '10', commonBits.fl('Data') + ',2')
        select('Table', '9045', commonBits.fl('Data') + ',3')
        select('Table', '2', commonBits.fl('Data') + ',4')
        select('Table', 'cell:' + commonBits.fl('Data') + ',5(5076)')
        click('Right')
        click('Left')
        assert_p(
            'Table', 'Content',
            '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5043, 5043], [Pack Quantity 1, 7, 8, 10, 00000010], [DC Number 2, 15, 4, 9045, 9045], [Pack Quantity 2, 19, 8, 2, 00000002], [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]]'
        )
        click('Right')
        select('Table', '14.0000', commonBits.fl('Data') + ',1')
        select('Table', 'cell:' + commonBits.fl('Data') + ',2(148.3200)')
        assert_p(
            'Table', 'Content',
            '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 14.0000, 000140000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 5614944, 05614944], [pmg dtl tech key, 72, 15, 2075360, 2075360], [Case Pack id, 87, 15, 5614944, 5614944], [Product Name, 101, 50,  MILK 24-006607 SHWL WRAP CARD,  MILK 24-006607 SHWL WRAP CARD]]'
        )
        select('Table', 'cell:' + commonBits.fl('Data') + ',2(148.3200)')
        click('Right')
        select('Table', '11', commonBits.fl('Data') + ',2')
        select('Table', 'cell:' + commonBits.fl('Data') + ',4(1)')
        assert_p(
            'Table', 'Content',
            '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5045, 5045], [Pack Quantity 1, 7, 8, 11, 00000011], [DC Number 2, 15, 4, 5076, 5076], [Pack Quantity 2, 19, 8, 1, 00000001], [DC Number 4, 39, 4, 3331, 3331], [Pack Quantity 4, 43, 8, 49440001, 49440001], [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') + ',4(1)')
        click('Right')
        select('Table', '8.0000', commonBits.fl('Data') + ',1')
        select('Table', 'cell:' + commonBits.fl('Data') + ',4()')
        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, 55615071, 55615071], [pmg dtl tech key, 72, 15, 2075361, 2075361], [Case Pack id, 87, 15, 55615071, 55615071], [Product Name, 101, 50,  M.ROSE 24-006607 SHWL WRAP CARD,  M.ROSE 24-006607 SHWL WRAP CARD]]'
        )
        select('Table', '48.3200', commonBits.fl('Data') + ',2')
        select('Table', 'cell:' + commonBits.fl('Data') + ',4()')
        assert_p(
            'Table', 'Content',
            '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 8.0000, 000080000], [Pack Cost, 12, 13, 48.3200, 0000000483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 55615071, 55615071], [pmg dtl tech key, 72, 15, 2075361, 2075361], [Case Pack id, 87, 15, 55615071, 55615071], [Product Name, 101, 50,  M.ROSE 24-006607 SHWL WRAP CARD,  M.ROSE 24-006607 SHWL WRAP CARD]]'
        )
        select('Table', 'cell:' + commonBits.fl('Data') + ',4()')
        click('Right')
        select('Table', '6', commonBits.fl('Data') + ',2')
        select('Table', '51', commonBits.fl('Data') + ',4')
        select('Table', 'cell:' + commonBits.fl('Data') + ',5(3331)')
        assert_p(
            'Table', 'Content',
            '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5036, 5036], [Pack Quantity 1, 7, 8, 6, 00000006], [DC Number 2, 15, 4, 5043, 5043], [Pack Quantity 2, 19, 8, 51, 00000051], [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') + ',5(3331)')

        #		if commonBits.isVersion80():
        #			select_menu('Edit>>Compare with Disk')
        #		else:
        commonBits.selectOldFilemenu(select_menu, 'Utilities',
                                     'Compare with Disk')
        ##		select('Table1', 'cell:' + commonBits.fl('Data') + ',5(3331)')
        assert_p('Table', 'Enabled', 'true')
        assert_p(
            'Table', 'Content',
            '[[, Old, 2, D1, 7.0000, 0.0002, 2222500000000, , 43314531, 2075359, 45614531,  DONKEY 24-006607 SHWL WRAP CARD, , , , , , , , , , ], [, New, 2, , 17.0000, 0.0102, , , , , , , , , , , , , , , , ], [, Old, 3, S1, 5043, 1, 5045, 1, 5076, 1, 5079, 1, 5151, 1, 5072, 1, , 0, , 0, , 0], [, New, 3, , , 10, 9045, 2, , , , , , , , , , , , , , ], [, Old, 4, D1, 4.0000, 148.3200, 0, , 5614944, 2075360, 5614944,  MILK 24-006607 SHWL WRAP CARD, , , , , , , , , , ], [, New, 4, , 14.0000, , , , , , , , , , , , , , , , , ], [, Old, 5, S1, 5045, 1, 5076, 1, 3331, 49440001, , 0, , 0, , 0, , 0, , 0, , 0], [, New, 5, , , 11, , , , , , , , , , , , , , , , ], [, Old, 6, D1, 48.0000, 148.3200, 0, , 55615071, 2075361, 55615071,  M.ROSE 24-006607 SHWL WRAP CARD, , , , , , , , , , ], [, New, 6, , 8.0000, 48.3200, , , , , , , , , , , , , , , , ], [, Old, 7, S1, 5036, 3, 5043, 5, 3331, 50710003, 5065, 4, 5069, 4, 5076, 4, 5079, 2, 5094, 4, 5128, 3], [, New, 7, , , 6, , 51, , , , , , , , , , , , , , ]]'
        )
        if commonBits.isNimbusLook():
            assert_p('Table', 'Foreground', '[r=35,g=35,b=36]')
        else:
            assert_p('Table', 'Foreground', '[r=51,g=51,b=51]')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        #		select('Table', 'cell:' + commonBits.fl('Data') + ',5(3331)')
        ##		select('Table', 'cell:' + commonBits.fl('Data') + ',5(3331)')
        select_menu(
            commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' +
            commonBits.fl('Record:'))
        select('Table', 'cell:' + commonBits.fl('Data') + ',5(3331)')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
        select_menu(
            commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' +
            commonBits.fl('Table:'))
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
        if commonBits.isVersion81():
            click('Export')
        else:
            click('SaveAs')
        select('FileChooser',
               commonBits.sampleDir() + 'Ams_PODownload_20041231_Compare.txt')
        click(commonBits.fl('Save File'))
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
        select('Table', 'cell:3 - 4|DC Number 1,0(4534)')
    close()
Exemple #43
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window(commonBits.applicationName()):
        select('FileNameTxtFld',
               commonBits.sampleDir() + 'protoStoreSales3.bin')
        click('Edit1')
        ##		select('JTreeTable', '')
        rightclick('JTreeTable', 'Tree,0')
        select_menu('Fully Expand Tree')
        ##		select('JTreeTable', '')
        rightclick('JTreeTable', 'Tree,9')
        select_menu('Edit Record')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1], [price, 4, , -19000, -19000]]'
        )
        ##		select('BaseLineAsColumn$LineAsColTbl', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,3')
        select_menu('Hide Column')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,2')
        select_menu('Hide Column')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,1')
        select_menu('Hide Column')
        assert_p('BaseLineAsColumn$LineAsColTbl', 'Content',
                 '[[keycode, 1, , 69684558, 69684558]]')
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,0')
        select_menu('Show Product Fields>>saleDate')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,1')
        select_menu('Show Product Fields>>quantity')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,2')
        select_menu('Show Product Fields>>price')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1], [price, 4, , -19000, -19000]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,0')
        select_menu('Hide Column')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1], [price, 4, , -19000, -19000]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,0')
        select_menu('Hide Column')
        assert_p('BaseLineAsColumn$LineAsColTbl', 'Content',
                 '[[quantity, 3, , -1, -1], [price, 4, , -19000, -19000]]')
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,0')
        select_menu('Hide Column')
        assert_p('BaseLineAsColumn$LineAsColTbl', 'Content',
                 '[[price, 4, , -19000, -19000]]')
        ##		select('Table', '')

        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,0')

        select_menu('Show Product Fields>>keycode')

        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [price, 4, , -19000, -19000]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,1')
        select_menu('Show Product Fields>>saleDate')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [price, 4, , -19000, -19000]]'
        )
        ##		select('Table', '')
        rightclick('BaseLineAsColumn$LineAsColTbl', 'Data,1')
        select_menu('Show Product Fields>>quantity')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 69684558, 69684558], [saleDate, 2, , 40118, 40118], [quantity, 3, , -1, -1], [price, 4, , -19000, -19000]]'
        )
        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #44
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window(commonBits.applicationName()):
        select('FileNameTxtFld', commonBits.sampleDir() + 'protoSales.bin')
        click('Edit1')
        select_menu('View>>Sorted Field Tree')
        ##select('List', 'sale')
        select('Table', 'store', 'Field,0')
        select('Table', 'department', 'Field,1')
        select('Table', 'cell:Field,1(department)')
        click('Build Tree')
        select('JTreeTable', 'cell:keycode,0(null)')
        rightclick('JTreeTable', 'keycode,0')
        select_menu('Copy Record#{s#}')
        select('JTreeTable', 'cell:keycode,2(null)')
        rightclick('JTreeTable', 'keycode,2')
        select_menu('Paste Record#{s#} Prior')
        select('JTreeTable', 'cell:keycode,2(null)')
        assert_p('JTreeTable', 'RowCount', '5')
        select('JTreeTable', 'cell:keycode,2(null)')
        rightclick('JTreeTable', 'keycode,2')
        select_menu('Expand Tree')
        select('JTreeTable', 'cell:Tree,5(null)')
        assert_p('JTreeTable', 'RowCount', '10')
        select('JTreeTable', 'cell:Tree,3(null)')
        rightclick('JTreeTable', 'Tree,3')
        select_menu('Expand Tree')
        select('JTreeTable', 'cell:keycode,4(63604808)')
        assert_p('JTreeTable', 'Text', '63604808', 'keycode,4')
        select('JTreeTable', 'cell:store,4(20)')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 20, 170, 40118, 1, 4870], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]'
        )
        select('JTreeTable', 'cell:Tree,8(null)')
        rightclick('JTreeTable', 'Tree,8')
        select_menu('Expand Tree')
        select('JTreeTable', 'cell:keycode,10(66624458)')
        assert_p('JTreeTable', 'Text', '66624458', 'keycode,10')
        select('JTreeTable', 'cell:keycode,11(63674861)')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 20, 170, 40118, 1, 4870], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 64634429, 20, 957, 40118, 1, 3990], [, , 66624458, 20, 957, 40118, 1, 890], [, , 63674861, 20, 957, 40118, 10, 2700], [, , , , , , , ], [, , , , , , , ]]'
        )
        select('JTreeTable', 'cell:Tree,6(null)')
        rightclick('JTreeTable', 'Tree,6')
        select_menu('Expand Tree')
        select('JTreeTable', 'cell:keycode,7(62684671)')
        assert_p('JTreeTable', 'Text', '62684671', 'keycode,7')
        select('JTreeTable', 'cell:keycode,8(62684671)')
        rightclick('JTreeTable', 'keycode,8')
        select('JTreeTable', 'cell:keycode,8(62684671)')
        assert_p('JTreeTable', 'RowCount', '16')
        select('JTreeTable', 'cell:saleDate,7(40118)')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 63604808, 20, 170, 40118, 1, 4870], [, , , , , , , ], [, , , , , , , ], [, , 62684671, 20, 685, 40118, 1, 69990], [, , 62684671, 20, 685, 40118, -1, -69990], [, , , , , , , ], [, , , , , , , ], [, , 64634429, 20, 957, 40118, 1, 3990], [, , 66624458, 20, 957, 40118, 1, 890], [, , 63674861, 20, 957, 40118, 10, 2700], [, , , , , , , ], [, , , , , , , ]]'
        )
        select('JTreeTable', 'cell:Tree,1(null)')
        rightclick('JTreeTable', 'Tree,1')
        select_menu('Expand Tree')
        select('JTreeTable', 'cell:Tree,6(null)')
        assert_p('JTreeTable', 'RowCount', '22')
        select('JTreeTable', 'rows:[7,8,9,10,11,12,13,14,15],columns:[Tree]')
        select_menu('View>>Table View #{Selected Records#}')
        ##		select('JTreeTable', 'rows:[7,8,9,10,11,12,13,14,15],columns:[Tree]')
        select('LinesTbl', 'cell:1|keycode,4(63604808)')
        assert_p(
            'LinesTbl', 'Content',
            '[[64614401, 59, 957, 40118, 1, 1990], [64614401, 59, 957, 40118, 1, 1990], [62684217, 59, 957, 40118, 1, 9990], [64624770, 59, 957, 40118, 1, 2590], [63604808, 20, 170, 40118, 1, 4870], [69684558, 20, 280, 40118, 1, 19000], [69684558, 20, 280, 40118, -1, -19000], [69684558, 20, 280, 40118, 1, 5010], [69694158, 20, 280, 40118, 1, 19000], [69694158, 20, 280, 40118, -1, -19000], [69694158, 20, 280, 40118, 1, 5010], [62684671, 20, 685, 40118, 1, 69990], [62684671, 20, 685, 40118, -1, -69990], [65674532, 20, 929, 40118, 1, 3590]]'
        )
        select('LinesTbl', 'cell:1|keycode,7(69684558)')
        assert_p('LinesTbl', 'Text', '69684558', '1|keycode,7')
        select('LinesTbl', 'cell:1|keycode,1(64614401)')
        assert_p('LinesTbl', 'Text', '62684217', '1|keycode,2')
        select('LinesTbl', 'cell:1|keycode,1(64614401)')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        if window('Save Changes to file: ' + commonBits.sampleDir() +
                  'protoSales.bin'):
            click('No')
        close()
    close()
Exemple #45
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window(commonBits.applicationName()):
		select('FileNameTxtFld', commonBits.sampleDir() +  'protoStoreSales3SDim.bin')
		click('Edit1')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,0')
		select_menu('Expand Tree')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,1')
		select_menu('Expand Tree')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,3')
		select_menu('Fully Expand Tree')
		select('LayoutCombo', 'Product')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,0(true)')
		select('Table', 'cell:Show,1(true)')
		select('Table', 'cell:Show,2(true)')
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, , ], [, , ], [, , ], [, , ], [, , ], [, , 19000], [, , -19000], [, , 5010], [, , 19000], [, , -19000], [, , 5010], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ]]')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,0(false)')
		select('Table', 'cell:Show,1(false)')
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , 69684558, 40118, 19000], [, , 69684558, 40118, -19000], [, , 69684558, 40118, 5010], [, , 69694158, 40118, 19000], [, , 69694158, 40118, -19000], [, , 69694158, 40118, 5010], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ]]')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'keycode,7')
		select_menu('Show Column>>quantity')
		assert_p('JTreeTable', 'Content', '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 69684558, 40118, 1, 19000], [, , 69684558, 40118, -1, -19000], [, , 69684558, 40118, 1, 5010], [, , 69694158, 40118, 1, 19000], [, , 69694158, 40118, -1, -19000], [, , 69694158, 40118, 1, 5010], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,0(true)')
		select('Table', 'cell:Show,1(true)')
		select('Table', 'cell:Show,2(true)')
		click('Go')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,6')
		assert_p('JTreeTable', 'Content', '[[, , ], [, , ], [, , ], [, , ], [, , ], [, , 19000], [, , -19000], [, , 5010], [, , 19000], [, , -19000], [, , 5010], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ], [, , ]]')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'Tree,6')
		select_menu('Show Column>>quantity')
		assert_p('JTreeTable', 'Content', '[[, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , 1, 19000], [, , -1, -19000], [, , 1, 5010], [, , 1, 19000], [, , -1, -19000], [, , 1, 5010], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ]]')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'quantity,7')
		select_menu('Show Column>>saleDate')
		assert_p('JTreeTable', 'Content', '[[, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , 40118, 1, 19000], [, , 40118, -1, -19000], [, , 40118, 1, 5010], [, , 40118, 1, 19000], [, , 40118, -1, -19000], [, , 40118, 1, 5010], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ]]')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'quantity,7')
		select_menu('Show Column>>keycode')
		assert_p('JTreeTable', 'Content', '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 69684558, 40118, 1, 19000], [, , 69684558, 40118, -1, -19000], [, , 69684558, 40118, 1, 5010], [, , 69694158, 40118, 1, 19000], [, , 69694158, 40118, -1, -19000], [, , 69694158, 40118, 1, 5010], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,0(true)')
		select('Table', 'cell:Show,1(true)')
		select('Table', 'cell:Show,2(true)')
		select('Table', 'cell:Show,3(true)')
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ], [, ]]')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,1(false)')
		select('Table', 'cell:Show,2(false)')
		select('Table', 'cell:Show,3(false)')
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , 40118, 1, 19000], [, , 40118, -1, -19000], [, , 40118, 1, 5010], [, , 40118, 1, 19000], [, , 40118, -1, -19000], [, , 40118, 1, 5010], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ]]')
##		select('JTreeTable', '')
		rightclick('JTreeTable', 'saleDate,8')
		select_menu('Show Column>>keycode')
		assert_p('JTreeTable', 'Content', '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 69684558, 40118, 1, 19000], [, , 69684558, 40118, -1, -19000], [, , 69684558, 40118, 1, 5010], [, , 69694158, 40118, 1, 19000], [, , 69694158, 40118, -1, -19000], [, , 69694158, 40118, 1, 5010], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]')
		select_menu('Edit>>Show / Hide Fields')
##		select('Table', 'false', 'Show,0')
		select('Table', 'cell:Show,0(false)')
##		select('Table', 'false', 'Show,1')
		select('Table', 'cell:Show,1(false)')
		select('Table', 'cell:Show,2(true)')
		select('Table', 'cell:Show,3(true)')

		click('Go')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,2(false)')
		select('Table', 'cell:Show,3(false)')
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , 1, 19000], [, , -1, -19000], [, , 1, 5010], [, , 1, 19000], [, , -1, -19000], [, , 1, 5010], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ], [, , , ]]')
		select_menu('Edit>>Show / Hide Fields')
		select('Table', 'cell:Show,1(false)')
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , 40118, 1, 19000], [, , 40118, -1, -19000], [, , 40118, 1, 5010], [, , 40118, 1, 19000], [, , 40118, -1, -19000], [, , 40118, 1, 5010], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ], [, , , , ]]')
		select_menu('Edit>>Show / Hide Fields')
		assert_p('Table', 'Content', '[[keycode, false], [saleDate, true], [quantity, true], [price, true]]')
##		select('Table', 'true', 'Show,0')
		select('Table', 'cell:Show,0(true)')

##		zzzzz
		click('Go')
		assert_p('JTreeTable', 'Content', '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 69684558, 40118, 1, 19000], [, , 69684558, 40118, -1, -19000], [, , 69684558, 40118, 1, 5010], [, , 69694158, 40118, 1, 19000], [, , 69694158, 40118, -1, -19000], [, , 69694158, 40118, 1, 5010], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]')
##		assert_p('JTreeTable', 'Content', '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 69684558, 40118, 1, 19000], [, , 69684558, 40118, -1, -19000], [, , 69684558, 40118, 1, 5010], [, , 69694158, 40118, 1, 19000], [, , 69694158, 40118, -1, -19000], [, , 69694158, 40118, 1, 5010], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]')
	close()
Exemple #46
0
def test():
    from Modules import commonBits
    import os
    java_recorded_version = '1.6.0_17'

    if window(commonBits.applicationName()):
        select('FileNameTxtFld', commonBits.sampleDir() + 'zXcStore.bin')
        select('FileNameTxtFld1',
               commonBits.stdCopybookDir() + 'sales.protocomp')
        select('ComboBox', 'Delimited Messages')
        select('ComboBox1', 'Compiled Proto')

        click('Edit1')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,2(0)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 0, 0], [store, 2, , 0, 0], [department, 3, , 0, 0], [saleDate, 4, , 0, 0], [quantity, 5, , 0, 0], [price, 6, , 0, 0]]'
        )
        ##		assert_p('Table', 'Content', '[[keycode, 1, , , ], [store, 2, , , ], [department, 3, , , ], [saleDate, 4, , , ], [quantity, 5, , , ], [price, 6, , , ]]')
        ##[[keycode, 1, , 0, 0], [store, 2, , 0, 0], [department, 3, , 0, 0], [saleDate, 4, , 0, 0], [quantity, 5, , 0, 0], [price, 6, , 0, 0]]')
        select('BaseLineAsColumn$LineAsColTbl', '1111', 'Data,0')
        select('BaseLineAsColumn$LineAsColTbl', '222', 'Data,1')
        select('BaseLineAsColumn$LineAsColTbl', '3333', 'Data,2')
        select('BaseLineAsColumn$LineAsColTbl', '445566', 'Data,3')
        select('BaseLineAsColumn$LineAsColTbl', '1', 'Data,4')
        select('BaseLineAsColumn$LineAsColTbl', '11000', 'Data,5')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,4(1)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 1111, 1111], [store, 2, , 222, 222], [department, 3, , 3333, 3333], [saleDate, 4, , 445566, 445566], [quantity, 5, , 1, 1], [price, 6, , 11000, 11000]]'
        )
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        assert_p('LinesTbl', 'Content',
                 '[[1111, 222, 3333, 445566, 1, 11000]]')
        click('New')
        select('BaseLineAsColumn$LineAsColTbl', '1212', 'Data,0')
        select('BaseLineAsColumn$LineAsColTbl', '12', 'Data,1')
        select('BaseLineAsColumn$LineAsColTbl', '12', 'Data,2')
        select('BaseLineAsColumn$LineAsColTbl', '121212', 'Data,3')
        select('BaseLineAsColumn$LineAsColTbl', '1', 'Data,4')
        select('BaseLineAsColumn$LineAsColTbl', '12000', 'Data,5')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,4(1)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 1212, 1212], [store, 2, , 12, 12], [department, 3, , 12, 12], [saleDate, 4, , 121212, 121212], [quantity, 5, , 1, 1], [price, 6, , 12000, 12000]]'
        )
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select_menu('Window>>zXcStore.bin>>Table:')
        assert_p(
            'LinesTbl', 'Content',
            '[[1111, 222, 3333, 445566, 1, 11000], [1212, 12, 12, 121212, 1, 12000]]'
        )
        click('Save1')

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('Edit1')
        assert_p(
            'LinesTbl', 'Content',
            '[[1111, 222, 3333, 445566, 1, 11000], [1212, 12, 12, 121212, 1, 12000]]'
        )
        ##		click('Delete2')

        select('LinesTbl', 'rows:[0,1],columns:[3|department,4|saleDate]')
        click('Delete2')
        click('Save1')

        click('BasicInternalFrameTitlePane$NoFocusButton2')

        os.remove(commonBits.sampleDir() + 'zXcStore.bin')
    close()
Exemple #47
0
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')
        select_menu(
            commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields'))
        select('Table', 'cell:' + commonBits.fl('Show') + ',4(true)')
        select('Table', 'cell:' + commonBits.fl('Show') + ',5(true)')
        select('Table', 'cell:' + commonBits.fl('Show') + ',6(true)')
        select('Table', 'cell:' + commonBits.fl('Show') + ',7(true)')
        click(commonBits.fl('Go'))
        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,7')
        select_menu(commonBits.fl('Show Column') + '>>position')
        ##		assert_p('JTreeTable', 'Content', '[[, , , , , AMSLOCATIONTEST1.cbl, , , , ], [, , ******************************, , , , , , , ], [, , * Location Download, , , , , , , ], [, , ******************************, , , , , , , ], [, , , , 1, 173, , , , ], [, , , , 1, 3, x(3), , True, ], [, , , , 4, 41, , , , ], [, , , , 4, 4, 9(4), true, True, ], [, , , , 8, 2, XX, , True, ], [, , , , 10, 35, X(35), , True, ], [, , , , 45, 128, , , , ], [, , , , 173, 1, X, , True, ]]')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , AMSLOCATIONTEST1.cbl, , , , , ], [, , ******************************, , , , , , , ], [, , * Location Download, , , , , , , ], [, , ******************************, , , , , , , ], [, , , , 173, 1, , , , ], [, , , , 3, 1, x(3), , True, ], [, , , , 41, 4, , , , ], [, , , , 4, 4, 9(4), true, True, ], [, , , , 2, 8, XX, , True, ], [, , , , 35, 10, X(35), , True, ], [, , , , 128, 45, , , , ], [, , , , 1, 173, X, , True, ]]'
        )

        ##		select('JTreeTable', '')
        rightclick('JTreeTable', 'display-length,7')
        select_menu(commonBits.fl('Show Column') + '>>name')
        ###		assert_p('JTreeTable', 'Content', '[[, , , , , , AMSLOCATIONTEST1.cbl, , , , ], [, , ******************************, , , , , , , , ], [, , * 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, ]]')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , ], [, , ******************************, , , , , , , , ], [, , * Location Download, , , , , , , , ], [, , ******************************, , , , , , , , ], [, , , , 173, Ams-Vendor, 1, , , , ], [, , , , 3, Brand, 1, x(3), , True, ], [, , , , 41, Location-Details, 4, , , , ], [, , , , 4, Location-Number, 4, 9(4), true, True, ], [, , , , 2, Location-Type, 8, XX, , True, ], [, , , , 35, Location-Name, 10, X(35), , True, ], [, , , , 128, Full-Address, 45, , , , ], [, , , , 1, Location-Active, 173, X, , True, ]]'
        )

        #		select('JTreeTable', 'cell: ,6(null)')
        #		click('MetalInternalFrameTitlePane', 395, 7)
        #		click('MetalInternalFrameTitlePane', 388, 8)
        #commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        #		select('JTreeTable', 'cell: ,6(null)')
        #		select('JTreeTable', 'cell: ,6(null)')
        rightclick('JTreeTable', 'name,6')
        select_menu(commonBits.fl('Show Column') + '>>level')
        select('JTreeTable', 'cell: ,6(null)')
        ###		assert_p('JTreeTable', 'Content', '[[, , , , , , , AMSLOCATIONTEST1.cbl, , , , ], [, , ******************************, , , , , , , , , ], [, , * 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, ]]')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , AMSLOCATIONTEST1.cbl, , , , , , , ], [, , ******************************, , , , , , , , , ], [, , * Location Download, , , , , , , , , ], [, , ******************************, , , , , , , , , ], [, , , , 173, 01, Ams-Vendor, 1, , , , ], [, , , , 3, 03, Brand, 1, x(3), , True, ], [, , , , 41, 03, Location-Details, 4, , , , ], [, , , , 4, 05, Location-Number, 4, 9(4), true, True, ], [, , , , 2, 05, Location-Type, 8, XX, , True, ], [, , , , 35, 05, Location-Name, 10, X(35), , True, ], [, , , , 128, 03, Full-Address, 45, , , , ], [, , , , 1, 03, Location-Active, 173, X, , True, ]]'
        )

        select('JTreeTable', 'cell: ,6(null)')
        rightclick('JTreeTable', 'name,7')
        select_menu(commonBits.fl('Show Column') + '>>storage-length')
        select('JTreeTable', 'cell: ,6(null)')
        ##		assert_p('JTreeTable', 'Content', '[[, , , , , , , , AMSLOCATIONTEST1.cbl, , , , ], [, , ******************************, , , , , , , , , , ], [, , * Location Download, , , , , , , , , , ], [, , ******************************, , , , , , , , , , ], [, , , , 01, Ams-Vendor, 1, 173, 173, , , , ], [, , , , 03, Brand, 1, 3, 3, x(3), , True, ], [, , , , 03, Location-Details, 4, 41, 41, , , , ], [, , , , 05, Location-Number, 4, 4, 4, 9(4), true, True, ], [, , , , 05, Location-Type, 8, 2, 2, XX, , True, ], [, , , , 05, Location-Name, 10, 35, 35, X(35), , True, ], [, , , , 03, Full-Address, 45, 128, 128, , , , ], [, , , , 03, Location-Active, 173, 1, 1, X, , True, ]]')
        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: ,6(null)')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #48
0
def test():

    set_java_recorded_version("1.6.0_22")
    if frame(' - Open File:0'):
        select('File', commonBits.sampleDir() + 'DTAR020_tst1.bin')
        select('Record Layout', 'DTAR020')
        click('Edit')
    close()

    if window('Record Editor'):
        select_menu('File>>Export as CSV file')

        if frame('Export - DTAR020_tst1.bin:0'):
            select('Delimiter', ';')
            select('names on first line', 'true')
            select('Edit Output File', 'true')
            select('Keep screen open', 'true')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.csv:0'):
            select('JTable_22', 'rows:[6],columns:[2|STORE-NO]')
            assert_content('JTable_22',
                           [['63604808', '20', '40118', '170', '1', '4.87'],
                            ['69684558', '20', '40118', '280', '1', '19.00'],
                            ['69684558', '20', '40118', '280', '-1', '-19.00'],
                            ['69694158', '20', '40118', '280', '1', '5.01'],
                            ['62684671', '20', '40118', '685', '1', '69.99'],
                            ['62684671', '20', '40118', '685', '-1', '-69.99'],
                            ['61664713', '59', '40118', '335', '1', '17.99'],
                            ['61664713', '59', '40118', '335', '-1', '-17.99'],
                            ['61684613', '59', '40118', '335', '1', '12.99'],
                            ['68634752', '59', '40118', '410', '1', '8.99'],
                            ['60694698', '59', '40118', '620', '1', '3.99'],
                            ['60664659', '59', '40118', '620', '1', '3.99'],
                            ['60614487', '59', '40118', '878', '1', '5.95'],
                            ['68654655', '166', '40118', '60', '1', '5.08'],
                            ['69624033', '166', '40118', '80', '1', '18.19'],
                            ['60604100', '166', '40118', '80', '1', '13.30'],
                            ['68674560', '166', '40118', '170', '1', '5.99']])
            select('JTable_22', 'rows:[6],columns:[2|STORE-NO]')
            select('JTable_22', 'rows:[6],columns:[2|STORE-NO]')
            select('Layouts', 'Full Line')
            select('JTable_22', 'rows:[5],columns:[Full Line]')
            assert_content('JTable_22', [['63604808;20;40118;170;1;4.87'],
                                         ['69684558;20;40118;280;1;19.00'],
                                         ['69684558;20;40118;280;-1;-19.00'],
                                         ['69694158;20;40118;280;1;5.01'],
                                         ['62684671;20;40118;685;1;69.99'],
                                         ['62684671;20;40118;685;-1;-69.99'],
                                         ['61664713;59;40118;335;1;17.99'],
                                         ['61664713;59;40118;335;-1;-17.99'],
                                         ['61684613;59;40118;335;1;12.99'],
                                         ['68634752;59;40118;410;1;8.99'],
                                         ['60694698;59;40118;620;1;3.99'],
                                         ['60664659;59;40118;620;1;3.99'],
                                         ['60614487;59;40118;878;1;5.95'],
                                         ['68654655;166;40118;60;1;5.08'],
                                         ['69624033;166;40118;80;1;18.19'],
                                         ['60604100;166;40118;80;1;13.30'],
                                         ['68674560;166;40118;170;1;5.99']])
            select('JTable_22', 'rows:[5],columns:[Full Line]')
            click('Close')
##            select('JTable_22', '', '{5, Full Line}')
##            select('JTable_22', 'rows:[5],columns:[Full Line]')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('JTable_30', 'false', '{1, Include}')
            select('JTable_30', 'false', '{4, Include}')
            ##            select('JTable_31', 'false', '{1, Include}')
            ##            select('JTable_31', 'false', '{4, Include}')
            #            select('JTable_33', 'rows:[1],columns:[Include]')
            #            select('JTable_33', 'rows:[4],columns:[Include]')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.csv:0'):
            select('JTable_22', 'rows:[8],columns:[2|DATE]')
            assert_content('JTable_22',
                           [['63604808', '40118', '170', '4.87'],
                            ['69684558', '40118', '280', '19.00'],
                            ['69684558', '40118', '280', '-19.00'],
                            ['69694158', '40118', '280', '5.01'],
                            ['62684671', '40118', '685', '69.99'],
                            ['62684671', '40118', '685', '-69.99'],
                            ['61664713', '40118', '335', '17.99'],
                            ['61664713', '40118', '335', '-17.99'],
                            ['61684613', '40118', '335', '12.99'],
                            ['68634752', '40118', '410', '8.99'],
                            ['60694698', '40118', '620', '3.99'],
                            ['60664659', '40118', '620', '3.99'],
                            ['60614487', '40118', '878', '5.95'],
                            ['68654655', '40118', '60', '5.08'],
                            ['69624033', '40118', '80', '18.19'],
                            ['60604100', '40118', '80', '13.30'],
                            ['68674560', '40118', '170', '5.99']])
            select('JTable_22', 'rows:[8],columns:[2|DATE]')
            select('JTable_22', 'rows:[8],columns:[2|DATE]')
            select('Layouts', 'Full Line')
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            assert_content(
                'JTable_22',
                [['63604808;40118;170;4.87'], ['69684558;40118;280;19.00'],
                 ['69684558;40118;280;-19.00'], ['69694158;40118;280;5.01'],
                 ['62684671;40118;685;69.99'], ['62684671;40118;685;-69.99'],
                 ['61664713;40118;335;17.99'], ['61664713;40118;335;-17.99'],
                 ['61684613;40118;335;12.99'], ['68634752;40118;410;8.99'],
                 ['60694698;40118;620;3.99'], ['60664659;40118;620;3.99'],
                 ['60614487;40118;878;5.95'], ['68654655;40118;60;5.08'],
                 ['69624033;40118;80;18.19'], ['60604100;40118;80;13.30'],
                 ['68674560;40118;170;5.99']])
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            click('Close')
##            select('JTable_22', '', '{6, Full Line}')
##            select('JTable_22', 'rows:[6],columns:[Full Line]')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('names on first line', 'false')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.csv:0'):
            select('JTable_22', 'rows:[5],columns:[2|DATE]')
            assert_content('JTable_22',
                           [['63604808', '40118', '170', '4.87'],
                            ['69684558', '40118', '280', '19.00'],
                            ['69684558', '40118', '280', '-19.00'],
                            ['69694158', '40118', '280', '5.01'],
                            ['62684671', '40118', '685', '69.99'],
                            ['62684671', '40118', '685', '-69.99'],
                            ['61664713', '40118', '335', '17.99'],
                            ['61664713', '40118', '335', '-17.99'],
                            ['61684613', '40118', '335', '12.99'],
                            ['68634752', '40118', '410', '8.99'],
                            ['60694698', '40118', '620', '3.99'],
                            ['60664659', '40118', '620', '3.99'],
                            ['60614487', '40118', '878', '5.95'],
                            ['68654655', '40118', '60', '5.08'],
                            ['69624033', '40118', '80', '18.19'],
                            ['60604100', '40118', '80', '13.30'],
                            ['68674560', '40118', '170', '5.99']])
            select('JTable_22', 'rows:[5],columns:[2|DATE]')
            click('Close')
##            select('JTable_22', '', '{5, 2|DATE}')
##            select('JTable_22', 'rows:[5],columns:[2|DATE]')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('JTable_30', 'true', '{1, Include}')
            select('JTable_30', 'true', '{4, Include}')
            ##            select('JTable_31', 'true', '{1, Include}')
            ##            select('JTable_31', 'true', '{4, Include}')
            #           select('JTable_33', 'rows:[1],columns:[Include]')
            #           select('JTable_33', 'rows:[4],columns:[Include]')
            select('Delimiter', '|')
            select('Add Quote to all Text Fields', 'true')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.csv:0'):
            select('JTable_22', 'rows:[6],columns:[3|DATE]')
            assert_content('JTable_22',
                           [['63604808', '20', '40118', '170', '1', '4.87'],
                            ['69684558', '20', '40118', '280', '1', '19.00'],
                            ['69684558', '20', '40118', '280', '-1', '-19.00'],
                            ['69694158', '20', '40118', '280', '1', '5.01'],
                            ['62684671', '20', '40118', '685', '1', '69.99'],
                            ['62684671', '20', '40118', '685', '-1', '-69.99'],
                            ['61664713', '59', '40118', '335', '1', '17.99'],
                            ['61664713', '59', '40118', '335', '-1', '-17.99'],
                            ['61684613', '59', '40118', '335', '1', '12.99'],
                            ['68634752', '59', '40118', '410', '1', '8.99'],
                            ['60694698', '59', '40118', '620', '1', '3.99'],
                            ['60664659', '59', '40118', '620', '1', '3.99'],
                            ['60614487', '59', '40118', '878', '1', '5.95'],
                            ['68654655', '166', '40118', '60', '1', '5.08'],
                            ['69624033', '166', '40118', '80', '1', '18.19'],
                            ['60604100', '166', '40118', '80', '1', '13.30'],
                            ['68674560', '166', '40118', '170', '1', '5.99']])
            select('JTable_22', 'rows:[6],columns:[3|DATE]')
            select('JTable_22', 'rows:[6],columns:[3|DATE]')
            select('Layouts', 'Full Line')
            select('JTable_22', 'rows:[7],columns:[Full Line]')
            assert_content('JTable_22', [['63604808|20|40118|170|1|4.87'],
                                         ['69684558|20|40118|280|1|19.00'],
                                         ['69684558|20|40118|280|-1|-19.00'],
                                         ['69694158|20|40118|280|1|5.01'],
                                         ['62684671|20|40118|685|1|69.99'],
                                         ['62684671|20|40118|685|-1|-69.99'],
                                         ['61664713|59|40118|335|1|17.99'],
                                         ['61664713|59|40118|335|-1|-17.99'],
                                         ['61684613|59|40118|335|1|12.99'],
                                         ['68634752|59|40118|410|1|8.99'],
                                         ['60694698|59|40118|620|1|3.99'],
                                         ['60664659|59|40118|620|1|3.99'],
                                         ['60614487|59|40118|878|1|5.95'],
                                         ['68654655|166|40118|60|1|5.08'],
                                         ['69624033|166|40118|80|1|18.19'],
                                         ['60604100|166|40118|80|1|13.30'],
                                         ['68674560|166|40118|170|1|5.99']])
            select('JTable_22', 'rows:[7],columns:[Full Line]')
            click('Close')
##            select('JTable_22', '', '{7, Full Line}')
##            select('JTable_22', 'rows:[7],columns:[Full Line]')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('Add Quote to all Text Fields', 'false')
            select('Delimiter', '~')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.csv:0'):
            select('JTable_22', 'rows:[6],columns:[3|DATE]')
            assert_content('JTable_22',
                           [['63604808', '20', '40118', '170', '1', '4.87'],
                            ['69684558', '20', '40118', '280', '1', '19.00'],
                            ['69684558', '20', '40118', '280', '-1', '-19.00'],
                            ['69694158', '20', '40118', '280', '1', '5.01'],
                            ['62684671', '20', '40118', '685', '1', '69.99'],
                            ['62684671', '20', '40118', '685', '-1', '-69.99'],
                            ['61664713', '59', '40118', '335', '1', '17.99'],
                            ['61664713', '59', '40118', '335', '-1', '-17.99'],
                            ['61684613', '59', '40118', '335', '1', '12.99'],
                            ['68634752', '59', '40118', '410', '1', '8.99'],
                            ['60694698', '59', '40118', '620', '1', '3.99'],
                            ['60664659', '59', '40118', '620', '1', '3.99'],
                            ['60614487', '59', '40118', '878', '1', '5.95'],
                            ['68654655', '166', '40118', '60', '1', '5.08'],
                            ['69624033', '166', '40118', '80', '1', '18.19'],
                            ['60604100', '166', '40118', '80', '1', '13.30'],
                            ['68674560', '166', '40118', '170', '1', '5.99']])
            select('JTable_22', 'rows:[6],columns:[3|DATE]')
            select('JTable_22', 'rows:[6],columns:[3|DATE]')
            select('Layouts', 'Full Line')
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            ##            assert_p('JViewport_21', 'Enabled', 'true')
            select('JTable_22', 'rows:[5],columns:[Full Line]')
            select('JTable_22', 'rows:[5],columns:[Full Line]')
            assert_content('JTable_22', [['63604808~20~40118~170~1~4.87'],
                                         ['69684558~20~40118~280~1~19.00'],
                                         ['69684558~20~40118~280~-1~-19.00'],
                                         ['69694158~20~40118~280~1~5.01'],
                                         ['62684671~20~40118~685~1~69.99'],
                                         ['62684671~20~40118~685~-1~-69.99'],
                                         ['61664713~59~40118~335~1~17.99'],
                                         ['61664713~59~40118~335~-1~-17.99'],
                                         ['61684613~59~40118~335~1~12.99'],
                                         ['68634752~59~40118~410~1~8.99'],
                                         ['60694698~59~40118~620~1~3.99'],
                                         ['60664659~59~40118~620~1~3.99'],
                                         ['60614487~59~40118~878~1~5.95'],
                                         ['68654655~166~40118~60~1~5.08'],
                                         ['69624033~166~40118~80~1~18.19'],
                                         ['60604100~166~40118~80~1~13.30'],
                                         ['68674560~166~40118~170~1~5.99']])
            select('JTable_22', 'rows:[5],columns:[Full Line]')
            click('Close')
##            select('JTable_22', '', '{5, Full Line}')
##            select('JTable_22', 'rows:[5],columns:[Full Line]')
        close()

##        window_closed('Record Editor')
    close()

    pass
Exemple #49
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window('Record Editor'):
        select('FileChooser', commonBits.sampleDir() + 'Text_Test.txt')
        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', '9')
            assert_p('BmKeyedComboBox', 'Text', 'Text IO (byte Based)')
            commonBits.doSleep()

            click('Go')
            commonBits.doSleep()
            commonBits.doSleep()
            commonBits.doSleep()
        close()

        commonBits.doSleep()

        commonBits.doSleep()

        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()
Exemple #50
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window(commonBits.applicationName()):
		select('FileNameTxtFld', commonBits.sampleDir() + 'protoSales.bin')
		click('Edit1')
		select_menu('View>>Sorted Field Tree')
		##select('List', 'sale')
		select('Table', 'store', 'Field,0')
		select('Table', 'department', 'Field,1')
		select('Table', 'cell:Field,1(department)')
		click('Build Tree')
		#select('JTreeTable', '')
		rightclick('JTreeTable', 'keycode,1')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Tree,4(null)')
		assert_p('JTreeTable', 'RowCount', '10')
		select('JTreeTable', 'cell:Tree,3(null)')
		select_menu('View>>Table View #{Selected Records#}')
##		select('JTreeTable', 'cell:Tree,3(null)')
		select('LinesTbl', 'cell:2|store,0(59)')
		assert_p('LinesTbl', 'Content', '[[68634752, 59, 410, 40118, 1, 8990]]')
		select('LinesTbl', 'cell:2|store,0(59)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('JTreeTable', 'rows:[4,6],columns:[Tree]')
		select_menu('View>>Table View #{Selected Records#}')
		select('JTreeTable', 'rows:[4,6],columns:[Tree]')
		select('LinesTbl', 'cell:2|store,1(59)')
		select('LinesTbl', 'cell:4|saleDate,0(40118)')
		assert_p('LinesTbl', 'Content', '[[60694698, 59, 620, 40118, 1, 3990], [60664659, 59, 620, 40118, 1, 3990], [67674686, 59, 929, 40118, 1, 3990]]')

		select('LinesTbl', 'cell:4|saleDate,0(40118)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('JTreeTable', 'rows:[4,6],columns:[Tree]')
		rightclick('JTreeTable', 'keycode,3')
		select_menu('Expand Tree')
		#select('JTreeTable', '')
		rightclick('JTreeTable', 'keycode,6')
		select('JTreeTable', 'cell:keycode,4(68634752)')
		select('JTreeTable', 'cell:keycode,4(68634752)')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 68634752, 59, 410, 40118, 1, 8990], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ]]')
		select('JTreeTable', 'cell:keycode,6(null)')
		rightclick('JTreeTable', 'keycode,6')
		select_menu('Expand Tree')
		#select('JTreeTable', '')
		rightclick('JTreeTable', 'keycode,10')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:keycode,12(64614401)')
		assert_p('JTreeTable', 'Content', '[[, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , , , , , , ], [, , 68634752, 59, 410, 40118, 1, 8990], [, , , , , , , ], [, , , , , , , ], [, , 60614487, 59, 878, 40118, 1, 5950], [, , 63644339, 59, 878, 40118, 1, 12650], [, , , , , , , ], [, , , , , , , ], [, , 64614401, 59, 957, 40118, 1, 1990], [, , 64614401, 59, 957, 40118, 1, 1990], [, , 62684217, 59, 957, 40118, 1, 9990], [, , 64624770, 59, 957, 40118, 1, 2590], [, , , , , , , ], [, , , , , , , ]]')

		select('JTreeTable', 'cell:keycode,13(62684217)')
		assert_p('JTreeTable', 'RowCount', '17')
		select('JTreeTable', 'rows:[4,7,12,14],columns:[keycode]')
		select_menu('View>>Table View #{Selected Records#}')
		select('JTreeTable', 'rows:[4,7,12,14],columns:[keycode]')
		select('LinesTbl', 'cell:2|store,1(59)')
		assert_p('LinesTbl', 'Content', '[[68634752, 59, 410, 40118, 1, 8990], [60614487, 59, 878, 40118, 1, 5950], [64614401, 59, 957, 40118, 1, 1990], [64624770, 59, 957, 40118, 1, 2590]]')

		select('LinesTbl', 'cell:1|keycode,3(64624770)')
		assert_p('LinesTbl', 'Text', '59', '2|store,3')
		select('LinesTbl', 'cell:1|keycode,3(64624770)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu('View>>Table View #{Selected Records#}')
		select('LinesTbl', 'cell:2|store,1(59)')
		assert_p('LinesTbl', 'Content', '[[68634752, 59, 410, 40118, 1, 8990], [60614487, 59, 878, 40118, 1, 5950], [64614401, 59, 957, 40118, 1, 1990], [64624770, 59, 957, 40118, 1, 2590]]')

		select('LinesTbl', 'cell:2|store,1(59)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('JTreeTable', 'rows:[2,9,11],columns:[Tree]')
		select_menu('View>>Table View #{Selected Records#}')
		select('JTreeTable', 'rows:[2,9,11],columns:[Tree]')
		select('LinesTbl', 'cell:2|store,2(59)')
		assert_p('LinesTbl', 'Content', '[[61664713, 59, 335, 40118, 1, 17990], [61664713, 59, 335, 40118, -1, -17990], [61684613, 59, 335, 40118, 1, 12990], [67674686, 59, 929, 40118, 1, 3990], [64614401, 59, 957, 40118, 1, 1990]]')

	close()
Exemple #51
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window(commonBits.applicationName()):
        select('FileNameTxtFld',
               commonBits.sampleDir() + 'protoStoreSales3a.bin')
        click('Edit1')
        ##		select('JTreeTable', '')
        rightclick('JTreeTable', 'Tree,1')
        select_menu('Fully Expand Tree')
        select('LayoutCombo', 'Product')
        select('JTreeTable', 'cell:saleDate,5(40118)')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 61664713, 40118, 1, 17990], [, , 61664713, 40118, -1, -17990], [, , 61684613, 40118, 1, 12990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 68634752, 40118, 1, 8990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 60664659, 40118, 1, 3990], [, , 60694698, 40118, 1, 3990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 60614487, 40118, 1, 5950], [, , 63644339, 40118, 1, 12650], [, , , , , ], [, , , , , ], [, , , , , ], [, , 67674686, 40118, 1, 3990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 62684217, 40118, 1, 9990], [, , 64614401, 40118, 1, 1990], [, , 64614401, 40118, 1, 1990], [, , 64624770, 40118, 1, 2590], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]'
        )
        select('JTreeTable', 'rows:[31,32],columns:[saleDate]')
        select_menu('Edit>>Copy Record#{s#}')
        select('JTreeTable', 'cell:saleDate,6(40118)')
        select_menu('Edit>>Paste Record#{s#}')
        select('JTreeTable', 'cell:keycode,5(61664713)')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 61664713, 40118, 1, 17990], [, , 61664713, 40118, -1, -17990], [, , 64614401, 40118, 1, 1990], [, , 64624770, 40118, 1, 2590], [, , 61684613, 40118, 1, 12990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 68634752, 40118, 1, 8990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 60664659, 40118, 1, 3990], [, , 60694698, 40118, 1, 3990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 60614487, 40118, 1, 5950], [, , 63644339, 40118, 1, 12650], [, , , , , ], [, , , , , ], [, , , , , ], [, , 67674686, 40118, 1, 3990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 62684217, 40118, 1, 9990], [, , 64614401, 40118, 1, 1990], [, , 64614401, 40118, 1, 1990], [, , 64624770, 40118, 1, 2590], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]'
        )
        select_menu('Utilities>>Compare with Disk')
        select('Table', 'cell:saleDate,1(40118)')
        assert_p(
            'Table', 'Content',
            '[[, , , , , , ], [, Inserted, 37, 64614401, 40118, 1, 1990], [, , , , , , ], [, Inserted, 38, 64624770, 40118, 1, 2590]]'
        )
        select('Table', 'cell:saleDate,1(40118)')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('Save')
        select_menu('Utilities>>Compare with Disk')
        assert_p('TextPane', 'Text', 'Files are Identical !!!')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select_menu('Window>>protoStoreSales3a.bin>>Tree View')
        select('JTreeTable', 'rows:[7,8],columns:[saleDate]')
        rightclick('JTreeTable', 'saleDate,7')
        select_menu('Delete Record#{s#}')
        select('JTreeTable', 'cell:keycode,6(61664713)')
        assert_p(
            'JTreeTable', 'Content',
            '[[, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , 61664713, 40118, 1, 17990], [, , 61664713, 40118, -1, -17990], [, , 61684613, 40118, 1, 12990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 68634752, 40118, 1, 8990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 60664659, 40118, 1, 3990], [, , 60694698, 40118, 1, 3990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 60614487, 40118, 1, 5950], [, , 63644339, 40118, 1, 12650], [, , , , , ], [, , , , , ], [, , , , , ], [, , 67674686, 40118, 1, 3990], [, , , , , ], [, , , , , ], [, , , , , ], [, , 62684217, 40118, 1, 9990], [, , 64614401, 40118, 1, 1990], [, , 64614401, 40118, 1, 1990], [, , 64624770, 40118, 1, 2590], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ], [, , , , , ]]'
        )
        select_menu('Utilities>>Compare with Disk')
        select('Table', 'cell:saleDate,2(40118)')
        assert_p(
            'Table', 'Content',
            '[[, Deleted, 37, 64614401, 40118, 1, 1990], [, , , , , , ], [, Deleted, 38, 64624770, 40118, 1, 2590], [, , , , , , ]]'
        )
        select('Table', 'cell:saleDate,2(40118)')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select_menu('Window>>protoStoreSales3a.bin>>Tree View')
        click('Save')
        select_menu('Utilities>>Compare with Disk')
        assert_p('TextPane', 'Text', 'Files are Identical !!!')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #52
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_20'

    if window('Record Editor'):
        select('FileChooser',
               commonBits.sampleDir() + 'DTAR1000_Store_file_std.bin')
        commonBits.setRecordLayout(select, 'xDTAR1000 VB')

        click(commonBits.fl('Edit') + '1')
        select(
            'Table',
            'rows:[15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[3 - 2|REGION-NO]'
        )
        select_menu(
            commonBits.fl('View') + '>>' +
            commonBits.fl('Table View #{Selected Records#}'))
        ##		select('Table2', 'rows:[15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[3 - 2|REGION-NO]')
        assert_p(
            'Table', 'Content',
            '[[20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:'))
        select(
            'Table',
            'rows:[15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[3 - 2|REGION-NO]'
        )
        select('Table', 'cell:5 - 50|STORE-NAME,1(Q Coffs Harbour)')
        click('New1')
        select('Table', '1', commonBits.fl('Data') + ',8')
        select('Table', '1', commonBits.fl('Data') + ',0')
        select('Table', '1', commonBits.fl('Data') + ',1')
        select('Table', '1', commonBits.fl('Data') + ',2')
        select('Table', '1', commonBits.fl('Data') + ',3')
        select('Table', '1', commonBits.fl('Data') + ',4')
        select('Table', '1', commonBits.fl('Data') + ',5')
        select('Table', '1', commonBits.fl('Data') + ',6')
        select('Table', '1', commonBits.fl('Data') + ',7')
        select('Table', '1', commonBits.fl('Data') + ',8')
        select('Table', 'cell:' + commonBits.fl('Data') + ',8()')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:') + '1')
        assert_p(
            'Table', 'Content',
            '[[20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:') + '1')
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:'))
        select('Table', 'cell:5 - 50|STORE-NAME,3(Q Mackay)')
        click('New1')
        select('Table', '2', commonBits.fl('Data') + ',8')
        select('Table', '2', commonBits.fl('Data') + ',0')
        select('Table', '2', commonBits.fl('Data') + ',1')
        select('Table', '2', commonBits.fl('Data') + ',2')
        select('Table', '2', commonBits.fl('Data') + ',3')
        select('Table', '2', commonBits.fl('Data') + ',4')
        select('Table', '2', commonBits.fl('Data') + ',5')
        select('Table', '2', commonBits.fl('Data') + ',6')
        select('Table', '2', commonBits.fl('Data') + ',7')
        select('Table', '2', commonBits.fl('Data') + ',8')
        select('Table', 'cell:' + commonBits.fl('Data') + ',5(2)')
        click('New1')
        select('Table', '3', commonBits.fl('Data') + ',8')
        select('Table', '3', commonBits.fl('Data') + ',0')
        select('Table', '3', commonBits.fl('Data') + ',1')
        select('Table', '3', commonBits.fl('Data') + ',2')
        select('Table', '3', commonBits.fl('Data') + ',3')
        select('Table', '3', commonBits.fl('Data') + ',4')
        select('Table', '3', commonBits.fl('Data') + ',5')
        select('Table', '3', commonBits.fl('Data') + ',6')
        select('Table', '3', commonBits.fl('Data') + ',7')
        select('Table', '3', commonBits.fl('Data') + ',8')
        select('Table', 'cell:' + commonBits.fl('Data') + ',2(3)')
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:') + '1')
        ##		select('Table2', 'cell:' + commonBits.fl('Data') + ',2(3)')
        assert_p(
            'Table', 'Content',
            '[[20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:'))
        select('Table', 'cell:5 - 50|STORE-NAME,6(V Ballarat)')
        click('New1')
        select('Table', '4', commonBits.fl('Data') + ',8')
        select('Table', '4', commonBits.fl('Data') + ',0')
        select('Table', '4', commonBits.fl('Data') + ',1')
        select('Table', '4', commonBits.fl('Data') + ',2')
        select('Table', '4', commonBits.fl('Data') + ',3')
        select('Table', '4', commonBits.fl('Data') + ',4')
        select('Table', '4', commonBits.fl('Data') + ',5')
        select('Table', '4', commonBits.fl('Data') + ',6')
        select('Table', '4', commonBits.fl('Data') + ',7')
        select('Table', '4', commonBits.fl('Data') + ',8')
        select('Table', 'cell:' + commonBits.fl('Data') + ',6(4)')
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:'))
        ##		select('Table2', 'cell:' + commonBits.fl('Data') + ',6(4)')
        assert_p(
            'Table', 'Content',
            '[[1, 20, V Geelong, N, Y, N, N, N, N], [2, 40, Q Coffs Harbour, N, Y, N, N, N, N], [1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 40, Q Mackay, N, Y, N, N, N, N], [2, 2, 2, 2, 2, 2, 2, 2, 2], [3, 3, 3, 3, 3, 3, 3, 3, 3], [4, 20, V Ballarat, N, Y, N, N, N, N], [4, 4, 4, 4, 4, 4, 4, 4, 4], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N], [40, 40, Q Tweed Heads, N, Y, N, N, N, N], [42, 20, V Reservoir, N, Y, N, N, N, N], [43, 60, W Morley, N, Y, N, N, N, N], [44, 50, S Mt Gambier, N, Y, N, N, N, N], [45, 60, W Carousel, N, Y, N, N, N, N], [46, 10, N Dubbo, N, Y, N, N, N, N], [47, 50, S Sefton Park, N, Y, N, N, N, N], [48, 40, Q Bundaberg, N, Y, N, N, N, N], [49, 40, Q Rockhampton, N, Y, N, N, N, N], [52, 10, N Eastwood, N, Y, N, N, N, N], [54, 20, V Highpoint City, N, Y, N, N, N, N], [55, 10, N Leichhardt, N, Y, N, N, N, N], [57, 60, W Victoria Park, N, Y, N, N, N, N], [58, 20, V Knox City, N, Y, N, N, N, N], [59, 40, Q Buranda, N, Y, N, N, N, N], [60, 10, N St Marys, N, Y, N, N, N, N], [61, 20, V Waverley Gardens, N, Y, N, N, N, N], [62, 40, Q Castletown, N, Y, N, N, N, N], [64, 20, V Hoppers Crossing, N, Y, N, N, N, N], [65, 60, W Innaloo, N, Y, N, N, N, N], [67, 20, V Morwell Mid Valley, N, Y, N, N, N, N], [68, 40, Q Mt Gravatt, N, Y, N, N, N, N], [69, 60, W Midland, N, Y, N, N, N, N], [70, 10, N Bass Hill, N, Y, N, N, N, N], [72, 60, W Geraldton, N, Y, N, N, N, N], [73, 40, Q Southport, N, Y, N, N, N, N], [74, 10, N Campbelltown, N, Y, N, N, N, N], [75, 20, V Sale, N, Y, N, N, N, N], [76, 60, W Bull Creek, N, Y, N, N, N, N], [77, 50, S Elizabeth, N, Y, N, N, N, N], [78, 10, N Warringah Mall, N, Y, N, N, N, N], [79, 60, W Stirling, N, Y, N, N, N, N], [80, 20, V Sunshine, N, Y, N, N, N, N], [81, 10, N Ashfield, N, Y, N, N, N, N], [82, 20, V Box Hill, N, Y, N, N, N, N], [83, 40, Q Springwood, N, Y, N, N, N, N], [84, 40, Q Brookside, N, Y, N, N, N, N], [85, 10, N Roselands, N, Y, N, N, N, N], [86, 20, V Southland, N, Y, N, N, N, N], [87, 20, V Chadstone, N, Y, N, N, N, N], [88, 20, V Templestowe, N, Y, N, N, N, N], [89, 10, N Erina, N, Y, N, N, N, N], [90, 10, N Carlingford Court, N, Y, N, N, N, N], [91, 10, N Chatswood, N, Y, N, N, N, N], [92, 20, V Malvern, N, Y, N, N, N, N], [93, 10, N Liverpool, N, Y, N, N, N, N], [94, 60, W Whitford City, N, Y, N, N, N, N], [95, 10, N Eastgarden, N, Y, N, N, N, N], [96, 10, N Canberra Civic, N, Y, N, N, N, N], [97, 20, V Fountain Gate, N, Y, N, N, N, N], [98, 20, V Frankston, N, Y, N, N, N, N], [99, 20, V Glen Waverley, N, Y, N, N, N, N], [100, 20, V Waurn Ponds, N, Y, N, N, N, N], [125, 10, N Mt Druitt, N, Y, N, N, N, N], [126, 40, Q Robina, N, Y, N, N, N, N], [127, 50, S Marion, N, Y, N, N, N, N], [128, 60, W Rockingham, N, Y, N, N, N, N], [129, 10, N Macquarie, N, Y, N, N, N, N], [131, 20, V Melbourne City, N, Y, N, N, N, N], [132, 20, V Glenorchy, N, Y, N, N, N, N], [133, 40, Q Browns Plains, N, Y, N, N, N, N], [134, 50, S Reynella, N, Y, N, N, N, N], [135, 40, Q Capalaba, N, Y, N, N, N, N], [136, 10, N Charlestown, N, Y, N, N, N, N], [137, 20, V Dandenong, N, Y, N, N, N, N], [138, 40, Q Cairns Central, N, Y, N, N, N, N], [139, 40, Q Toowoomba, N, Y, N, N, N, N], [140, 40, Q Pacific Fair, N, Y, N, N, N, N], [141, 40, Q The Willows, N, Y, N, N, N, N], [142, 50, S Hollywood Plaza, N, Y, N, N, N, N], [143, 40, Q Hervey Bay, N, Y, N, N, N, N], [144, 10, N Parramatta, N, Y, N, N, N, N], [145, 10, N Port Macquarie, N, Y, N, N, N, N], [146, 40, Q Palmerston, N, Y, N, N, N, N], [149, 20, V Broadmeadows, N, Y, N, N, N, N], [150, 10, N Cowra, N, Y, N, N, N, N], [151, 60, W Perth, N, Y, N, N, N, N], [152, 20, V Mornington, N, Y, N, N, N, N], [153, 20, V Pakenham, N, Y, N, N, N, N], [154, 10, N Shellharbour, N, Y, N, N, N, N], [155, 40, Q Redbank, N, Y, N, N, N, N], [156, 40, Q Morayfield, N, Y, N, N, N, N], [157, 20, V Chirnside Park, N, Y, N, N, N, N], [158, 20, V Brimbank Central, N, Y, N, N, N, N], [159, 50, S Whyalla, N, Y, N, N, N, N], [160, 20, V Watergardens, N, Y, N, N, N, N], [161, 20, V Hobart, N, Y, N, N, N, N], [162, 10, N Tuggeranong, N, Y, N, N, N, N], [163, 10, N Queanbeyan, N, Y, N, N, N, N], [164, 10, N Tuggerah, N, Y, N, N, N, N], [165, 10, N Hurstville, N, Y, N, N, N, N], [166, 40, Q Chermside, N, Y, N, N, N, N], [167, 40, Q Northlakes, N, Y, N, N, N, N], [168, 20, V Airport West, N, Y, N, N, N, N], [169, 10, N Hornsby, N, Y, N, N, N, N], [170, 10, N Bondi, N, Y, N, N, N, N], [171, 10, N Burwood, N, Y, N, N, N, N], [173, 60, W Bunbury, N, Y, N, N, N, N], [174, 40, Q Carindale, N, Y, N, N, N, N], [175, 10, N Tamworth, N, Y, N, N, N, N], [177, 10, N Castle Hill, N, Y, N, N, N, N], [178, 10, N Blacktown, N, Y, N, N, N, N], [179, 20, V Greensborough, N, Y, N, N, N, N], [180, 60, W Joondalup, N, Y, N, N, N, N], [183, 20, V Swan Hill, N, Y, N, N, N, N], [184, 40, Q Brisbane CBD, N, Y, N, N, N, N], [186, 20, B Narre Warren (Closed), N, Y, N, N, N, N], [188, 10, N Macarthur Square, N, Y, N, N, N, N], [189, 20, B Northland Baby Target, N, Y, N, N, N, N], [191, 50, B Golden Grove, N, Y, N, N, N, N], [192, 10, N Wetherill Park, N, Y, N, N, N, N], [193, 60, W Kalgoorlie, N, Y, N, N, N, N], [194, 50, S Mildura, N, Y, N, N, N, N], [195, 40, Q Bribie Island, N, Y, N, N, N, N], [196, 60, W Meadow Springs, N, Y, N, N, N, N], [197, 50, S Unley, N, Y, N, N, N, N]]'
        )
        assert_p(
            'Table', 'Content',
            '[[1, 20, V Geelong, N, Y, N, N, N, N], [2, 40, Q Coffs Harbour, N, Y, N, N, N, N], [1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 40, Q Mackay, N, Y, N, N, N, N], [2, 2, 2, 2, 2, 2, 2, 2, 2], [3, 3, 3, 3, 3, 3, 3, 3, 3], [4, 20, V Ballarat, N, Y, N, N, N, N], [4, 4, 4, 4, 4, 4, 4, 4, 4], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N], [40, 40, Q Tweed Heads, N, Y, N, N, N, N], [42, 20, V Reservoir, N, Y, N, N, N, N], [43, 60, W Morley, N, Y, N, N, N, N], [44, 50, S Mt Gambier, N, Y, N, N, N, N], [45, 60, W Carousel, N, Y, N, N, N, N], [46, 10, N Dubbo, N, Y, N, N, N, N], [47, 50, S Sefton Park, N, Y, N, N, N, N], [48, 40, Q Bundaberg, N, Y, N, N, N, N], [49, 40, Q Rockhampton, N, Y, N, N, N, N], [52, 10, N Eastwood, N, Y, N, N, N, N], [54, 20, V Highpoint City, N, Y, N, N, N, N], [55, 10, N Leichhardt, N, Y, N, N, N, N], [57, 60, W Victoria Park, N, Y, N, N, N, N], [58, 20, V Knox City, N, Y, N, N, N, N], [59, 40, Q Buranda, N, Y, N, N, N, N], [60, 10, N St Marys, N, Y, N, N, N, N], [61, 20, V Waverley Gardens, N, Y, N, N, N, N], [62, 40, Q Castletown, N, Y, N, N, N, N], [64, 20, V Hoppers Crossing, N, Y, N, N, N, N], [65, 60, W Innaloo, N, Y, N, N, N, N], [67, 20, V Morwell Mid Valley, N, Y, N, N, N, N], [68, 40, Q Mt Gravatt, N, Y, N, N, N, N], [69, 60, W Midland, N, Y, N, N, N, N], [70, 10, N Bass Hill, N, Y, N, N, N, N], [72, 60, W Geraldton, N, Y, N, N, N, N], [73, 40, Q Southport, N, Y, N, N, N, N], [74, 10, N Campbelltown, N, Y, N, N, N, N], [75, 20, V Sale, N, Y, N, N, N, N], [76, 60, W Bull Creek, N, Y, N, N, N, N], [77, 50, S Elizabeth, N, Y, N, N, N, N], [78, 10, N Warringah Mall, N, Y, N, N, N, N], [79, 60, W Stirling, N, Y, N, N, N, N], [80, 20, V Sunshine, N, Y, N, N, N, N], [81, 10, N Ashfield, N, Y, N, N, N, N], [82, 20, V Box Hill, N, Y, N, N, N, N], [83, 40, Q Springwood, N, Y, N, N, N, N], [84, 40, Q Brookside, N, Y, N, N, N, N], [85, 10, N Roselands, N, Y, N, N, N, N], [86, 20, V Southland, N, Y, N, N, N, N], [87, 20, V Chadstone, N, Y, N, N, N, N], [88, 20, V Templestowe, N, Y, N, N, N, N], [89, 10, N Erina, N, Y, N, N, N, N], [90, 10, N Carlingford Court, N, Y, N, N, N, N], [91, 10, N Chatswood, N, Y, N, N, N, N], [92, 20, V Malvern, N, Y, N, N, N, N], [93, 10, N Liverpool, N, Y, N, N, N, N], [94, 60, W Whitford City, N, Y, N, N, N, N], [95, 10, N Eastgarden, N, Y, N, N, N, N], [96, 10, N Canberra Civic, N, Y, N, N, N, N], [97, 20, V Fountain Gate, N, Y, N, N, N, N], [98, 20, V Frankston, N, Y, N, N, N, N], [99, 20, V Glen Waverley, N, Y, N, N, N, N], [100, 20, V Waurn Ponds, N, Y, N, N, N, N], [125, 10, N Mt Druitt, N, Y, N, N, N, N], [126, 40, Q Robina, N, Y, N, N, N, N], [127, 50, S Marion, N, Y, N, N, N, N], [128, 60, W Rockingham, N, Y, N, N, N, N], [129, 10, N Macquarie, N, Y, N, N, N, N], [131, 20, V Melbourne City, N, Y, N, N, N, N], [132, 20, V Glenorchy, N, Y, N, N, N, N], [133, 40, Q Browns Plains, N, Y, N, N, N, N], [134, 50, S Reynella, N, Y, N, N, N, N], [135, 40, Q Capalaba, N, Y, N, N, N, N], [136, 10, N Charlestown, N, Y, N, N, N, N], [137, 20, V Dandenong, N, Y, N, N, N, N], [138, 40, Q Cairns Central, N, Y, N, N, N, N], [139, 40, Q Toowoomba, N, Y, N, N, N, N], [140, 40, Q Pacific Fair, N, Y, N, N, N, N], [141, 40, Q The Willows, N, Y, N, N, N, N], [142, 50, S Hollywood Plaza, N, Y, N, N, N, N], [143, 40, Q Hervey Bay, N, Y, N, N, N, N], [144, 10, N Parramatta, N, Y, N, N, N, N], [145, 10, N Port Macquarie, N, Y, N, N, N, N], [146, 40, Q Palmerston, N, Y, N, N, N, N], [149, 20, V Broadmeadows, N, Y, N, N, N, N], [150, 10, N Cowra, N, Y, N, N, N, N], [151, 60, W Perth, N, Y, N, N, N, N], [152, 20, V Mornington, N, Y, N, N, N, N], [153, 20, V Pakenham, N, Y, N, N, N, N], [154, 10, N Shellharbour, N, Y, N, N, N, N], [155, 40, Q Redbank, N, Y, N, N, N, N], [156, 40, Q Morayfield, N, Y, N, N, N, N], [157, 20, V Chirnside Park, N, Y, N, N, N, N], [158, 20, V Brimbank Central, N, Y, N, N, N, N], [159, 50, S Whyalla, N, Y, N, N, N, N], [160, 20, V Watergardens, N, Y, N, N, N, N], [161, 20, V Hobart, N, Y, N, N, N, N], [162, 10, N Tuggeranong, N, Y, N, N, N, N], [163, 10, N Queanbeyan, N, Y, N, N, N, N], [164, 10, N Tuggerah, N, Y, N, N, N, N], [165, 10, N Hurstville, N, Y, N, N, N, N], [166, 40, Q Chermside, N, Y, N, N, N, N], [167, 40, Q Northlakes, N, Y, N, N, N, N], [168, 20, V Airport West, N, Y, N, N, N, N], [169, 10, N Hornsby, N, Y, N, N, N, N], [170, 10, N Bondi, N, Y, N, N, N, N], [171, 10, N Burwood, N, Y, N, N, N, N], [173, 60, W Bunbury, N, Y, N, N, N, N], [174, 40, Q Carindale, N, Y, N, N, N, N], [175, 10, N Tamworth, N, Y, N, N, N, N], [177, 10, N Castle Hill, N, Y, N, N, N, N], [178, 10, N Blacktown, N, Y, N, N, N, N], [179, 20, V Greensborough, N, Y, N, N, N, N], [180, 60, W Joondalup, N, Y, N, N, N, N], [183, 20, V Swan Hill, N, Y, N, N, N, N], [184, 40, Q Brisbane CBD, N, Y, N, N, N, N], [186, 20, B Narre Warren (Closed), N, Y, N, N, N, N], [188, 10, N Macarthur Square, N, Y, N, N, N, N], [189, 20, B Northland Baby Target, N, Y, N, N, N, N], [191, 50, B Golden Grove, N, Y, N, N, N, N], [192, 10, N Wetherill Park, N, Y, N, N, N, N], [193, 60, W Kalgoorlie, N, Y, N, N, N, N], [194, 50, S Mildura, N, Y, N, N, N, N], [195, 40, Q Bribie Island, N, Y, N, N, N, N], [196, 60, W Meadow Springs, N, Y, N, N, N, N], [197, 50, S Unley, N, Y, N, N, N, N]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' +
            commonBits.fl('Table:') + '1')
        assert_p(
            'Table', 'Content',
            '[[20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]'
        )

    close()
Exemple #53
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Editor'):
        select('File_Txt',
               commonBits.sampleDir() + 'po/TipOfTheDay.properties')
        select('Record Layout_Txt', 'TipDetails')
        click(commonBits.fl('Edit') + '1')
        ##	select('Table', '')
        rightclick('Table', commonBits.fl('Line') + ',2')
        select_menu(commonBits.fl('Show in Hints Dialog'))

        if window('Tip of the Day'):
            assert_p('Label2', 'Text', 'Did you know...')
            click('Next >')
            assert_p(
                'EditorPane', 'Text', '''<html>
  <head>
    <style type="text/css">
      <!--
        body { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        a { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        p { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        li { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
      -->
    </style>
    
  </head>
  <body>
    You can <b><font color="blue">sort</font></b> a file by any of

    <ul>
      <li>
        Double clicking on the column heading
      </li>
      <li>
        Click on the sort Button, The editor will display display a <b>sort 
        dialogue</b>
      </li>
      <li>
        Using the <b>Right Click</b> menu.
      </li>
      <li>
        Using the <b>Data &gt;&gt;&gt;&gt; Sort</b> Drop down menu
      </li>
    </ul>
  </body>
</html>
''')
            click('Next >')
            assert_p(
                'EditorPane', 'Text', '''<html>
  <head>
    <style type="text/css">
      <!--
        body { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        a { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        p { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        li { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
      -->
    </style>
    
  </head>
  <body>
    If you want to view a file in a different sequence without changing the 
    order of records in the file, you can

    <ul>
      <li>
        Click <b>ctrl-a</b> to select all records, then select <b>View &gt;&gt;&gt; 
        Table View (Selected Record)</b> to create a new view.
      </li>
      <li>
        <b>Sort</b> this new view in to the required sequence; Only the view\'s 
        record order will be updated, leaving the file in the original 
        sequence.
      </li>
    </ul>
  </body>
</html>
''')
            click('Next >')
            assert_p(
                'EditorPane', 'Text', '''<html>
  <head>
    <style type="text/css">
      <!--
        body { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        a { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        p { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
        li { margin-bottom: 0; font-size: 12pt; margin-right: 0; margin-left: 0; margin-top: 0; font-family: Dialog }
      -->
    </style>
    
  </head>
  <body>
    Do you have <b>Multiple Record Types</b> in the file ???. You can use <b>View 
    &gt;&gt;&gt; Record Based Tree</b> to display the data in a Tree format.
  </body>
</html>
''')
            click('Close')
        close()
    close()
Exemple #54
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() + 'utf8a_Ams_PODownload_20041231.txt')
		commonBits.setRecordLayout(select, 'utf8_ams PO Download')
		click('Edit1')
		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('JTreeTable', '')
		rightclick('JTreeTable', 'Record Type,1')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Record Type,2(D1)')
		rightclick('JTreeTable', 'Record Type,2')
		select_menu('Copy Record#{s#}')
		select('JTreeTable', 'cell:Record Type,3(D1)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Record Type,4(D1)')
		assert_p('JTreeTable', 'RowCount', '12')
		select('JTreeTable', 'cell:Record Type,5(D1)')
		rightclick('JTreeTable', 'Record Type,5')
		select_menu('Paste Record#{s#}')
		select('JTreeTable', 'cell:Record Type,1(H1)')
		rightclick('JTreeTable', 'Record Type,1')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Sequence Number,6(0.016)')
		assert_p('JTreeTable', 'Text', '0.016', 'Sequence Number,6')
		select('JTreeTable', 'cell:Sequence Number,5(0.008)')
		assert_p('JTreeTable', 'RowCount', '13')
		select('JTreeTable', 'cell:Sequence Number,3(0.008)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Sequence Number,5(0.008)')
		rightclick('JTreeTable', 'Sequence Number,5')
		select_menu('Paste Record#{s#} Prior')
		select('JTreeTable', 'cell:Sequence Number,5(0.016)')
		assert_p('JTreeTable', 'Text', '0.016', 'Sequence Number,5')
		select('JTreeTable', 'cell:Sequence Number,6(0.008)')
		assert_p('JTreeTable', 'RowCount', '14')
		select('JTreeTable', 'cell:Sequence Number,4(0.108)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Sequence Number,5(0.016)')
		select_menu('View>>Table View #{Selected Records#}')
		select('JTreeTable', 'cell:Sequence Number,5(0.016)')
		select('Table', 'cell:7 - 8|Pack Quantity 1,0(60000006)')
		assert_p('Table', 'Content', '[[D1, 1, 60000006, 2281, 48320000, 0222, 45310000, 5, 45400000, 16, 207, 5348, , 5614, 531, D, ONKEY 24, -6, 607 SHWL], [S1, 5019, 1, 5037, 1, 5078, 1, 5085, 1, 5091, 1, 5093, 1, 5095, 1, 51 D, ONKEY 24, -6, 607 SHWL], [S1, 5171, 1, 5177, 1, 5136, 1, 5145, 1, 5096, 1, , 0, , 0, , 0, , 0]]')
		select('Table', 'cell:3 - 4|DC Number 1,1(5019)')
		select('Table', 'cell:7 - 8|Pack Quantity 1,1(1)')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('JTreeTable', 'cell:Sequence Number,7(0.016)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Vendor,7(6228)')
		rightclick('JTreeTable', 'Vendor,7')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Sequence Number,8(50.190)')
		assert_p('JTreeTable', 'Text', '50.190', 'Sequence Number,8')
		select('JTreeTable', 'cell:Sequence Number,9(51.710)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , S1, 50.190, 1503, 700000001507, 400000, 00150780, 00, 00, 0015, 085000, 000015, 0, 000001, 5, 0930000000, 1, 50], [, , S1, 51.710, 1517, 700000001508, 900000, 00151360, 00, 00, 0015, 145000, 000015, 0, 000001, ,    0000000, 0, ], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Sequence Number,5(0.016)')
		rightclick('JTreeTable', 'Sequence Number,5')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Sequence Number,6(50.190)')
		assert_p('JTreeTable', 'Text', '51.710', 'Sequence Number,7')
		select('JTreeTable', 'cell:Sequence Number,7(51.710)')
		assert_p('JTreeTable', 'RowCount', '18')
		select('JTreeTable', 'cell:PO,7(700000001508)')
		assert_p('JTreeTable', 'Text', '700000001508', 'PO,7')
		select('JTreeTable', 'cell:PO,6(700000001507)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , S1, 50.190, 1503, 700000001507, 400000, 00150780, 00, 00, 0015, 085000, 000015, 0, 000001, 5, 0930000000, 1, 50], [, , S1, 51.710, 1517, 700000001508, 900000, 00151360, 00, 00, 0015, 145000, 000015, 0, 000001, ,    0000000, 0, ], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , S1, 50.190, 1503, 700000001507, 400000, 00150780, 00, 00, 0015, 085000, 000015, 0, 000001, 5, 0930000000, 1, 50], [, , S1, 51.710, 1517, 700000001508, 900000, 00151360, 00, 00, 0015, 145000, 000015, 0, 000001, ,    0000000, 0, ], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Sequence Number,4(0.108)')
		rightclick('JTreeTable', 'Sequence Number,4')
		select_menu('Copy Record#{s#}')
		select('JTreeTable', 'cell:Sequence Number,2(0.016)')
		rightclick('JTreeTable', 'Sequence Number,2')
		select_menu('Paste Record#{s#} Prior')
		select('JTreeTable', 'cell:Record Type,1(H1)')
		rightclick('JTreeTable', 'Record Type,1')
		select_menu('Expand Tree')
		select('JTreeTable', 'cell:Sequence Number,2(0.108)')
		assert_p('JTreeTable', 'Text', '0.108', 'Sequence Number,2')
		select('JTreeTable', 'cell:Sequence Number,3(0.016)')
		assert_p('JTreeTable', 'RowCount', '15')
		select('JTreeTable', 'cell:Sequence Number,4(0.008)')
		assert_p('JTreeTable', 'Content', '[[, , H1, 45.349, 6060, 286225, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.350, 6228, 222227, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 62224, 94, 40, 0000, 005454, 000000, ,    207, 5, 349, , 65], [, , D1, 0.108, 0, 148320000000, 000000, 00 62225, 07, 10, 0000, 005454, 000010, ,    207, 5, 350, , 65], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , D1, 0.008, 0, 148320000000, 000000, 00 52225, 15, 60, 0000, 005454, 000000, ,    207, 5, 351, , 55], [, , D1, 0.016, 6228, 148320000000, 000022, 22 02224, 53, 10, 0000, 005454, 000001, ,    207, 5, 348, , 56], [, , H1, 45.351, 6228, 222243, 040909, , 00, , 200, 050102, 050107, , , , LADIES KNI, C, FT], [, , H1, 45.352, 5341, 294915, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.353, 5341, 294987, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.354, 5341, 295139, 041013, , 00, , 475, 041231, 050107, P, , , WOMENS SHO, C, FT], [, , H1, 45.355, 5341, 303662, 041110, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT], [, , H1, 45.356, 5341, 304100, 041111, , 00, , 310, 041231, 050107, P, , , YOUTH SHOE, C, FT]]')
		select('JTreeTable', 'cell:Record Type,2(D1)')
		select('JTreeTable', 'rows:[2,3],columns:[Sequence Number]')
		select_menu('View>>Table View #{Selected Records#}')
		select('JTreeTable', 'rows:[2,3],columns:[Sequence Number]')
		select('Table', 'cell:7 - 8|Pack Quantity 1,0(80000000)')
		assert_p('Table', 'Text', 'cell:7 - 8|Pack Quantity 1,0(80000000)')
		select('Table', 'cell:3 - 4|DC Number 1,2(5078)')
		assert_p('Table', 'Content', '[[D1, 10, 80000000, 1, 48320000, 6222, 50710000, 5, 45400001, 8, 207, 5350, , 6561, 5071, M, .ROSE 24, -6, 607 SHWL], [S1, 5015, 2, 5019, 5, 5035, 2, 5037, 4, 5052, 2, 5055, 2, 5060, 2, 5070, 2, 5074, 4], [S1, 5078, 5, 5081, 2, 5090, 2, 5091, 4, 5093, 4, 5095, 4, 5129, 4, 5144, 4, 5165, 2], [S1, 5303, 2, 5169, 2, 5171, 3, 5177, 4, 5016, 2, 5089, 4, 5136, 3, 5011, 2, 5046, 2], [S1, 5145, 4, 5096, 3, 5162, 2, 5163, 2, 5164, 2, 5192, 2, 5150, 2, 5175, 2, , 0], [D1, 1, 60000006, 2281, 48320000, 0222, 45310000, 5, 45400000, 16, 207, 5348, , 5614, 531, D, ONKEY 24, -6, 607 SHWL], [S1, 5019, 1, 5037, 1, 5078, 1, 5085, 1, 5091, 1, 5093, 1, 5095, 1, 51 D, ONKEY 24, -6, 607 SHWL], [S1, 5171, 1, 5177, 1, 5136, 1, 5145, 1, 5096, 1, , 0, , 0, , 0, , 0]]')
		select('Table', 'cell:3 - 4|DC Number 1,6(5019)')
		assert_p('Table', 'RowCount', '8')
		select('Table', 'cell:3 - 4|DC Number 1,6(5019)')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('JTreeTable', 'cell:Tree,1(null)')
		rightclick('JTreeTable', 'Tree,1')
		select('JTreeTable', 'cell:Sequence Number,0(45.349)')
		rightclick('JTreeTable', 'Sequence Number,0')
		select_menu('Expand Tree')
		select('JTreeTable', 'rows:[4,5,6,7,8],columns:[Record Type]')
		select_menu('View>>Table View #{Selected Records#}')
		select('JTreeTable', 'rows:[4,5,6,7,8],columns:[Record Type]')
		select('Table', 'cell:7 - 8|Pack Quantity 1,0(40000000)')
		assert_p('Table', 'RowCount', '13')
		select('Table', 'cell:3 - 4|DC Number 1,4(5015)')
		assert_p('Table', 'Text', 'cell:3 - 4|DC Number 1,4(5015)')
		select('Table', 'cell:7 - 8|Pack Quantity 1,11(80000000)')
		assert_p('Table', 'Text', 'cell:7 - 8|Pack Quantity 1,11(80000000)')
		select('Table', 'cell:7 - 8|Pack Quantity 1,11(80000000)')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window('Save Changes to file: ' + commonBits.sampleDir() + 'utf8a_Ams_PODownload_20041231.txt'):
			click('No')
		close()
	close()
Exemple #55
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Record Editor'):
        select('FileChooser',
               commonBits.sampleDir() + 'utf8a_Ams_LocDownload_20041228.txt')
        commonBits.setRecordLayout(select, 'utf8_ams Store')
        click('Edit1')
        select('Table', 'rows:[0,4,8,13,18,23,27],columns:[10 - 35|Loc Name]')
        select_menu('View>>Table View #{Selected Records#}')
        ##		select('Table2', 'rows:[0,4,8,13,18,23,27],columns:[10 - 35|Loc Name]')
        select('Table', 'cell:8 - 2|Loc Type,1(ST)')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[TAR, 5839, DC, DC - Taras Ave, , 30-68 Taras Ave, Altona North, 3025, VIC], [TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW], [TAR, 5091, ST, Chatswood, Frenchs Forest, Unit 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, NSW], [TAR, 5157, ST, Chirnside Park, Kilsyth South, Lot 3 & 4 Southfork Drive, Kilsyth Park, 3137, VIC], [TAR, 5170, ST, Bondi, Building B, Portside Distribution Centre, 2-8 McPherson Street, Botany, 2019, NSW]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[TAR, 5839, DC, DC - Taras Ave, , 30-68 Taras Ave, Altona North, 3025, VIC, A], [TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, 2560, NSW, A], [TAR, 5091, ST, Chatswood, Frenchs Forest, Unit 2-3, 14 Aquatic Drive, Frenchs Forest, 2086, NSW, A], [TAR, 5157, ST, Chirnside Park, Kilsyth South, Lot 3 & 4 Southfork Drive, Kilsyth Park, 3137, VIC, A], [TAR, 5170, ST, Bondi, Building B, Portside Distribution Centre, 2-8 McPherson Street, Botany, 2019, NSW, A]]'
            )
        select('Table', 'cell:10 - 35|Loc Name,3(Campbelltown)')
        assert_p('Table', 'Text', 'Campbelltown', '10 - 35|Loc Name,3')
        select('Table', 'cell:10 - 35|Loc Name,1(Bankstown)')
        rightclick('Table', '10 - 35|Loc Name,1')
        select_menu('Edit Record')
        ##		select('Table1', 'cell:10 - 35|Loc Name,1(Bankstown)')
        select('Table', 'cell:Data,4(Bankstown)')
        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,4(Bankstown)')
        click('RightM')
        select('Table',
               'cell:Data,4(Building B, Portside Distribution Centre)')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5170, 5170], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Bondi, Bondi], [Loc Addr Ln1, 45, 40, Building B, Portside Distribution Centre, Building B, Portside Distribution Centre], [Loc Addr Ln2, 85, 40, 2-8 McPherson Street, 2-8 McPherson Street], [Loc Addr Ln3, 125, 35, Botany, Botany], [Loc Postcode, 160, 10, 2019, 2019], [Loc State, 170, 3, NSW, NSW]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5170, 5170], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Bondi, Bondi], [Loc Addr Ln1, 45, 40, Building B, Portside Distribution Centre, Building B, Portside Distribution Centre], [Loc Addr Ln2, 85, 40, 2-8 McPherson Street, 2-8 McPherson Street], [Loc Addr Ln3, 125, 35, Botany, Botany], [Loc Postcode, 160, 10, 2019, 2019], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
            )
        select('Table',
               'cell:Data,4(Building B, Portside Distribution Centre)')
        click('LeftM')
        select('Table', 'cell:Data,5(30-68 Taras Ave)')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5839, 5839], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, DC - Taras Ave, DC - Taras Ave], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, 30-68 Taras Ave, 30-68 Taras Ave], [Loc Addr Ln3, 125, 35, Altona North, Altona North], [Loc Postcode, 160, 10, 3025, 3025], [Loc State, 170, 3, VIC, VIC]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5839, 5839], [Loc Type, 8, 2, DC, DC], [Loc Name, 10, 35, DC - Taras Ave, DC - Taras Ave], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, 30-68 Taras Ave, 30-68 Taras Ave], [Loc Addr Ln3, 125, 35, Altona North, Altona North], [Loc Postcode, 160, 10, 3025, 3025], [Loc State, 170, 3, VIC, VIC], [Loc Actv Ind, 173, 1, A, A]]'
            )
        select('Table', 'cell:Data,5(30-68 Taras Ave)')
        click('RightM')
        click('Left')
        select('Table', 'cell:Data,5(Lot 3 & 4 Southfork Drive)')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5157, 5157], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Chirnside Park, Chirnside Park], [Loc Addr Ln1, 45, 40, Kilsyth South, Kilsyth South], [Loc Addr Ln2, 85, 40, Lot 3 & 4 Southfork Drive, Lot 3 & 4 Southfork Drive], [Loc Addr Ln3, 125, 35, Kilsyth Park, Kilsyth Park], [Loc Postcode, 160, 10, 3137, 3137], [Loc State, 170, 3, VIC, VIC]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5157, 5157], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Chirnside Park, Chirnside Park], [Loc Addr Ln1, 45, 40, Kilsyth South, Kilsyth South], [Loc Addr Ln2, 85, 40, Lot 3 & 4 Southfork Drive, Lot 3 & 4 Southfork Drive], [Loc Addr Ln3, 125, 35, Kilsyth Park, Kilsyth Park], [Loc Postcode, 160, 10, 3137, 3137], [Loc State, 170, 3, VIC, VIC], [Loc Actv Ind, 173, 1, A, A]]'
            )
        select('Table', 'cell:Data,5(Lot 3 & 4 Southfork Drive)')
        click('Left')
        select('Table', 'cell:Data,5(Unit 2-3, 14 Aquatic Drive)')
        if commonBits.isMissingCol():
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5091, 5091], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Chatswood, Chatswood], [Loc Addr Ln1, 45, 40, Frenchs Forest, Frenchs Forest], [Loc Addr Ln2, 85, 40, Unit 2-3, 14 Aquatic Drive, Unit 2-3, 14 Aquatic Drive], [Loc Addr Ln3, 125, 35, Frenchs Forest, Frenchs Forest], [Loc Postcode, 160, 10, 2086, 2086], [Loc State, 170, 3, NSW, NSW]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5091, 5091], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Chatswood, Chatswood], [Loc Addr Ln1, 45, 40, Frenchs Forest, Frenchs Forest], [Loc Addr Ln2, 85, 40, Unit 2-3, 14 Aquatic Drive, Unit 2-3, 14 Aquatic Drive], [Loc Addr Ln3, 125, 35, Frenchs Forest, Frenchs Forest], [Loc Postcode, 160, 10, 2086, 2086], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]'
            )
    close()
Exemple #56
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() +  'Ams_LocDownload_20041228.txt')

		click(commonBits.fl('Edit') + '1')
		select('Table', 'cell:4 - 4|Loc Nbr,0(5839)')
		rightclick('Table', '1 - 3|Brand Id,9')
##		select('Table', 'cell:4 - 4|Loc Nbr,0(5839)')
		select_menu(commonBits.fl('Edit Record'))
##		select('Table1', 'cell:4 - 4|Loc Nbr,0(5839)')
##		select('Table', '')
		rightclick('Table', commonBits.fl('Data') + ',0')
		select_menu(commonBits.fl('Hide Column'))
##		select('Table', '')
		rightclick('Table', commonBits.fl('Data') + ',1')
		select_menu(commonBits.fl('Hide Column'))
##		select('Table', '')
		rightclick('Table', commonBits.fl('Data') + ',3')
		select_menu(commonBits.fl('Hide Column'))
##		select('Table', '')
		rightclick('Table', commonBits.fl('Data') + ',6')
		select_menu(commonBits.fl('Hide Column'))
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(Marayong)')
		assert_p('Table', 'Content', '[[Loc Nbr, 4, 4, 5052, 5052], [Loc Name, 10, 35, Eastwood, Eastwood], [Loc Addr Ln1, 45, 40, Marayong Offsite Reserve, Marayong Offsite Reserve], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(Marayong)')
		select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields'))
##		select('Table1', 'cell:' + commonBits.fl('Data') + ',3(Marayong)')
##		assert_p('Table', 'Content', '[[Brand Id, false], [Loc Nbr, true], [Loc Type, false], [Loc Name, true], [Loc Addr Ln1, true], [Loc Addr Ln2, false], [Loc Addr Ln3, true], [Loc Postcode, true], [Loc State, true], [Loc Actv Ind, true]]')
		assert_p('Table', 'Content', '[[Brand Id, false], [Loc Nbr, true], [Loc Type, false], [Loc Name, true], [Loc Addr Ln1, true], [Loc Addr Ln2, false], [Loc Addr Ln3, true], [Loc Postcode, true], [Loc State, true], [Loc Actv Ind, false]]')

		
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(Marayong)')
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(Marayong)')
		select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Record:'))
		select('Table', 'cell:' + commonBits.fl('Data') + ',3(Marayong)')
		rightclick('Table', commonBits.fl('Data') + ',4')
		select_menu(commonBits.fl('Show ams Store Fields') + '>>Loc Actv Ind')
		assert_p('Table', 'Content', '[[Loc Nbr, 4, 4, 5052, 5052], [Loc Name, 10, 35, Eastwood, Eastwood], [Loc Addr Ln1, 45, 40, Marayong Offsite Reserve, Marayong Offsite Reserve], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
##		select('Table', '')
		rightclick('Table', commonBits.fl('Data') + ',4')
		select_menu(commonBits.fl('Show ams Store Fields') + '>>Loc Addr Ln2')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(2148)')
		assert_p('Table', 'Content', '[[Loc Nbr, 4, 4, 5052, 5052], [Loc Name, 10, 35, Eastwood, Eastwood], [Loc Addr Ln1, 45, 40, Marayong Offsite Reserve, Marayong Offsite Reserve], [Loc Addr Ln2, 85, 40, 11 Melissa Place, 11 Melissa Place], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(2148)')
		rightclick('Table', commonBits.fl('Data') + ',6')
		select_menu(commonBits.fl('Show ams Store Fields') + '>>Loc Type')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Marayong)')
		assert_p('Table', 'Content', '[[Loc Nbr, 4, 4, 5052, 5052], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Eastwood, Eastwood], [Loc Addr Ln1, 45, 40, Marayong Offsite Reserve, Marayong Offsite Reserve], [Loc Addr Ln2, 85, 40, 11 Melissa Place, 11 Melissa Place], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Marayong)')
		select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields'))
##		select('Table1', 'cell:' + commonBits.fl('Data') + ',5(Marayong)')
		assert_p('Table', 'Content', '[[Brand Id, false], [Loc Nbr, true], [Loc Type, true], [Loc Name, true], [Loc Addr Ln1, true], [Loc Addr Ln2, true], [Loc Addr Ln3, true], [Loc Postcode, true], [Loc State, true], [Loc Actv Ind, true]]')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Marayong)')
#		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Marayong)')
		select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Record:'))
		select('Table', 'cell:' + commonBits.fl('Data') + ',5(Marayong)')
		rightclick('Table', commonBits.fl('Data') + ',6')
		select_menu(commonBits.fl('Show ams Store Fields') + '>>Brand Id')
		assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5052, 5052], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Eastwood, Eastwood], [Loc Addr Ln1, 45, 40, Marayong Offsite Reserve, Marayong Offsite Reserve], [Loc Addr Ln2, 85, 40, 11 Melissa Place, 11 Melissa Place], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table', 'cell:4 - 4|Loc Nbr,0(5839)')
	close()
Exemple #57
0
def test():

    set_java_recorded_version("1.6.0_22")
    if frame(' - Open File:0'):
        select('File', commonBits.sampleDir() + 'DTAR020_tst1.bin')
        click('Edit')
    close()

    if window('Protocol Buffer Editor'):
        ##        click('SaveAs')

        select_menu('File>>Export')

        if frame('Export - DTAR020_tst1.bin:0'):
            #            select('JTabbedPane_16', 'Fixed')
            select('File Name_2', 'Fixed')
            select('Edit Output File', 'true')
            select('names on first line', 'true')
            select('space between fields', 'true')
            select('Keep screen open', 'true')
            #            assert_content('JTable_27', [ ['Keycode_no', 'true', '10'],
            #['Store_No', 'true', '8'],
            assert_content(
                'JTable_24',
                [['Keycode_no', 'true', '10'], ['Store_No', 'true', '8'],
                 ['DATE', 'true', '5'], ['Dept_No', 'true', '7'],
                 ['Qty_Sold', 'true', '8'], ['Sale_Price', 'true', '10']])
            ##            select('JTable_27', 'false', '{2, Include}')
            ##            select('JTable_27', 'false', '{4, Include}')
            ##            select('JTable_27', 'rows:[4],columns:[Include]')
            ##            assert_content('JTable_27', [ ['Keycode_no', 'true', '10'],
            ##['Store_No', 'true', '8'],
            select('JTable_24', 'false', '{2, Include}')
            select('JTable_24', 'false', '{4, Include}')
            select('JTable_24', 'rows:[4],columns:[Include]')
            assert_content(
                'JTable_24',
                [['Keycode_no', 'true', '10'], ['Store_No', 'true', '8'],
                 ['DATE', 'false', '5'], ['Dept_No', 'true', '7'],
                 ['Qty_Sold', 'false', '8'], ['Sale_Price', 'true', '10']])
            ##            select('JTable_27', 'rows:[4],columns:[Include]')
            select('JTable_24', 'rows:[4],columns:[Include]')
            click('save file')
##          select('JTable_27', 'rows:[4],columns:[Include]')
        close()

        if frame('Table:  - DTAR020_tst1.bin.txt:0'):
            assert_content(
                'JTable_22',
                [['Keycode_no', 'Store_No', 'Dept_No', 'Sale_Price'],
                 ['  63604808', '      20', '    170', '      4870'],
                 ['  69684558', '      20', '    280', '     19000'],
                 ['  69684558', '      20', '    280', '    -19000'],
                 ['  69694158', '      20', '    280', '      5010'],
                 ['  62684671', '      20', '    685', '     69990'],
                 ['  62684671', '      20', '    685', '    -69990'],
                 ['  61664713', '      59', '    335', '     17990'],
                 ['  61664713', '      59', '    335', '    -17990'],
                 ['  61684613', '      59', '    335', '     12990'],
                 ['  68634752', '      59', '    410', '      8990'],
                 ['  60694698', '      59', '    620', '      3990'],
                 ['  60664659', '      59', '    620', '      3990'],
                 ['  60614487', '      59', '    878', '      5950'],
                 ['  68654655', '     166', '     60', '      5080'],
                 ['  69624033', '     166', '     80', '     18190'],
                 ['  60604100', '     166', '     80', '     13300'],
                 ['  68674560', '     166', '    170', '      5990']])
            select('JTable_22', 'rows:[0],columns:[12 - 8|Store_No]')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '29 - 10|Sale_Price', '29 - 10|Sale_Price')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '21 - 7|Dept_No', '21 - 7|Dept_No')
            ##            assert_content('net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27', [ ['1 - 10|Keycode_no', '12 - 8|Store_No', '21 - 7|DATE', '29 - 10|Qty_Sold']
            ##])
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '1 - 10|Keycode_no', '1 - 10|Keycode_no')
            select('Layouts', 'Full Line')
            assert_content('JTable_22',
                           [['Keycode_no Store_No Dept_No Sale_Price'],
                            ['  63604808       20     170       4870'],
                            ['  69684558       20     280      19000'],
                            ['  69684558       20     280     -19000'],
                            ['  69694158       20     280       5010'],
                            ['  62684671       20     685      69990'],
                            ['  62684671       20     685     -69990'],
                            ['  61664713       59     335      17990'],
                            ['  61664713       59     335     -17990'],
                            ['  61684613       59     335      12990'],
                            ['  68634752       59     410       8990'],
                            ['  60694698       59     620       3990'],
                            ['  60664659       59     620       3990'],
                            ['  60614487       59     878       5950'],
                            ['  68654655      166      60       5080'],
                            ['  69624033      166      80      18190'],
                            ['  60604100      166      80      13300'],
                            ['  68674560      166     170       5990']])
            click('Close')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('space between fields', 'false')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.txt:0'):
            assert_content(
                'JTable_22',
                [['Keycode_no', 'Store_No', 'Dept_No', 'Sale_Price'],
                 ['  63604808', '      20', '    170', '      4870'],
                 ['  69684558', '      20', '    280', '     19000'],
                 ['  69684558', '      20', '    280', '    -19000'],
                 ['  69694158', '      20', '    280', '      5010'],
                 ['  62684671', '      20', '    685', '     69990'],
                 ['  62684671', '      20', '    685', '    -69990'],
                 ['  61664713', '      59', '    335', '     17990'],
                 ['  61664713', '      59', '    335', '    -17990'],
                 ['  61684613', '      59', '    335', '     12990'],
                 ['  68634752', '      59', '    410', '      8990'],
                 ['  60694698', '      59', '    620', '      3990'],
                 ['  60664659', '      59', '    620', '      3990'],
                 ['  60614487', '      59', '    878', '      5950'],
                 ['  68654655', '     166', '     60', '      5080'],
                 ['  69624033', '     166', '     80', '     18190'],
                 ['  60604100', '     166', '     80', '     13300'],
                 ['  68674560', '     166', '    170', '      5990']])
            select('JTable_22', 'rows:[0],columns:[11 - 8|Store_No]')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '26 - 10|Sale_Price', '26 - 10|Sale_Price')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '19 - 7|Dept_No', '19 - 7|Dept_No')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '11 - 8|Store_No', '11 - 8|Store_No')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '1 - 10|Keycode_no', '1 - 10|Keycode_no')
            select('Layouts', 'Full Line')
            assert_content('JTable_22',
                           [['Keycode_noStore_NoDept_NoSale_Price'],
                            ['  63604808      20    170      4870'],
                            ['  69684558      20    280     19000'],
                            ['  69684558      20    280    -19000'],
                            ['  69694158      20    280      5010'],
                            ['  62684671      20    685     69990'],
                            ['  62684671      20    685    -69990'],
                            ['  61664713      59    335     17990'],
                            ['  61664713      59    335    -17990'],
                            ['  61684613      59    335     12990'],
                            ['  68634752      59    410      8990'],
                            ['  60694698      59    620      3990'],
                            ['  60664659      59    620      3990'],
                            ['  60614487      59    878      5950'],
                            ['  68654655     166     60      5080'],
                            ['  69624033     166     80     18190'],
                            ['  60604100     166     80     13300'],
                            ['  68674560     166    170      5990']])
            click('Close')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('names on first line', 'false')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.txt:0'):
            select('JTable_22', 'rows:[7],columns:[11 - 8|Store_No]')
            assert_content(
                'JTable_22',
                [['  63604808', '      20', '    170', '      4870'],
                 ['  69684558', '      20', '    280', '     19000'],
                 ['  69684558', '      20', '    280', '    -19000'],
                 ['  69694158', '      20', '    280', '      5010'],
                 ['  62684671', '      20', '    685', '     69990'],
                 ['  62684671', '      20', '    685', '    -69990'],
                 ['  61664713', '      59', '    335', '     17990'],
                 ['  61664713', '      59', '    335', '    -17990'],
                 ['  61684613', '      59', '    335', '     12990'],
                 ['  68634752', '      59', '    410', '      8990'],
                 ['  60694698', '      59', '    620', '      3990'],
                 ['  60664659', '      59', '    620', '      3990'],
                 ['  60614487', '      59', '    878', '      5950'],
                 ['  68654655', '     166', '     60', '      5080'],
                 ['  69624033', '     166', '     80', '     18190'],
                 ['  60604100', '     166', '     80', '     13300'],
                 ['  68674560', '     166', '    170', '      5990']])
            select('JTable_22', 'rows:[7],columns:[11 - 8|Store_No]')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '26 - 10|Sale_Price', '26 - 10|Sale_Price')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '19 - 7|Dept_No', '19 - 7|Dept_No')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '11 - 8|Store_No', '11 - 8|Store_No')
            select('Layouts', 'Full Line')
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            assert_content('JTable_22',
                           [['  63604808      20    170      4870'],
                            ['  69684558      20    280     19000'],
                            ['  69684558      20    280    -19000'],
                            ['  69694158      20    280      5010'],
                            ['  62684671      20    685     69990'],
                            ['  62684671      20    685    -69990'],
                            ['  61664713      59    335     17990'],
                            ['  61664713      59    335    -17990'],
                            ['  61684613      59    335     12990'],
                            ['  68634752      59    410      8990'],
                            ['  60694698      59    620      3990'],
                            ['  60664659      59    620      3990'],
                            ['  60614487      59    878      5950'],
                            ['  68654655     166     60      5080'],
                            ['  69624033     166     80     18190'],
                            ['  60604100     166     80     13300'],
                            ['  68674560     166    170      5990']])
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            click('Close')
##            select('JTable_22', '', '{6, Full Line}')
##            select('JTable_22', 'rows:[6],columns:[Full Line]')
        close()

        if frame('Export - DTAR020_tst1.bin:0'):
            select('space between fields', 'true')
            click('save file')
        close()

        if frame('Table:  - DTAR020_tst1.bin.txt:0'):
            select('JTable_22', 'rows:[6],columns:[12 - 8|Store_No]')
            select('JTable_22', 'rows:[6],columns:[12 - 8|Store_No]')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '29 - 10|Sale_Price', '29 - 10|Sale_Price')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '21 - 7|Dept_No', '21 - 7|Dept_No')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '12 - 8|Store_No', '12 - 8|Store_No')
            assert_p(
                'net.sf.RecordEditor.edit.display.BaseDisplay$HeaderToolTips_27',
                'Text', '1 - 10|Keycode_no', '1 - 10|Keycode_no')
            select('Layouts', 'Full Line')
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            assert_content('JTable_22',
                           [['  63604808       20     170       4870'],
                            ['  69684558       20     280      19000'],
                            ['  69684558       20     280     -19000'],
                            ['  69694158       20     280       5010'],
                            ['  62684671       20     685      69990'],
                            ['  62684671       20     685     -69990'],
                            ['  61664713       59     335      17990'],
                            ['  61664713       59     335     -17990'],
                            ['  61684613       59     335      12990'],
                            ['  68634752       59     410       8990'],
                            ['  60694698       59     620       3990'],
                            ['  60664659       59     620       3990'],
                            ['  60614487       59     878       5950'],
                            ['  68654655      166      60       5080'],
                            ['  69624033      166      80      18190'],
                            ['  60604100      166      80      13300'],
                            ['  68674560      166     170       5990']])
            select('JTable_22', 'rows:[6],columns:[Full Line]')
            click('Close')
##            select('JTable_22', '', '{6, Full Line}')
##            select('JTable_22', 'rows:[6],columns:[Full Line]')
        close()

##        window_closed('Record Editor')
    close()

    pass
Exemple #58
0
def test():
	import time
	from Modules import commonBits
	java_recorded_version = '1.6.0_22'

	java_recorded_version = '1.6.0_22'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() + 'csv2DTAR020_tst1.bin.csv')
		select('ComboBox2', 'Comma Delimited, names on the first line')
		click('Edit1')
		click('Filter1')
		select('Table1', 'cell:Field,0(null)')
		select('Table1', 'SALE-PRICE', 'Field,0')
		select('Table1', '<', 'Operator,0')
		select('Table1', '5.99', 'Value,0')
		select('Table1', 'STORE-NO', 'Field,1')
		select('Table1', '20', 'Value,1')
		select('Table1', 'cell:Value,2()')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,2()')
		click('Filter1')
		assert_p('Table', 'Content', '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, -1, -69.99]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table1', 'cell:Value,2()')
		rightclick('Table1', 'And,1')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [Or, , STORE-NO, true, Contains, 20], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		click('Filter1')
		assert_p('Table', 'Content', '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [60614487, 59, 40118, 878, 1, 5.95], [68654655, 166, 40118, 60, 1, 5.08], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table1', 'cell:Value,2()')
		rightclick('Table1', 'And,1')
		select('Table1', 'cell:Field,2(null)')
		select('Table1', 'SALE-PRICE', 'Field,2')
		select('Table1', 'STORE-NO', 'Field,3')
##		select('Table1', 'cell:Field,3(STORE-NO)')


		time.sleep(0.1)

		select('Table1', '5', 'Value,3')
		select('Table1', '>', 'Operator,2')
		select('Table1', '5.99', 'Value,2')
		select('Table1', 'cell:Value,3(5)')

		rightclick('Table1', 'And,2')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,3(5)')
		click('Filter1')
		assert_p('Table', 'Content', '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, -1, -69.99], [68634752, 59, 40118, 410, 1, 8.99]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,3')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [Or, , STORE-NO, true, Contains, 5], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,3')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,1')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [Or, , STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,2')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [Or, , STORE-NO, true, Contains, 20], [, And, SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,2')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,1')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,3(5)')
		rightclick('Table1', 'And,4')
		select('Table1', 'cell:Field,4(null)')
		select('Table1', 'STORE-NO', 'Field,4')
		select('Table1', 'SALE-PRICE', 'Field,5')
		select('Table1', '166', 'Value,4')
		select('Table1', '<', 'Operator,5')
		select('Table1', '5.99', 'Value,5')
		select('Table1', 'cell:Value,6()')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [Or, , STORE-NO, true, Contains, 166], [, And, SALE-PRICE, true, <, 5.99], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,6()')
		click('Filter1')
		select('Table', 'cell:5|QTY-SOLD,6(1)')
		assert_p('Table', 'Content', '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, -1, -69.99], [68634752, 59, 40118, 410, 1, 8.99], [68654655, 166, 40118, 60, 1, 5.08], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30]]')
		select('Table', 'cell:5|QTY-SOLD,6(1)')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('Table1', 'cell:Value,6()')
		rightclick('Table1', 'And,6')
		select('Table1', 'cell:Field,6(null)')
		select('Table1', 'KEYCODE-NO', 'Field,6')
		select('Table1', 'Starts With', 'Operator,6')
		select('Table1', '6', 'Value,6')
		select('Table1', 'cell:Value,7()')
		click('Filter1')
		assert_p('Table', 'Content', '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [68634752, 59, 40118, 410, 1, 8.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [60614487, 59, 40118, 878, 1, 5.95], [68654655, 166, 40118, 60, 1, 5.08], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30], [68674560, 166, 40118, 170, 1, 5.99]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [Or, , STORE-NO, true, Contains, 166], [, And, SALE-PRICE, true, <, 5.99], [Or, , KEYCODE-NO, true, Starts With, 6], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', '61', 'Value,6')
		select('Table1', 'cell:Value,5(5.99)')
		assert_p('Table1', 'Content', '[[, , SALE-PRICE, true, <, 5.99], [, And, STORE-NO, true, Contains, 20], [Or, , SALE-PRICE, true, >, 5.99], [, And, STORE-NO, true, Contains, 5], [Or, , STORE-NO, true, Contains, 166], [, And, SALE-PRICE, true, <, 5.99], [Or, , KEYCODE-NO, true, Starts With, 61], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]')
		select('Table1', 'cell:Value,5(5.99)')
		click('Filter1')
		assert_p('Table', 'Content', '[[63604808, 20, 40118, 170, 1, 4.87], [69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [62684671, 20, 40118, 685, -1, -69.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [68634752, 59, 40118, 410, 1, 8.99], [68654655, 166, 40118, 60, 1, 5.08], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
Exemple #59
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_20'

    if window('Record Editor'):
        select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin')
        click(commonBits.fl('Edit') + '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], [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], [63634260, 166, 40118, 320, 1, 5.59], [64684534, 166, 40118, 440, 1, 14.99], [64674965, 166, 40118, 235, 1, 19.99], [64674965, 166, 40118, 235, -1, -19.99], [64674965, 166, 40118, 235, 1, 12.00], [60624523, 166, 40118, 261, 1, 12.00], [66624253, 166, 40118, 957, 1, 3.49], [66624253, 166, 40118, 957, 1, 3.49], [64654284, 166, 40118, 957, 1, 3.99], [60684907, 166, 40118, 805, 1, 5.50], [63624299, 166, 40118, 870, 1, 10.99], [63624367, 166, 40118, 870, 1, 11.19], [62694575, 166, 40118, 475, 1, 14.99], [69614011, 166, 40118, 905, 1, 6.99], [62634996, 166, 40118, 650, 1, 9.99], [67634503, 166, 40118, 970, 1, 24.99], [65604476, 166, 40118, 830, 1, 19.95], [62694170, 166, 40118, 851, 1, 16.99], [63684098, 166, 40118, 410, 1, 1.98], [63684098, 166, 40118, 410, 1, 1.98], [63684098, 166, 40118, 410, 1, 1.98], [64674609, 166, 40118, 485, 1, 29.99], [62614014, 166, 40118, 366, 1, 14.99], [61694741, 166, 40118, 432, 1, 9.06], [62614534, 166, 40118, 432, 1, 9.09], [64604876, 166, 40118, 801, 1, 29.62], [66624829, 166, 40118, 957, 1, 1.99], [62694843, 166, 40118, 193, 1, 13.59], [62684580, 166, 40118, 265, 1, 19.00], [62664909, 166, 40118, 957, 1, 3.29], [62674751, 166, 40118, 957, 1, 1.99], [62674492, 166, 40118, 957, 1, 1.49], [62674492, 166, 40118, 957, 1, 1.49], [62694706, 166, 40118, 193, 1, 13.59], [69644602, 166, 40118, 265, 1, 19.00], [63634768, 166, 40118, 270, 1, 12.00], [62684207, 166, 40118, 265, 1, 19.00], [69644961, 166, 40118, 230, 1, 9.60], [69604743, 166, 40118, 250, 1, 29.95], [63634081, 166, 40118, 929, 1, 3.89], [69614229, 166, 40118, 902, 1, 15.95], [62654454, 166, 40118, 845, 1, 5.95], [64634712, 166, 40118, 845, 1, 3.90], [62674092, 166, 40118, 851, 1, 15.99], [67664966, 166, 40118, 929, 1, 0.89], [67664966, 166, 40118, 929, 1, 0.89], [64674633, 166, 40118, 220, 1, 15.99], [64624081, 166, 40118, 280, 1, 26.24], [69674069, 166, 40118, 910, 1, 10.49], [62684028, 166, 40118, 520, 1, 29.99], [64604876, 166, 40118, 801, 1, 29.62], [68644966, 166, 40118, 902, 1, 12.50], [68644966, 166, 40118, 902, -1, -12.50], [68644966, 166, 40118, 902, 1, 0.01], [62664347, 166, 40118, 370, 1, 8.99], [62664231, 166, 40118, 370, 1, 8.99], [62694605, 166, 40118, 261, 1, 25.00], [69634922, 166, 40118, 261, 1, 19.00], [63694928, 166, 40118, 904, 1, 11.49], [60624185, 166, 40118, 500, 1, 8.99], [60624314, 166, 40118, 500, 1, 8.99], [69694959, 166, 40118, 270, 1, 11.99], [69624033, 166, 40118, 80, 1, 18.19], [62694485, 166, 40118, 193, 1, 17.56], [60614646, 166, 40118, 60, 1, 6.00], [63654066, 166, 40118, 275, 1, 24.99], [62684548, 166, 40118, 415, 1, 39.99], [62684548, 166, 40118, 415, 1, 39.99], [69694685, 166, 40118, 360, 1, 6.99], [63614741, 166, 40118, 395, 1, 27.99], [60664302, 166, 40118, 270, 1, 9.00], [60664241, 166, 40118, 270, 1, 9.00], [66674979, 166, 40118, 360, 1, 4.50], [62634862, 166, 40118, 355, 1, 11.89], [62604139, 166, 40118, 335, 1, 7.99], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, -1, -18.98], [69694937, 166, 40118, 360, 1, 2.50], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, -1, -18.98], [62624382, 166, 40118, 370, -1, -18.98], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, 1, 18.98], [61684889, 166, 40118, 685, 1, 4.49], [68614651, 166, 40118, 370, 1, 3.99], [62664674, 166, 40118, 471, 1, 24.99], [61684889, 166, 40118, 685, 1, 4.49], [60694417, 166, 40118, 929, 1, 0.65], [65694328, 166, 40118, 929, 1, 0.59], [63684449, 166, 40118, 320, 1, 16.99], [62614815, 166, 40118, 405, 1, 20.00], [62664151, 166, 40118, 455, 1, 25.00], [64684719, 166, 40118, 410, 1, 9.99], [69654084, 166, 40118, 60, 1, 6.00], [69644897, 166, 40118, 60, 1, 5.08], [68654655, 166, 40118, 60, 1, 5.08], [68674560, 166, 40118, 170, 1, 5.99], [62694387, 166, 40118, 432, 1, 7.99], [62664568, 166, 40118, 432, 1, 5.99], [69634261, 166, 40118, 261, 1, 12.00], [69634660, 166, 40118, 261, 1, 12.00], [69684947, 166, 40118, 280, 1, 22.49], [60654072, 166, 40118, 905, 1, 4.33], [60654072, 166, 40118, 905, 1, 4.33], [69624221, 166, 40118, 355, 1, 16.99], [62654800, 166, 40118, 355, 1, 19.99], [64644495, 166, 40118, 801, 1, 29.65], [67664645, 166, 40118, 929, 1, 1.39], [60614265, 166, 40118, 395, 1, 15.99], [68604583, 166, 40118, 905, 1, 15.99], [60614265, 166, 40118, 395, 1, 15.99], [60614265, 166, 40118, 395, -1, -15.99], [60614265, 166, 40118, 395, -1, -15.99], [68604583, 166, 40118, 905, -1, -15.99], [68604583, 166, 40118, 905, 1, 15.99], [68604583, 166, 40118, 905, -1, -15.99], [68604583, 166, 40118, 905, 1, 12.80], [60614265, 166, 40118, 395, 1, 15.99], [60614265, 166, 40118, 395, -1, -15.99], [60614265, 166, 40118, 395, 1, 12.80], [69664661, 166, 40118, 904, 1, 14.95], [68664211, 166, 40118, 193, 1, 11.19], [60614707, 166, 40118, 60, 1, 6.00], [64604513, 166, 40118, 235, 1, 16.99], [60624864, 166, 40118, 261, 1, 15.00], [69644909, 166, 40118, 261, 1, 9.00], [60604100, 166, 40118, 80, 1, 13.30], [69634263, 166, 40118, 261, 1, 25.00], [69634263, 166, 40118, 261, -1, -25.00], [69634263, 166, 40118, 261, 1, 12.00], [61674701, 166, 40118, 670, 1, 3.99], [63654007, 166, 40118, 670, 1, 56.99], [67624103, 166, 40118, 801, 1, 16.50], [68614329, 166, 40118, 905, 1, 39.99], [67644384, 166, 40118, 193, 1, 23.96], [64644495, 166, 40118, 801, 1, 29.65], [60684484, 184, 40118, 220, 1, 9.00], [60684484, 184, 40118, 220, 1, 9.00], [67674299, 184, 40118, 905, 1, 4.99], [69664620, 184, 40118, 355, 1, 11.89], [69664620, 184, 40118, 355, -1, -11.89], [69664620, 184, 40118, 355, 1, 9.09], [60674210, 184, 40118, 275, -1, -15.00], [60664048, 184, 40118, 60, -1, -4.80], [60614866, 184, 40118, 60, -1, -4.80], [60664048, 184, 40118, 60, -1, -4.80], [60664048, 184, 40118, 60, -1, -4.80], [60614866, 184, 40118, 60, -1, -4.80], [69654081, 184, 40118, 70, 1, 12.99], [63664643, 184, 40118, 193, 1, 16.79], [69654135, 184, 40118, 70, 1, 12.99], [60644672, 184, 40118, 160, 1, 9.09], [62654852, 184, 40118, 345, -1, -19.59], [62674960, 184, 40118, 490, -1, -16.00], [62674960, 184, 40118, 490, 1, 16.00], [65674126, 184, 40118, 929, 1, 2.69], [60634192, 184, 40118, 500, 1, 24.99], [64634500, 184, 40118, 957, -1, -9.99], [66624803, 184, 40118, 170, 1, 2.00], [66624803, 184, 40118, 170, -1, -2.00], [66624803, 184, 40118, 170, 1, 1.04], [66624889, 184, 40118, 170, 1, 2.00], [66624889, 184, 40118, 170, -1, -2.00], [66624889, 184, 40118, 170, 1, 1.04], [60624241, 184, 40118, 500, 1, 34.99], [62644079, 184, 40118, 650, 1, 9.99], [62664183, 184, 40118, 320, -1, -20.99], [64654047, 184, 40118, 320, -1, -25.99], [62694327, 184, 40118, 375, -1, -10.39], [69604894, 184, 40118, 275, -1, -19.00], [67644821, 184, 40118, 60, -1, -14.99], [67644118, 184, 40118, 60, 1, 16.99], [66664981, 184, 40118, 901, 1, 3.09], [66684899, 184, 40118, 901, 1, 12.99], [64634942, 184, 40118, 270, 1, 15.99], [63654826, 184, 40118, 275, 1, 19.00], [69604993, 184, 40118, 220, -1, -14.39], [63624118, 184, 40118, 250, -1, -15.00], [62684517, 184, 40118, 475, -1, -29.99], [67634503, 184, 40118, 970, 1, 24.99], [62694782, 184, 40118, 193, -1, -16.99], [62694683, 184, 40118, 193, -1, -16.99], [62694782, 184, 40118, 193, -1, -16.99], [62694782, 184, 40118, 193, -1, -16.99], [62684096, 184, 40118, 310, 1, 14.00], [69644199, 184, 40118, 193, 1, 19.19], [60634366, 184, 40118, 904, 1, 7.99], [67654448, 184, 40118, 70, 1, 23.00], [67654448, 184, 40118, 70, -1, -23.00], [67654448, 184, 40118, 70, 1, 19.01], [69654459, 184, 40118, 60, 1, 5.08], [60664779, 184, 40118, 60, 1, 5.08], [63674002, 184, 40118, 310, -1, -29.99], [68604041, 184, 40118, 870, -1, -19.99], [67634503, 184, 40118, 970, 1, 24.99], [68644941, 184, 40118, 60, -1, -10.39], [68644941, 184, 40118, 60, -1, -10.39], [68644941, 184, 40118, 60, -1, -10.39], [68644941, 184, 40118, 60, -1, -10.39], [68644934, 184, 40118, 60, 1, 10.39], [62674884, 184, 40118, 350, -1, -8.99], [68654381, 184, 40118, 235, 1, 14.95], [64644433, 184, 40118, 801, 1, 24.99], [64604829, 184, 40118, 805, -1, -29.99], [62634996, 184, 40118, 650, 1, 9.99], [60624270, 184, 40118, 670, 1, 0.95], [63664932, 184, 40118, 929, 1, 1.59], [69684804, 184, 40118, 851, 1, 9.99], [68664363, 184, 40118, 415, -1, -29.95], [62694503, 184, 40118, 929, 1, 2.99], [62644205, 184, 40118, 590, 1, 24.99], [62604912, 184, 40118, 590, 1, 24.89], [64634802, 184, 40118, 904, 1, 4.29], [60664257, 184, 40118, 901, 1, 2.12], [62684043, 184, 40118, 878, -1, -19.95], [62684043, 184, 40118, 878, 1, 19.95], [64644860, 184, 40118, 805, -1, -3.95], [62644590, 184, 40118, 590, -1, -22.99], [64664587, 184, 40118, 432, -1, -16.99], [64604930, 184, 40118, 801, -1, -35.95], [60604880, 184, 40118, 250, 1, 9.00], [68674372, 184, 40118, 845, 1, 2.00], [63684755, 184, 40118, 845, 1, 2.00], [64684439, 184, 40118, 929, 1, 9.99], [67624120, 184, 40118, 940, 1, 0.98], [67624120, 184, 40118, 940, -1, -0.98], [67624120, 184, 40118, 940, 1, 0.49], [67624120, 184, 40118, 940, 1, 0.98], [67624120, 184, 40118, 940, -1, -0.98], [67624120, 184, 40118, 940, 1, 0.49], [66614192, 184, 40118, 940, 1, 1.23], [66614192, 184, 40118, 940, -1, -1.23], [66614192, 184, 40118, 940, 1, 0.69], [66614192, 184, 40118, 940, 1, 1.23], [66614192, 184, 40118, 940, -1, -1.23], [66614192, 184, 40118, 940, 1, 0.69], [67624473, 184, 40118, 940, 1, 0.50], [67624473, 184, 40118, 940, -1, -0.50], [67624473, 184, 40118, 940, 1, 0.19], [67614923, 184, 40118, 875, -1, -19.95], [63604715, 184, 40118, 432, -1, -6.99], [63604715, 184, 40118, 432, -1, -6.99], [63604715, 184, 40118, 432, -1, -6.99], [62684102, 184, 40118, 310, 1, 14.00], [63654091, 184, 40118, 805, 1, 4.95], [68694729, 184, 40118, 855, -1, -16.99], [60684563, 184, 40118, 220, 1, 9.59], [68664957, 184, 40118, 80, 1, 13.99], [67604116, 184, 40118, 801, 1, 21.00], [64664047, 184, 40118, 801, 1, 22.99], [67634497, 184, 40118, 970, 1, 24.99], [64664270, 184, 40118, 929, 1, 3.19], [60634150, 184, 40118, 160, -1, -14.99], [68684135, 184, 40118, 878, -1, -249.00], [68684135, 184, 40118, 878, 1, 269.00], [68684135, 184, 40118, 878, -1, -269.00], [68684135, 184, 40118, 878, 1, 249.00], [69624909, 184, 40118, 235, -1, -26.21], [62634962, 184, 40118, 530, -1, -6.89], [67614726, 184, 40118, 160, -1, -9.95], [68654094, 184, 40118, 170, -1, -4.50], [60674335, 184, 40118, 485, 1, 19.95], [60674335, 184, 40118, 485, -1, -19.95], [60674335, 184, 40118, 485, 1, 12.99], [60644305, 184, 40118, 929, 1, 0.89], [64604604, 184, 40118, 366, 1, 6.99], [63694367, 184, 40118, 290, 1, 19.00], [62644079, 184, 40118, 650, 1, 9.99], [67674119, 184, 40118, 929, 1, 1.89], [69614627, 184, 40118, 265, 1, 19.00], [69614740, 184, 40118, 265, 1, 19.00], [60614135, 184, 40118, 230, -1, -14.25], [69674452, 184, 40118, 970, 1, 19.99], [62694272, 184, 40118, 957, 1, 2.49], [69614274, 184, 40118, 902, 1, 9.95], [60634379, 184, 40118, 290, 1, 25.00], [60674904, 184, 40118, 261, 1, 19.00], [66614582, 184, 40118, 670, -1, -15.99], [64654096, 184, 40118, 805, 1, 4.95], [62634605, 184, 40118, 405, 1, 29.99], [69694354, 184, 40118, 929, 1, 2.99], [69634699, 184, 40118, 80, 1, 20.99], [69634712, 184, 40118, 80, 1, 20.99], [69664171, 184, 40118, 250, -1, -27.95], [69694479, 184, 40118, 280, 1, 14.99], [63634656, 184, 40118, 929, -1, -5.50], [69664149, 184, 40118, 903, -1, -5.99], [69664163, 184, 40118, 903, -1, -1.39], [67674341, 184, 40118, 901, -1, -19.95], [69644053, 184, 40118, 230, 1, 18.74], [63674184, 184, 40118, 957, 1, 164.00], [62604338, 184, 40118, 870, 1, 69.99], [62644344, 184, 40118, 432, 1, 10.99], [66644706, 184, 40118, 432, 1, 10.99], [62644528, 184, 40118, 432, 1, 10.99], [62644764, 184, 40118, 432, 1, 10.99], [62664135, 184, 40118, 405, 1, 11.00], [62664244, 184, 40118, 405, 1, 11.00], [62664197, 184, 40118, 405, 1, 11.00], [62654875, 184, 40118, 471, 1, 39.99], [64614653, 184, 40118, 265, 1, 34.99], [64614653, 184, 40118, 265, 1, 34.99], [61694023, 184, 40118, 650, 1, 14.99], [61694023, 184, 40118, 650, 1, 14.99], [60694909, 184, 40118, 998, 1, 2.00], [68614241, 184, 40118, 70, 1, 12.99], [69654638, 184, 40118, 60, 1, 6.00], [67634923, 184, 40118, 60, 1, 17.59], [64614285, 184, 40118, 70, 1, 22.99], [69644389, 184, 40118, 193, 1, 17.59], [68614787, 184, 40118, 70, 1, 27.99], [69644337, 184, 40118, 70, 1, 29.99], [68634061, 184, 40118, 70, 1, 27.99], [69644184, 184, 40118, 193, 1, 15.99], [63624756, 184, 40118, 801, 1, 21.00], [67604116, 184, 40118, 801, 1, 21.00], [68654451, 184, 40118, 193, 1, 27.99], [62614172, 184, 40118, 193, 1, 19.19], [61614174, 184, 40118, 620, 1, 49.99], [61614174, 184, 40118, 620, 1, 29.99], [62644445, 184, 40118, 801, 1, 69.95], [62634323, 184, 40118, 905, 1, 149.00], [66674079, 184, 40118, 901, 1, 3.95], [66674130, 184, 40118, 901, 1, 3.95], [61604095, 184, 40118, 902, 1, 12.50], [66664028, 184, 40118, 902, 1, 14.95], [68654621, 184, 40118, 902, 1, 12.95], [63694264, 184, 40118, 830, 1, 19.95], [63604361, 184, 40118, 901, 1, 3.99], [62634259, 184, 40118, 901, 1, 6.69], [62634259, 184, 40118, 901, 1, 6.69], [60684429, 184, 40118, 904, 1, 4.89], [60684037, 184, 40118, 904, 1, 9.95], [69694875, 184, 40118, 904, 1, 19.95], [69694875, 184, 40118, 904, 1, 19.95], [69694875, 184, 40118, 904, 1, 19.95], [69694875, 184, 40118, 904, -1, -19.95], [69694875, 184, 40118, 904, -1, -19.95], [69694875, 184, 40118, 904, -1, -19.95], [63604108, 184, 40118, 901, 1, 3.95], [63694928, 184, 40118, 904, 1, 11.49], [60634765, 184, 40118, 904, 1, 4.99], [69664668, 184, 40118, 903, 1, 8.95]]'
        )
        select(
            'Table',
            'rows:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],columns:[9 - 2|STORE-NO]'
        )
        select_menu(
            commonBits.fl('View') + '>>' +
            commonBits.fl('Table View #{Selected Records#}'))
        ##		select('Table2', 'rows:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],columns:[9 - 2|STORE-NO]')
        select_menu(
            commonBits.fl('Window') + '>>DTAR020.bin>>' +
            commonBits.fl('Table:'))
        ##		select('Table', 'rows:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],columns:[9 - 2|STORE-NO]')
        select(
            'Table',
            'rows:[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],columns:[9 - 2|STORE-NO,11 - 4|DATE]'
        )
        select_menu(
            commonBits.fl('View') + '>>' +
            commonBits.fl('Table View #{Selected Records#}'))
        ##		select('Table2', 'rows:[18,19,20,21,22,23,24,25,26,27,28,29,30,31],columns:[9 - 2|STORE-NO,11 - 4|DATE]')
        assert_p(
            'Table', 'Content',
            '[[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], [62684907, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, -1, -13.99]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR020.bin>>' +
            commonBits.fl('Table:') + '1')
        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], [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]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR020.bin>>' +
            commonBits.fl('Table:'))
        select(
            'Table',
            'rows:[18,19,20,21,22,23,24,25,26,27,28,29,30,31],columns:[9 - 2|STORE-NO,11 - 4|DATE]'
        )
        select('Table', 'cell:9 - 2|STORE-NO,1(20)')
        rightclick('Table', '9 - 2|STORE-NO,1')
        select_menu('Sort')
        #		select('Table1', 'cell:9 - 2|STORE-NO,1(20)')
        #		select('List', 'DTAR020')
        #		select('List', 'DTAR020')
        select('Table', 'cell:' + commonBits.fl('Field') + ',0( )')
        #		select('List', 'DTAR020')
        select('Table', 'DEPT-NO', commonBits.fl('Field') + ',0')
        select('Table', 'STORE-NO', commonBits.fl('Field') + ',1')
        select('Table', 'cell:' + commonBits.fl('Field') + ',1(STORE-NO)')

        commonBits.sort(click)
        assert_p(
            'Table', 'Content',
            '[[60614646, 166, 40118, 60, 1, 6.00], [69654084, 166, 40118, 60, 1, 6.00], [69644897, 166, 40118, 60, 1, 5.08], [68654655, 166, 40118, 60, 1, 5.08], [60614707, 166, 40118, 60, 1, 6.00], [60664048, 184, 40118, 60, -1, -4.80], [60614866, 184, 40118, 60, -1, -4.80], [60664048, 184, 40118, 60, -1, -4.80], [60664048, 184, 40118, 60, -1, -4.80], [60614866, 184, 40118, 60, -1, -4.80], [67644821, 184, 40118, 60, -1, -14.99], [67644118, 184, 40118, 60, 1, 16.99], [69654459, 184, 40118, 60, 1, 5.08], [60664779, 184, 40118, 60, 1, 5.08], [68644941, 184, 40118, 60, -1, -10.39], [68644941, 184, 40118, 60, -1, -10.39], [68644941, 184, 40118, 60, -1, -10.39], [68644941, 184, 40118, 60, -1, -10.39], [68644934, 184, 40118, 60, 1, 10.39], [69654638, 184, 40118, 60, 1, 6.00], [67634923, 184, 40118, 60, 1, 17.59], [69654081, 184, 40118, 70, 1, 12.99], [69654135, 184, 40118, 70, 1, 12.99], [67654448, 184, 40118, 70, 1, 23.00], [67654448, 184, 40118, 70, -1, -23.00], [67654448, 184, 40118, 70, 1, 19.01], [68614241, 184, 40118, 70, 1, 12.99], [64614285, 184, 40118, 70, 1, 22.99], [68614787, 184, 40118, 70, 1, 27.99], [69644337, 184, 40118, 70, 1, 29.99], [68634061, 184, 40118, 70, 1, 27.99], [69624033, 166, 40118, 80, 1, 18.19], [60604100, 166, 40118, 80, 1, 13.30], [68664957, 184, 40118, 80, 1, 13.99], [69634699, 184, 40118, 80, 1, 20.99], [69634712, 184, 40118, 80, 1, 20.99], [60644672, 184, 40118, 160, 1, 9.09], [60634150, 184, 40118, 160, -1, -14.99], [67614726, 184, 40118, 160, -1, -9.95], [63604808, 20, 40118, 170, 1, 4.87], [68674560, 166, 40118, 170, 1, 5.99], [66624803, 184, 40118, 170, 1, 2.00], [66624803, 184, 40118, 170, -1, -2.00], [66624803, 184, 40118, 170, 1, 1.04], [66624889, 184, 40118, 170, 1, 2.00], [66624889, 184, 40118, 170, -1, -2.00], [66624889, 184, 40118, 170, 1, 1.04], [68654094, 184, 40118, 170, -1, -4.50], [69644164, 166, 40118, 193, 1, 21.59], [62694843, 166, 40118, 193, 1, 13.59], [62694706, 166, 40118, 193, 1, 13.59], [62694485, 166, 40118, 193, 1, 17.56], [68664211, 166, 40118, 193, 1, 11.19], [67644384, 166, 40118, 193, 1, 23.96], [63664643, 184, 40118, 193, 1, 16.79], [62694782, 184, 40118, 193, -1, -16.99], [62694683, 184, 40118, 193, -1, -16.99], [62694782, 184, 40118, 193, -1, -16.99], [62694782, 184, 40118, 193, -1, -16.99], [69644199, 184, 40118, 193, 1, 19.19], [69644389, 184, 40118, 193, 1, 17.59], [69644184, 184, 40118, 193, 1, 15.99], [68654451, 184, 40118, 193, 1, 27.99], [62614172, 184, 40118, 193, 1, 19.19], [64674633, 166, 40118, 220, 1, 15.99], [60684484, 184, 40118, 220, 1, 9.00], [60684484, 184, 40118, 220, 1, 9.00], [69604993, 184, 40118, 220, -1, -14.39], [60684563, 184, 40118, 220, 1, 9.59], [69644961, 166, 40118, 230, 1, 9.60], [60614135, 184, 40118, 230, -1, -14.25], [69644053, 184, 40118, 230, 1, 18.74], [64674965, 166, 40118, 235, 1, 19.99], [64674965, 166, 40118, 235, -1, -19.99], [64674965, 166, 40118, 235, 1, 12.00], [64604513, 166, 40118, 235, 1, 16.99], [68654381, 184, 40118, 235, 1, 14.95], [69624909, 184, 40118, 235, -1, -26.21], [69604743, 166, 40118, 250, 1, 29.95], [63624118, 184, 40118, 250, -1, -15.00], [60604880, 184, 40118, 250, 1, 9.00], [69664171, 184, 40118, 250, -1, -27.95], [60624523, 166, 40118, 261, 1, 12.00], [62694605, 166, 40118, 261, 1, 25.00], [69634922, 166, 40118, 261, 1, 19.00], [69634261, 166, 40118, 261, 1, 12.00], [69634660, 166, 40118, 261, 1, 12.00], [60624864, 166, 40118, 261, 1, 15.00], [69644909, 166, 40118, 261, 1, 9.00], [69634263, 166, 40118, 261, 1, 25.00], [69634263, 166, 40118, 261, -1, -25.00], [69634263, 166, 40118, 261, 1, 12.00], [60674904, 184, 40118, 261, 1, 19.00], [62684580, 166, 40118, 265, 1, 19.00], [69644602, 166, 40118, 265, 1, 19.00], [62684207, 166, 40118, 265, 1, 19.00], [69614627, 184, 40118, 265, 1, 19.00], [69614740, 184, 40118, 265, 1, 19.00], [64614653, 184, 40118, 265, 1, 34.99], [64614653, 184, 40118, 265, 1, 34.99], [63634768, 166, 40118, 270, 1, 12.00], [69694959, 166, 40118, 270, 1, 11.99], [60664302, 166, 40118, 270, 1, 9.00], [60664241, 166, 40118, 270, 1, 9.00], [64634942, 184, 40118, 270, 1, 15.99], [63654066, 166, 40118, 275, 1, 24.99], [60674210, 184, 40118, 275, -1, -15.00], [69604894, 184, 40118, 275, -1, -19.00], [63654826, 184, 40118, 275, 1, 19.00], [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], [64624081, 166, 40118, 280, 1, 26.24], [69684947, 166, 40118, 280, 1, 22.49], [69694479, 184, 40118, 280, 1, 14.99], [63694367, 184, 40118, 290, 1, 19.00], [60634379, 184, 40118, 290, 1, 25.00], [62684096, 184, 40118, 310, 1, 14.00], [63674002, 184, 40118, 310, -1, -29.99], [62684102, 184, 40118, 310, 1, 14.00], [63654450, 166, 40118, 320, 1, 13.99], [62664576, 166, 40118, 320, 1, 9.72], [63634260, 166, 40118, 320, 1, 5.59], [63684449, 166, 40118, 320, 1, 16.99], [62664183, 184, 40118, 320, -1, -20.99], [64654047, 184, 40118, 320, -1, -25.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [61684613, 59, 40118, 335, 1, 12.99], [62604139, 166, 40118, 335, 1, 7.99], [62654852, 184, 40118, 345, -1, -19.59], [62674884, 184, 40118, 350, -1, -8.99], [62634862, 166, 40118, 355, 1, 11.89], [69624221, 166, 40118, 355, 1, 16.99], [62654800, 166, 40118, 355, 1, 19.99], [69664620, 184, 40118, 355, 1, 11.89], [69664620, 184, 40118, 355, -1, -11.89], [69664620, 184, 40118, 355, 1, 9.09], [69694814, 166, 40118, 360, 1, 2.50], [69694814, 166, 40118, 360, 1, 2.50], [69694685, 166, 40118, 360, 1, 6.99], [66674979, 166, 40118, 360, 1, 4.50], [69694937, 166, 40118, 360, 1, 2.50], [62614014, 166, 40118, 366, 1, 14.99], [64604604, 184, 40118, 366, 1, 6.99], [62664347, 166, 40118, 370, 1, 8.99], [62664231, 166, 40118, 370, 1, 8.99], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, -1, -18.98], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, -1, -18.98], [62624382, 166, 40118, 370, -1, -18.98], [62624382, 166, 40118, 370, 1, 18.98], [62624382, 166, 40118, 370, 1, 18.98], [68614651, 166, 40118, 370, 1, 3.99], [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], [62694327, 184, 40118, 375, -1, -10.39], [63614741, 166, 40118, 395, 1, 27.99], [60614265, 166, 40118, 395, 1, 15.99], [60614265, 166, 40118, 395, 1, 15.99], [60614265, 166, 40118, 395, -1, -15.99], [60614265, 166, 40118, 395, -1, -15.99], [60614265, 166, 40118, 395, 1, 15.99], [60614265, 166, 40118, 395, -1, -15.99], [60614265, 166, 40118, 395, 1, 12.80], [62614815, 166, 40118, 405, 1, 20.00], [62634605, 184, 40118, 405, 1, 29.99], [62664135, 184, 40118, 405, 1, 11.00], [62664244, 184, 40118, 405, 1, 11.00], [62664197, 184, 40118, 405, 1, 11.00], [68634752, 59, 40118, 410, 1, 8.99], [63684098, 166, 40118, 410, 1, 1.98], [63684098, 166, 40118, 410, 1, 1.98], [63684098, 166, 40118, 410, 1, 1.98], [64684719, 166, 40118, 410, 1, 9.99], [62684548, 166, 40118, 415, 1, 39.99], [62684548, 166, 40118, 415, 1, 39.99], [68664363, 184, 40118, 415, -1, -29.95], [61694741, 166, 40118, 432, 1, 9.06], [62614534, 166, 40118, 432, 1, 9.09], [62694387, 166, 40118, 432, 1, 7.99], [62664568, 166, 40118, 432, 1, 5.99], [64664587, 184, 40118, 432, -1, -16.99], [63604715, 184, 40118, 432, -1, -6.99], [63604715, 184, 40118, 432, -1, -6.99], [63604715, 184, 40118, 432, -1, -6.99], [62644344, 184, 40118, 432, 1, 10.99], [66644706, 184, 40118, 432, 1, 10.99], [62644528, 184, 40118, 432, 1, 10.99], [62644764, 184, 40118, 432, 1, 10.99], [64684534, 166, 40118, 440, 1, 14.99], [62664151, 166, 40118, 455, 1, 25.00], [62664674, 166, 40118, 471, 1, 24.99], [62654875, 184, 40118, 471, 1, 39.99], [62694575, 166, 40118, 475, 1, 14.99], [62684517, 184, 40118, 475, -1, -29.99], [64674609, 166, 40118, 485, 1, 29.99], [60674335, 184, 40118, 485, 1, 19.95], [60674335, 184, 40118, 485, -1, -19.95], [60674335, 184, 40118, 485, 1, 12.99], [62674960, 184, 40118, 490, -1, -16.00], [62674960, 184, 40118, 490, 1, 16.00], [60624185, 166, 40118, 500, 1, 8.99], [60624314, 166, 40118, 500, 1, 8.99], [60634192, 184, 40118, 500, 1, 24.99], [60624241, 184, 40118, 500, 1, 34.99], [62684028, 166, 40118, 520, 1, 29.99], [62634962, 184, 40118, 530, -1, -6.89], [62644205, 184, 40118, 590, 1, 24.99], [62604912, 184, 40118, 590, 1, 24.89], [62644590, 184, 40118, 590, -1, -22.99], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [61614174, 184, 40118, 620, 1, 49.99], [61614174, 184, 40118, 620, 1, 29.99], [62634996, 166, 40118, 650, 1, 9.99], [62644079, 184, 40118, 650, 1, 9.99], [62634996, 184, 40118, 650, 1, 9.99], [62644079, 184, 40118, 650, 1, 9.99], [61694023, 184, 40118, 650, 1, 14.99], [61694023, 184, 40118, 650, 1, 14.99], [61674701, 166, 40118, 670, 1, 3.99], [63654007, 166, 40118, 670, 1, 56.99], [60624270, 184, 40118, 670, 1, 0.95], [66614582, 184, 40118, 670, -1, -15.99], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [61684889, 166, 40118, 685, 1, 4.49], [61684889, 166, 40118, 685, 1, 4.49], [64604876, 166, 40118, 801, 1, 29.62], [64604876, 166, 40118, 801, 1, 29.62], [64644495, 166, 40118, 801, 1, 29.65], [67624103, 166, 40118, 801, 1, 16.50], [64644495, 166, 40118, 801, 1, 29.65], [64644433, 184, 40118, 801, 1, 24.99], [64604930, 184, 40118, 801, -1, -35.95], [67604116, 184, 40118, 801, 1, 21.00], [64664047, 184, 40118, 801, 1, 22.99], [63624756, 184, 40118, 801, 1, 21.00], [67604116, 184, 40118, 801, 1, 21.00], [62644445, 184, 40118, 801, 1, 69.95], [60684907, 166, 40118, 805, 1, 5.50], [64604829, 184, 40118, 805, -1, -29.99], [64644860, 184, 40118, 805, -1, -3.95], [63654091, 184, 40118, 805, 1, 4.95], [64654096, 184, 40118, 805, 1, 4.95], [65604476, 166, 40118, 830, 1, 19.95], [63694264, 184, 40118, 830, 1, 19.95], [62654454, 166, 40118, 845, 1, 5.95], [64634712, 166, 40118, 845, 1, 3.90], [68674372, 184, 40118, 845, 1, 2.00], [63684755, 184, 40118, 845, 1, 2.00], [62694170, 166, 40118, 851, 1, 16.99], [62674092, 166, 40118, 851, 1, 15.99], [69684804, 184, 40118, 851, 1, 9.99], [68694729, 184, 40118, 855, -1, -16.99], [63624299, 166, 40118, 870, 1, 10.99], [63624367, 166, 40118, 870, 1, 11.19], [68604041, 184, 40118, 870, -1, -19.99], [62604338, 184, 40118, 870, 1, 69.99], [67614923, 184, 40118, 875, -1, -19.95], [60614487, 59, 40118, 878, 1, 5.95], [63644339, 59, 40118, 878, 1, 12.65], [62684043, 184, 40118, 878, -1, -19.95], [62684043, 184, 40118, 878, 1, 19.95], [68684135, 184, 40118, 878, -1, -249.00], [68684135, 184, 40118, 878, 1, 269.00], [68684135, 184, 40118, 878, -1, -269.00], [68684135, 184, 40118, 878, 1, 249.00], [66664981, 184, 40118, 901, 1, 3.09], [66684899, 184, 40118, 901, 1, 12.99], [60664257, 184, 40118, 901, 1, 2.12], [67674341, 184, 40118, 901, -1, -19.95], [66674079, 184, 40118, 901, 1, 3.95], [66674130, 184, 40118, 901, 1, 3.95], [63604361, 184, 40118, 901, 1, 3.99], [62634259, 184, 40118, 901, 1, 6.69], [62634259, 184, 40118, 901, 1, 6.69], [63604108, 184, 40118, 901, 1, 3.95], [69614229, 166, 40118, 902, 1, 15.95], [68644966, 166, 40118, 902, 1, 12.50], [68644966, 166, 40118, 902, -1, -12.50], [68644966, 166, 40118, 902, 1, 0.01], [69614274, 184, 40118, 902, 1, 9.95], [61604095, 184, 40118, 902, 1, 12.50], [66664028, 184, 40118, 902, 1, 14.95], [68654621, 184, 40118, 902, 1, 12.95], [69664149, 184, 40118, 903, -1, -5.99], [69664163, 184, 40118, 903, -1, -1.39], [69664668, 184, 40118, 903, 1, 8.95], [63694928, 166, 40118, 904, 1, 11.49], [69664661, 166, 40118, 904, 1, 14.95], [60634366, 184, 40118, 904, 1, 7.99], [64634802, 184, 40118, 904, 1, 4.29], [60684429, 184, 40118, 904, 1, 4.89], [60684037, 184, 40118, 904, 1, 9.95], [69694875, 184, 40118, 904, 1, 19.95], [69694875, 184, 40118, 904, 1, 19.95], [69694875, 184, 40118, 904, 1, 19.95], [69694875, 184, 40118, 904, -1, -19.95], [69694875, 184, 40118, 904, -1, -19.95], [69694875, 184, 40118, 904, -1, -19.95], [63694928, 184, 40118, 904, 1, 11.49], [60634765, 184, 40118, 904, 1, 4.99], [69614011, 166, 40118, 905, 1, 6.99], [60654072, 166, 40118, 905, 1, 4.33], [60654072, 166, 40118, 905, 1, 4.33], [68604583, 166, 40118, 905, 1, 15.99], [68604583, 166, 40118, 905, -1, -15.99], [68604583, 166, 40118, 905, 1, 15.99], [68604583, 166, 40118, 905, -1, -15.99], [68604583, 166, 40118, 905, 1, 12.80], [68614329, 166, 40118, 905, 1, 39.99], [67674299, 184, 40118, 905, 1, 4.99], [62634323, 184, 40118, 905, 1, 149.00], [69674069, 166, 40118, 910, 1, 10.49], [65674532, 20, 40118, 929, 1, 3.59], [67674686, 59, 40118, 929, 1, 3.99], [63634081, 166, 40118, 929, 1, 3.89], [67664966, 166, 40118, 929, 1, 0.89], [67664966, 166, 40118, 929, 1, 0.89], [60694417, 166, 40118, 929, 1, 0.65], [65694328, 166, 40118, 929, 1, 0.59], [67664645, 166, 40118, 929, 1, 1.39], [65674126, 184, 40118, 929, 1, 2.69], [63664932, 184, 40118, 929, 1, 1.59], [62694503, 184, 40118, 929, 1, 2.99], [64684439, 184, 40118, 929, 1, 9.99], [64664270, 184, 40118, 929, 1, 3.19], [60644305, 184, 40118, 929, 1, 0.89], [67674119, 184, 40118, 929, 1, 1.89], [69694354, 184, 40118, 929, 1, 2.99], [63634656, 184, 40118, 929, -1, -5.50], [67624120, 184, 40118, 940, 1, 0.98], [67624120, 184, 40118, 940, -1, -0.98], [67624120, 184, 40118, 940, 1, 0.49], [67624120, 184, 40118, 940, 1, 0.98], [67624120, 184, 40118, 940, -1, -0.98], [67624120, 184, 40118, 940, 1, 0.49], [66614192, 184, 40118, 940, 1, 1.23], [66614192, 184, 40118, 940, -1, -1.23], [66614192, 184, 40118, 940, 1, 0.69], [66614192, 184, 40118, 940, 1, 1.23], [66614192, 184, 40118, 940, -1, -1.23], [66614192, 184, 40118, 940, 1, 0.69], [67624473, 184, 40118, 940, 1, 0.50], [67624473, 184, 40118, 940, -1, -0.50], [67624473, 184, 40118, 940, 1, 0.19], [64634429, 20, 40118, 957, 1, 3.99], [66624458, 20, 40118, 957, 1, 0.89], [63674861, 20, 40118, 957, 10, 2.70], [64614401, 59, 40118, 957, 1, 1.99], [64614401, 59, 40118, 957, 1, 1.99], [62684217, 59, 40118, 957, 1, 9.99], [64624770, 59, 40118, 957, 1, 2.59], [66624253, 166, 40118, 957, 1, 3.49], [66624253, 166, 40118, 957, 1, 3.49], [64654284, 166, 40118, 957, 1, 3.99], [66624829, 166, 40118, 957, 1, 1.99], [62664909, 166, 40118, 957, 1, 3.29], [62674751, 166, 40118, 957, 1, 1.99], [62674492, 166, 40118, 957, 1, 1.49], [62674492, 166, 40118, 957, 1, 1.49], [64634500, 184, 40118, 957, -1, -9.99], [62694272, 184, 40118, 957, 1, 2.49], [63674184, 184, 40118, 957, 1, 164.00], [67634503, 166, 40118, 970, 1, 24.99], [67634503, 184, 40118, 970, 1, 24.99], [67634503, 184, 40118, 970, 1, 24.99], [67634497, 184, 40118, 970, 1, 24.99], [69674452, 184, 40118, 970, 1, 19.99], [60694909, 184, 40118, 998, 1, 2.00]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR020.bin>>' +
            commonBits.fl('Table:') + '1')
        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], [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]]'
        )
        select_menu(
            commonBits.fl('Window') + '>>DTAR020.bin>>' +
            commonBits.fl('Table:') + '2')
        assert_p(
            'Table', 'Content',
            '[[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], [62684907, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, -1, -13.99]]'
        )

    close()
Exemple #60
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window(commonBits.applicationName()):
        select('FileNameTxtFld',
               commonBits.sampleDir() + 'protoStoreSales3SDim.bin')
        click('Edit1')
        ##		select('JTreeTable', '')
        rightclick('JTreeTable', 'Tree,3')
        select_menu('Edit Record')
        click('Find1')
        ##		click('MetalInternalFrameTitlePane', 237, 12)
        select('TextField', '66')
        select('LayoutCombo', 'Product')
        select('ComboBox', 'keycode')
        select('ComboBox2', 'Backward')
        click('Find1')
        select_menu('Window>>protoStoreSales3SDim.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,1(40118)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 66624829, 66624829], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 1990, 1990]]'
        )
        click('Find1')
        select('ComboBox', 'keycode')
        click('Find1')
        select_menu('Window>>protoStoreSales3SDim.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,2(1)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 66624253, 66624253], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 3490, 3490]]'
        )
        click('Find1')
        select('ComboBox', 'keycode')
        click('Find1')
        select_menu('Window>>protoStoreSales3SDim.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,1(40118)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 66624253, 66624253], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 3490, 3490]]'
        )
        click('Find1')
        select('ComboBox', 'keycode')
        click('Find1')
        select_menu('Window>>protoStoreSales3SDim.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,1(40118)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 62664909, 62664909], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 3290, 3290]]'
        )
        click('Find1')
        ##		click('MetalInternalFrameTitlePane', 127, 12)
        select('ComboBox', 'keycode')
        click('Find1')
        select_menu('Window>>protoStoreSales3SDim.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(67664966)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 67664966, 67664966], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 890, 890]]'
        )
        click('Find1')
        ##		click('BaseHelpPanel', 11, 15)
        select('ComboBox', 'keycode')
        click('Find1')
        select_menu('Window>>protoStoreSales3SDim.bin>>Record: ')
        select('BaseLineAsColumn$LineAsColTbl', 'cell:Data,0(67664966)')
        assert_p(
            'BaseLineAsColumn$LineAsColTbl', 'Content',
            '[[keycode, 1, , 67664966, 67664966], [saleDate, 2, , 40118, 40118], [quantity, 3, , 1, 1], [price, 4, , 890, 890]]'
        )

    close()