def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Protocol Buffer Editor'): click('Preferences') if window('Record Editor Options Editor'): select('TabbedPane', commonBits.fl('Properties')) select('PropertiesTab', commonBits.fl('Test')) select('Test Mode_Chk', 'true') select('Warn on Structure change_Chk', 'false') select('Load In background_Chk', 'false') select('On Search Screen default to "All Fields"_Chk', 'false') select('Add names to JComponents for use by testing tools_Chk', 'false') select('Rename Search btn_Chk', 'false') select('Include Type Name on Record Screen_Chk', 'false') select('PropertiesTab', commonBits.fl('Behaviour')) select('Bring log to Front_Chk', 'false') select('Show all export panels on the export Screen_Chk', 'false') select('Delete Selected rows with the delete key_Chk', 'false') select('Create Screens in seperate Windows_Chk', 'true') click('Save') click('Button2') close() close()
def test(): from Modules import commonBits java_recorded_version = "1.6.0_22" if window("Protocol Buffer Editor"): click("Preferences") if window("Record Editor Options Editor"): select("TabbedPane", commonBits.fl("Properties")) select("PropertiesTab", commonBits.fl("Test")) select("Test Mode_Chk", "true") select("Rename Search btn_Chk", "true") select("Load In background_Chk", "false") select("Use New Tree Expansion_Chk", "true") select('On Search Screen default to "All Fields"_Chk', "true") select("Add names to JComponents for use by testing tools_Chk", "true") select("Rename Search btn_Chk", "true") select("Include Type Name on Record Screen_Chk", "true") select("Warn on Structure change_Chk", "false") select("PropertiesTab", commonBits.fl("Behaviour")) select("Bring log to Front_Chk", "false") select("Default to prefered layout_Chk", "false") select("Show all export panels on the export Screen_Chk", "false") select("Delete Selected rows with the delete key_Chk", "true") select("Create Screens in seperate Windows_Chk", "false") ## select('PropertiesTab', 'File Options') click("Save") close() close()
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') # select_menu('Edit>>Change Layout') # click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Update Csv Columns')) select('FieldChange_JTbl', commonBits.fl('Number'), commonBits.fl('Type') + ',5') select('FieldChange_JTbl', 'cell:' + commonBits.fl('Type') + ',5(Number)') click(commonBits.fl('Apply')) select('LineList.FileDisplay_JTbl', 'cell:1|KEYCODE-NO,0(63604808)') click('Find1') select('Find.Search For_Txt', '19.00') select('Find.Field_Txt', 'SALE-PRICE') ## click('ScrollPane$ScrollBar', 6, 33) select('Find.Operator_Txt', commonBits.fl('>= (Text)')) commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '2, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '4, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '5, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '10, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '11, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '12, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '13, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '14, 5, 0') commonBits.find(click) assert_p('TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '17, 5, 0') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Editor'): select('File_Txt', commonBits.sampleDir() + 'Ams_PODownload_20041231.txt') click(commonBits.fl('Edit') + '1') assert_p('LineList.Layouts_Txt', 'Text', commonBits.fl('Prefered')) click('Find') select('Find.Search For_Txt', 'D1') assert_p('Find.Record Layout_Txt', 'Text', 'ams PO Download: Allocation') assert_p('Find.Field_Txt', 'Text', commonBits.fl('All Fields')) commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '2, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '4, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '6, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '9, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '12, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '15, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '17, 0, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '22, 0, 0') click('BasicInternalFrameTitlePane$NoFocusButton2') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_20' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'DTAR1000_Store_file_std.bin') commonBits.setRecordLayout(select, 'xDTAR1000 VB') click(commonBits.fl('Edit') + '1') select('Table', 'rows:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[5 - 50|STORE-NAME]') 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,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[5 - 50|STORE-NAME]') assert_p('Table', 'Content', '[[3, 40, Q Mackay, N, Y, N, N, N, N], [4, 20, V Ballarat, N, Y, N, N, N, N], [5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'rows:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],columns:[5 - 50|STORE-NAME]') select('Table', 'rows:[2,3],columns:[5 - 50|STORE-NAME]') click('Delete2') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p('Table', 'Content', '[[5, 20, V Albury, N, Y, N, N, N, N], [6, 20, V Wodonga, N, Y, N, N, N, N], [7, 20, V Shepparton, N, Y, N, N, N, N], [8, 20, V Bendigo, N, Y, N, N, N, N], [9, 50, S Centrepoint, N, Y, N, N, N, N], [10, 40, Q Earlville, N, Y, N, N, N, N], [11, 10, N Cessnock, N, Y, N, N, N, N], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'rows:[6,7,8],columns:[5 - 50|STORE-NAME]') click('Delete2') 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], [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], [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', '[[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], [12, 20, V Ringwood, N, Y, N, N, N, N], [15, 10, N Bankstown, N, Y, N, N, N, N], [16, 10, N Glendale, N, Y, N, N, N, N], [19, 10, N Penrith, N, Y, N, N, N, N], [20, 40, Q Indooroopilly, N, Y, N, N, N, N], [21, 50, S Tea Tree Plaza, N, Y, N, N, N, N], [23, 20, V Warnambool, N, Y, N, N, N, N], [24, 50, S Newton, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, N, Y, N, N, N, N], [26, 50, S Edwardstown, N, Y, N, N, N, N], [27, 40, Q Runaway Bay, N, Y, N, N, N, N], [28, 20, V Launceston, N, Y, N, N, N, N], [30, 20, V Epping, N, Y, N, N, N, N], [32, 20, V Camberwell, N, Y, N, N, N, N], [33, 10, Y Blacktown (Closed), N, Y, N, N, N, N], [35, 10, N Rockdale, N, Y, N, N, N, N], [36, 60, W Fremantle, N, Y, N, N, N, N], [21, 10, N Miranda, N, Y, N, N, N, N], [38, 40, Q Maroochydore, N, Y, N, N, N, N], [39, 20, V Colac, N, Y, N, N, N, N]]') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'rows:[9,10,11],columns:[5 - 50|STORE-NAME]') click('Delete2') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p('Table', 'Content', '[[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], [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], [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:[12,13,14],columns:[5 - 50|STORE-NAME]') click('Delete2') 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], [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], [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], [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], [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:')) select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p('Table', 'Content', '[[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], [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], [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], [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],columns:[5 - 50|STORE-NAME]') click('Delete2') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:') + '1') assert_p('Table', 'Content', '[[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], [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], [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], [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]]') select_menu(commonBits.fl('Window') + '>>DTAR1000_Store_file_std.bin>>' + commonBits.fl('Table:')) select('Table', 'rows:[7,8,9,10],columns:[5 - 50|STORE-NAME]') click('Delete2') 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], [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], [12, 20, V Ringwood, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, 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], [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', '[[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], [12, 20, V Ringwood, N, Y, N, N, N, N], [25, 50, S Fulham Gardens, 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]]') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Editor'): click('Preferences') if window('Record Editor Options Editor'): select('TabbedPane', commonBits.fl('Properties')) if commonBits.isVersion81(): select('PropertiesTab', commonBits.fl('Test')) select('Test Mode_Chk', 'true') select('Warn on Structure change_Chk', 'false') select('Load In background_Chk', 'false') select('Use New Tree Expansion_Chk', 'false') select('On Search Screen default to "All Fields"_Chk', 'false') select('Add names to JComponents for use by testing tools_Chk', 'false') select('Rename Search btn_Chk', 'true') select('Include Type Name on Record Screen_Chk', 'false') click('Save') select('PropertiesTab', commonBits.fl('Behaviour')) select('Bring log to Front_Chk', 'false') select('Default to prefered layout_Chk', 'false') select('Show all export panels on the export Screen_Chk', 'true') select('Delete Selected rows with the delete key_Chk', 'false') select('Create Screens in seperate Windows_Chk', 'true') select('PropertiesTab', commonBits.fl('Layout Wizard')) select('Run the field search Automatically_Chk', 'true') click('Save') select('TabbedPane', commonBits.fl('Looks')) select('Look and Feel_Txt', 'Default') elif commonBits.isVersion80(): select('TabbedPane1', 'Other Options') select('EditPropertiesPnl$BoolFld', 'true') select('EditPropertiesPnl$BoolFld1', 'false') select('EditPropertiesPnl$BoolFld6', 'false') select('EditPropertiesPnl$BoolFld7', 'false') select('EditPropertiesPnl$BoolFld7', 'false') select('EditPropertiesPnl$BoolFld4', 'false') select('EditPropertiesPnl$BoolFld5', 'false') select('TabbedPane1', 'Big Model Options') select('EditPropertiesPnl$BoolFld13', 'false') select('TabbedPane', 'Looks') select('ComboBox2', 'Default') else: select('TabbedPane1', 'Other Options') select('EditPropertiesPnl$BoolFld', 'true') select('EditPropertiesPnl$BoolFld1', 'false') select('TabbedPane1', 'Big Model Options') select('EditPropertiesPnl$BoolFld13', 'false') select('TabbedPane', 'Looks') select('ComboBox2', 'Default') ## select('TabbedPane', 'Looks') ## select('ComboBox2', 'Default') click('Save') close() close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('reCsv Editor'): select('FilePane$3', 'XfdDTAR020.csv.csv') doubleclick('FilePane$3', '6') click(commonBits.fl('Edit') + '1') select('LineList.FileDisplay_JTbl', 'cell:2|STORE-NO,0(20)') rightclick('LineList.FileDisplay_JTbl', '1|KEYCODE-NO,5') ## select('LineList.FileDisplay_JTbl', 'cell:2|STORE-NO,0(20)') select_menu(commonBits.fl('Edit Record')) select('TabbedPane', 'Record:') select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',3(685)') assert_p('LineFrame.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, 1, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [STORE-NO, 2, , ' + commonBits.fl('Char') + ', 20, 20], [DATE, 3, , ' + commonBits.fl('Char') + ', 40118, 40118], [DEPT-NO, 4, , ' + commonBits.fl('Char') + ', 685, 685], [QTY-SOLD, 5, , ' + commonBits.fl('Char') + ', 1, 1], [SALE-PRICE, 6, , ' + commonBits.fl('Char') + ', 69.99, 69.99]]') ## select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',3(685)') click(commonBits.fl('Table:')) ## select('TabbedPane', 'Table:') select('LineList.FileDisplay_JTbl', 'cell:1|KEYCODE-NO,7(64634429)') assert_p('LineList.FileDisplay_JTbl', '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], [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]]') select('LineList.FileDisplay_JTbl', 'cell:1|KEYCODE-NO,7(64634429)') rightclick('LineList.FileDisplay_JTbl', '1|KEYCODE-NO,5') select_menu(commonBits.fl('CSV Options') + '>>' + commonBits.fl('Copy Column') + '>>' + commonBits.fl('After DATE')) assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558, 20, 40118, 69684558, 280, 1, 5.01], [69694158, 20, 40118, 69694158, 280, 1, 19.00], [69694158, 20, 40118, 69694158, 280, -1, -19.00], [69694158, 20, 40118, 69694158, 280, 1, 5.01], [63604808, 20, 40118, 63604808, 170, 1, 4.87], [62684671, 20, 40118, 62684671, 685, 1, 69.99], [62684671, 20, 40118, 62684671, 685, -1, -69.99], [64634429, 20, 40118, 64634429, 957, 1, 3.99], [66624458, 20, 40118, 66624458, 957, 1, 0.89], [63674861, 20, 40118, 63674861, 957, 10, 2.70], [65674532, 20, 40118, 65674532, 929, 1, 3.59], [64614401, 59, 40118, 64614401, 957, 1, 1.99], [64614401, 59, 40118, 64614401, 957, 1, 1.99], [61664713, 59, 40118, 61664713, 335, 1, 17.99], [61664713, 59, 40118, 61664713, 335, -1, -17.99], [68634752, 59, 40118, 68634752, 410, 1, 8.99], [60614487, 59, 40118, 60614487, 878, 1, 5.95], [63644339, 59, 40118, 63644339, 878, 1, 12.65], [60694698, 59, 40118, 60694698, 620, 1, 3.99], [60664659, 59, 40118, 60664659, 620, 1, 3.99], [62684217, 59, 40118, 62684217, 957, 1, 9.99], [67674686, 59, 40118, 67674686, 929, 1, 3.99]]') select('LineList.Layouts_Txt', commonBits.fl('Full Line')) select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',9(63674861;20;40118;63674861;957;10;2.70)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558;20;40118;69684558;280;1;5.01], [69694158;20;40118;69694158;280;1;19.00], [69694158;20;40118;69694158;280;-1;-19.00], [69694158;20;40118;69694158;280;1;5.01], [63604808;20;40118;63604808;170;1;4.87], [62684671;20;40118;62684671;685;1;69.99], [62684671;20;40118;62684671;685;-1;-69.99], [64634429;20;40118;64634429;957;1;3.99], [66624458;20;40118;66624458;957;1;0.89], [63674861;20;40118;63674861;957;10;2.70], [65674532;20;40118;65674532;929;1;3.59], [64614401;59;40118;64614401;957;1;1.99], [64614401;59;40118;64614401;957;1;1.99], [61664713;59;40118;61664713;335;1;17.99], [61664713;59;40118;61664713;335;-1;-17.99], [68634752;59;40118;68634752;410;1;8.99], [60614487;59;40118;60614487;878;1;5.95], [63644339;59;40118;63644339;878;1;12.65], [60694698;59;40118;60694698;620;1;3.99], [60664659;59;40118;60664659;620;1;3.99], [62684217;59;40118;62684217;957;1;9.99], [67674686;59;40118;67674686;929;1;3.99]]') select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',9(63674861;20;40118;63674861;957;10;2.70)') select('LineList.Layouts_Txt', 'GeneratedCsvRecord') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558, 20, 40118, 69684558, 280, 1, 5.01], [69694158, 20, 40118, 69694158, 280, 1, 19.00], [69694158, 20, 40118, 69694158, 280, -1, -19.00], [69694158, 20, 40118, 69694158, 280, 1, 5.01], [63604808, 20, 40118, 63604808, 170, 1, 4.87], [62684671, 20, 40118, 62684671, 685, 1, 69.99], [62684671, 20, 40118, 62684671, 685, -1, -69.99], [64634429, 20, 40118, 64634429, 957, 1, 3.99], [66624458, 20, 40118, 66624458, 957, 1, 0.89], [63674861, 20, 40118, 63674861, 957, 10, 2.70], [65674532, 20, 40118, 65674532, 929, 1, 3.59], [64614401, 59, 40118, 64614401, 957, 1, 1.99], [64614401, 59, 40118, 64614401, 957, 1, 1.99], [61664713, 59, 40118, 61664713, 335, 1, 17.99], [61664713, 59, 40118, 61664713, 335, -1, -17.99], [68634752, 59, 40118, 68634752, 410, 1, 8.99], [60614487, 59, 40118, 60614487, 878, 1, 5.95], [63644339, 59, 40118, 63644339, 878, 1, 12.65], [60694698, 59, 40118, 60694698, 620, 1, 3.99], [60664659, 59, 40118, 60664659, 620, 1, 3.99], [62684217, 59, 40118, 62684217, 957, 1, 9.99], [67674686, 59, 40118, 67674686, 929, 1, 3.99]]') click(commonBits.fl('Record:') + ' 6') ## select('TabbedPane', 'Record:') keystroke('LineFrame.Layouts_Txt', 'Context Menu') keystroke('LineFrame.Layouts_Txt', 'Context Menu') keystroke('LineFrame.Layouts_Txt', 'Context Menu') assert_p('LineFrame.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, 1, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [STORE-NO, 2, , ' + commonBits.fl('Char') + ', 20, 20], [DATE, 3, , ' + commonBits.fl('Char') + ', 40118, 40118], [4, 4, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [DEPT-NO, 5, , ' + commonBits.fl('Char') + ', 685, 685], [QTY-SOLD, 6, , ' + commonBits.fl('Char') + ', 1, 1], [SALE-PRICE, 7, , ' + commonBits.fl('Char') + ', 69.99, 69.99]]') click(commonBits.fl('Table:')) ## select('TabbedPane', 'Table:') select('LineList.FileDisplay_JTbl', 'cell:6|QTY-SOLD,6(-1)') rightclick('LineList.FileDisplay_JTbl', '6|QTY-SOLD,6') select_menu(commonBits.fl('CSV Options') + '>>' + commonBits.fl('Move Column') + '>>' + commonBits.fl('Before KEYCODE-NO')) select('LineList.FileDisplay_JTbl', 'cell:2|KEYCODE-NO,10(65674532)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[1, 69684558, 20, 40118, 69684558, 280, 5.01], [1, 69694158, 20, 40118, 69694158, 280, 19.00], [-1, 69694158, 20, 40118, 69694158, 280, -19.00], [1, 69694158, 20, 40118, 69694158, 280, 5.01], [1, 63604808, 20, 40118, 63604808, 170, 4.87], [1, 62684671, 20, 40118, 62684671, 685, 69.99], [-1, 62684671, 20, 40118, 62684671, 685, -69.99], [1, 64634429, 20, 40118, 64634429, 957, 3.99], [1, 66624458, 20, 40118, 66624458, 957, 0.89], [10, 63674861, 20, 40118, 63674861, 957, 2.70], [1, 65674532, 20, 40118, 65674532, 929, 3.59], [1, 64614401, 59, 40118, 64614401, 957, 1.99], [1, 64614401, 59, 40118, 64614401, 957, 1.99], [1, 61664713, 59, 40118, 61664713, 335, 17.99], [-1, 61664713, 59, 40118, 61664713, 335, -17.99], [1, 68634752, 59, 40118, 68634752, 410, 8.99], [1, 60614487, 59, 40118, 60614487, 878, 5.95], [1, 63644339, 59, 40118, 63644339, 878, 12.65], [1, 60694698, 59, 40118, 60694698, 620, 3.99], [1, 60664659, 59, 40118, 60664659, 620, 3.99], [1, 62684217, 59, 40118, 62684217, 957, 9.99], [1, 67674686, 59, 40118, 67674686, 929, 3.99]]') select('LineList.FileDisplay_JTbl', 'cell:2|KEYCODE-NO,10(65674532)') select('LineList.Layouts_Txt', commonBits.fl('Full Line')) select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',9(10;63674861;20;40118;63674861;957;2.70)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[1;69684558;20;40118;69684558;280;5.01], [1;69694158;20;40118;69694158;280;19.00], [-1;69694158;20;40118;69694158;280;-19.00], [1;69694158;20;40118;69694158;280;5.01], [1;63604808;20;40118;63604808;170;4.87], [1;62684671;20;40118;62684671;685;69.99], [-1;62684671;20;40118;62684671;685;-69.99], [1;64634429;20;40118;64634429;957;3.99], [1;66624458;20;40118;66624458;957;0.89], [10;63674861;20;40118;63674861;957;2.70], [1;65674532;20;40118;65674532;929;3.59], [1;64614401;59;40118;64614401;957;1.99], [1;64614401;59;40118;64614401;957;1.99], [1;61664713;59;40118;61664713;335;17.99], [-1;61664713;59;40118;61664713;335;-17.99], [1;68634752;59;40118;68634752;410;8.99], [1;60614487;59;40118;60614487;878;5.95], [1;63644339;59;40118;63644339;878;12.65], [1;60694698;59;40118;60694698;620;3.99], [1;60664659;59;40118;60664659;620;3.99], [1;62684217;59;40118;62684217;957;9.99], [1;67674686;59;40118;67674686;929;3.99]]') select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',9(10;63674861;20;40118;63674861;957;2.70)') select('LineList.Layouts_Txt', 'GeneratedCsvRecord') click(commonBits.fl('Record:') + ' 6') ## select('TabbedPane', 'Record:') assert_p('LineFrame.FileDisplay_JTbl', 'Content', '[[QTY-SOLD, 1, , ' + commonBits.fl('Char') + ', 1, 1], [KEYCODE-NO, 2, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [STORE-NO, 3, , ' + commonBits.fl('Char') + ', 20, 20], [DATE, 4, , ' + commonBits.fl('Char') + ', 40118, 40118], [4, 5, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [DEPT-NO, 6, , ' + commonBits.fl('Char') + ', 685, 685], [SALE-PRICE, 7, , ' + commonBits.fl('Char') + ', 69.99, 69.99]]') click(commonBits.fl('Table:')) ## select('TabbedPane', 'Table:') select('LineList.FileDisplay_JTbl', 'cell:1|QTY-SOLD,3(1)') rightclick('LineList.FileDisplay_JTbl', '1|QTY-SOLD,3') select_menu(commonBits.fl('CSV Options') + '>>' + commonBits.fl('Move Column') + '>>' + commonBits.fl('After SALE-PRICE')) assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558, 20, 40118, 69684558, 280, 5.01, 1], [69694158, 20, 40118, 69694158, 280, 19.00, 1], [69694158, 20, 40118, 69694158, 280, -19.00, -1], [69694158, 20, 40118, 69694158, 280, 5.01, 1], [63604808, 20, 40118, 63604808, 170, 4.87, 1], [62684671, 20, 40118, 62684671, 685, 69.99, 1], [62684671, 20, 40118, 62684671, 685, -69.99, -1], [64634429, 20, 40118, 64634429, 957, 3.99, 1], [66624458, 20, 40118, 66624458, 957, 0.89, 1], [63674861, 20, 40118, 63674861, 957, 2.70, 10], [65674532, 20, 40118, 65674532, 929, 3.59, 1], [64614401, 59, 40118, 64614401, 957, 1.99, 1], [64614401, 59, 40118, 64614401, 957, 1.99, 1], [61664713, 59, 40118, 61664713, 335, 17.99, 1], [61664713, 59, 40118, 61664713, 335, -17.99, -1], [68634752, 59, 40118, 68634752, 410, 8.99, 1], [60614487, 59, 40118, 60614487, 878, 5.95, 1], [63644339, 59, 40118, 63644339, 878, 12.65, 1], [60694698, 59, 40118, 60694698, 620, 3.99, 1], [60664659, 59, 40118, 60664659, 620, 3.99, 1], [62684217, 59, 40118, 62684217, 957, 9.99, 1], [67674686, 59, 40118, 67674686, 929, 3.99, 1]]') select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558;20;40118;69684558;280;5.01;1], [69694158;20;40118;69694158;280;19.00;1], [69694158;20;40118;69694158;280;-19.00;-1], [69694158;20;40118;69694158;280;5.01;1], [63604808;20;40118;63604808;170;4.87;1], [62684671;20;40118;62684671;685;69.99;1], [62684671;20;40118;62684671;685;-69.99;-1], [64634429;20;40118;64634429;957;3.99;1], [66624458;20;40118;66624458;957;0.89;1], [63674861;20;40118;63674861;957;2.70;10], [65674532;20;40118;65674532;929;3.59;1], [64614401;59;40118;64614401;957;1.99;1], [64614401;59;40118;64614401;957;1.99;1], [61664713;59;40118;61664713;335;17.99;1], [61664713;59;40118;61664713;335;-17.99;-1], [68634752;59;40118;68634752;410;8.99;1], [60614487;59;40118;60614487;878;5.95;1], [63644339;59;40118;63644339;878;12.65;1], [60694698;59;40118;60694698;620;3.99;1], [60664659;59;40118;60664659;620;3.99;1], [62684217;59;40118;62684217;957;9.99;1], [67674686;59;40118;67674686;929;3.99;1]]') click(commonBits.fl('Record:') + ' 6') ## select('TabbedPane', 'Record:') assert_p('LineFrame.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, 1, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [STORE-NO, 2, , ' + commonBits.fl('Char') + ', 20, 20], [DATE, 3, , ' + commonBits.fl('Char') + ', 40118, 40118], [4, 4, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [DEPT-NO, 5, , ' + commonBits.fl('Char') + ', 685, 685], [SALE-PRICE, 6, , ' + commonBits.fl('Char') + ', 69.99, 69.99], [QTY-SOLD, 7, , ' + commonBits.fl('Char') + ', 1, 1]]') click(commonBits.fl('Table:')) ## select('TabbedPane', 'Table:') select('LineList.Layouts_Txt', 'GeneratedCsvRecord') ## select('LineList.FileDisplay_JTbl', '') rightclick('LineList.FileDisplay_JTbl', '7|QTY-SOLD,7') select_menu(commonBits.fl('CSV Options') + '>>' + commonBits.fl('Move Column') + '>>' + commonBits.fl('After DEPT-NO')) select('LineList.FileDisplay_JTbl', 'cell:4|4,8(66624458)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558, 20, 40118, 69684558, 280, 1, 5.01], [69694158, 20, 40118, 69694158, 280, 1, 19.00], [69694158, 20, 40118, 69694158, 280, -1, -19.00], [69694158, 20, 40118, 69694158, 280, 1, 5.01], [63604808, 20, 40118, 63604808, 170, 1, 4.87], [62684671, 20, 40118, 62684671, 685, 1, 69.99], [62684671, 20, 40118, 62684671, 685, -1, -69.99], [64634429, 20, 40118, 64634429, 957, 1, 3.99], [66624458, 20, 40118, 66624458, 957, 1, 0.89], [63674861, 20, 40118, 63674861, 957, 10, 2.70], [65674532, 20, 40118, 65674532, 929, 1, 3.59], [64614401, 59, 40118, 64614401, 957, 1, 1.99], [64614401, 59, 40118, 64614401, 957, 1, 1.99], [61664713, 59, 40118, 61664713, 335, 1, 17.99], [61664713, 59, 40118, 61664713, 335, -1, -17.99], [68634752, 59, 40118, 68634752, 410, 1, 8.99], [60614487, 59, 40118, 60614487, 878, 1, 5.95], [63644339, 59, 40118, 63644339, 878, 1, 12.65], [60694698, 59, 40118, 60694698, 620, 1, 3.99], [60664659, 59, 40118, 60664659, 620, 1, 3.99], [62684217, 59, 40118, 62684217, 957, 1, 9.99], [67674686, 59, 40118, 67674686, 929, 1, 3.99]]') select('LineList.FileDisplay_JTbl', 'cell:4|4,8(66624458)') select('LineList.Layouts_Txt', commonBits.fl('Full Line')) select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',7(64634429;20;40118;64634429;957;1;3.99)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558;20;40118;69684558;280;1;5.01], [69694158;20;40118;69694158;280;1;19.00], [69694158;20;40118;69694158;280;-1;-19.00], [69694158;20;40118;69694158;280;1;5.01], [63604808;20;40118;63604808;170;1;4.87], [62684671;20;40118;62684671;685;1;69.99], [62684671;20;40118;62684671;685;-1;-69.99], [64634429;20;40118;64634429;957;1;3.99], [66624458;20;40118;66624458;957;1;0.89], [63674861;20;40118;63674861;957;10;2.70], [65674532;20;40118;65674532;929;1;3.59], [64614401;59;40118;64614401;957;1;1.99], [64614401;59;40118;64614401;957;1;1.99], [61664713;59;40118;61664713;335;1;17.99], [61664713;59;40118;61664713;335;-1;-17.99], [68634752;59;40118;68634752;410;1;8.99], [60614487;59;40118;60614487;878;1;5.95], [63644339;59;40118;63644339;878;1;12.65], [60694698;59;40118;60694698;620;1;3.99], [60664659;59;40118;60664659;620;1;3.99], [62684217;59;40118;62684217;957;1;9.99], [67674686;59;40118;67674686;929;1;3.99]]') select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',7(64634429;20;40118;64634429;957;1;3.99)') click(commonBits.fl('Record:') + ' 6') ## select('TabbedPane', 'Record:') select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',4(685)') assert_p('LineFrame.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, 1, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [STORE-NO, 2, , ' + commonBits.fl('Char') + ', 20, 20], [DATE, 3, , ' + commonBits.fl('Char') + ', 40118, 40118], [4, 4, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [DEPT-NO, 5, , ' + commonBits.fl('Char') + ', 685, 685], [QTY-SOLD, 6, , ' + commonBits.fl('Char') + ', 1, 1], [SALE-PRICE, 7, , ' + commonBits.fl('Char') + ', 69.99, 69.99]]') select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',4(685)') click(commonBits.fl('Table:')) ## select('TabbedPane', 'Table:') select('LineList.Layouts_Txt', 'GeneratedCsvRecord') ## select('LineList.FileDisplay_JTbl', '') rightclick('LineList.FileDisplay_JTbl', '6|QTY-SOLD,4') select('LineList.FileDisplay_JTbl', 'cell:6|QTY-SOLD,2(-1)') rightclick('LineList.FileDisplay_JTbl', '6|QTY-SOLD,2') select_menu(commonBits.fl('CSV Options') + '>>' + commonBits.fl('Move Column') + '>>' + commonBits.fl('After DATE')) select('LineList.FileDisplay_JTbl', 'cell:3|DATE,10(40118)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558, 20, 40118, 1, 69684558, 280, 5.01], [69694158, 20, 40118, 1, 69694158, 280, 19.00], [69694158, 20, 40118, -1, 69694158, 280, -19.00], [69694158, 20, 40118, 1, 69694158, 280, 5.01], [63604808, 20, 40118, 1, 63604808, 170, 4.87], [62684671, 20, 40118, 1, 62684671, 685, 69.99], [62684671, 20, 40118, -1, 62684671, 685, -69.99], [64634429, 20, 40118, 1, 64634429, 957, 3.99], [66624458, 20, 40118, 1, 66624458, 957, 0.89], [63674861, 20, 40118, 10, 63674861, 957, 2.70], [65674532, 20, 40118, 1, 65674532, 929, 3.59], [64614401, 59, 40118, 1, 64614401, 957, 1.99], [64614401, 59, 40118, 1, 64614401, 957, 1.99], [61664713, 59, 40118, 1, 61664713, 335, 17.99], [61664713, 59, 40118, -1, 61664713, 335, -17.99], [68634752, 59, 40118, 1, 68634752, 410, 8.99], [60614487, 59, 40118, 1, 60614487, 878, 5.95], [63644339, 59, 40118, 1, 63644339, 878, 12.65], [60694698, 59, 40118, 1, 60694698, 620, 3.99], [60664659, 59, 40118, 1, 60664659, 620, 3.99], [62684217, 59, 40118, 1, 62684217, 957, 9.99], [67674686, 59, 40118, 1, 67674686, 929, 3.99]]') select('LineList.FileDisplay_JTbl', 'cell:3|DATE,10(40118)') select('LineList.Layouts_Txt', commonBits.fl('Full Line')) select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',6(62684671;20;40118;-1;62684671;685;-69.99)') assert_p('LineList.FileDisplay_JTbl', 'Content', '[[69684558;20;40118;1;69684558;280;5.01], [69694158;20;40118;1;69694158;280;19.00], [69694158;20;40118;-1;69694158;280;-19.00], [69694158;20;40118;1;69694158;280;5.01], [63604808;20;40118;1;63604808;170;4.87], [62684671;20;40118;1;62684671;685;69.99], [62684671;20;40118;-1;62684671;685;-69.99], [64634429;20;40118;1;64634429;957;3.99], [66624458;20;40118;1;66624458;957;0.89], [63674861;20;40118;10;63674861;957;2.70], [65674532;20;40118;1;65674532;929;3.59], [64614401;59;40118;1;64614401;957;1.99], [64614401;59;40118;1;64614401;957;1.99], [61664713;59;40118;1;61664713;335;17.99], [61664713;59;40118;-1;61664713;335;-17.99], [68634752;59;40118;1;68634752;410;8.99], [60614487;59;40118;1;60614487;878;5.95], [63644339;59;40118;1;63644339;878;12.65], [60694698;59;40118;1;60694698;620;3.99], [60664659;59;40118;1;60664659;620;3.99], [62684217;59;40118;1;62684217;957;9.99], [67674686;59;40118;1;67674686;929;3.99]]') select('LineList.FileDisplay_JTbl', 'cell:' + commonBits.fl('Full Line') + ',6(62684671;20;40118;-1;62684671;685;-69.99)') click(commonBits.fl('Record:') + ' 6') ## select('TabbedPane', 'Record:') select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',3(1)') keystroke('LineFrame.FileDisplay_JTbl', 'Context Menu', commonBits.fl('Data') + ',3') select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',3(1)') assert_p('LineFrame.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, 1, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [STORE-NO, 2, , ' + commonBits.fl('Char') + ', 20, 20], [DATE, 3, , ' + commonBits.fl('Char') + ', 40118, 40118], [QTY-SOLD, 4, , ' + commonBits.fl('Char') + ', 1, 1], [4, 5, , ' + commonBits.fl('Char') + ', 62684671, 62684671], [DEPT-NO, 6, , ' + commonBits.fl('Char') + ', 685, 685], [SALE-PRICE, 7, , ' + commonBits.fl('Char') + ', 69.99, 69.99]]') select('LineFrame.FileDisplay_JTbl', 'cell:' + commonBits.fl('Data') + ',3(1)') ## if window(rcommonBits.fl('Save Changes to file: C:\Users\BruceTst2\.RecordEditor\reCsvEd\SampleFiles\XfdDTAR020.csv.csv')): ## click('No') ## close() close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Layout Definitions'): click('*7') select('FileChooser', commonBits.cobolDir() + 'CopyDTAR119.cbl') select('ManagerCombo', commonBits.fl('Cobol Copybook (DB)')) select('ComputerOptionCombo', commonBits.fl('Mainframe')) select('BmKeyedComboBox1', 'Mainframe') select('BmKeyedComboBox', commonBits.fl('Fixed Length Binary')) # select('BmKeyedComboBox', '2') # select('BmKeyedComboBox1', '9') click(commonBits.fl('Go')) assert_p( 'TextArea', 'Text', commonBits.checkCopybookLoad( commonBits.cobolDir() + 'CopyDTAR119.cbl', 'CopyDTAR119')) ## assert_p('TextArea', 'Text', ''' ## ##-->> ''' + commonBits.cobolDir() + '''CopyDTAR119.cbl processed ## ## Copybook: CopyDTAR119''') select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('TextField', '%CopyDTAR%') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('TextField1', '%') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',3(DTAR119-CARD-NO)') assert_p('RecordFieldsJTbl', 'Text', 'DTAR119-CARD-NO', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(DTAR119-TRANS-CODE)') ## assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, DTAR119-STORE-NO, , 31, 0, 0, , , DTAR119-STORE-NO], [3, 4, DTAR119-TRANS-DATE, , 31, 0, 0, , , DTAR119-TRANS-DATE], [7, 2, DTAR119-TRANS-CODE, , 31, 0, 0, , , DTAR119-TRANS-CODE], [9, 16, DTAR119-CARD-NO, , 8, 0, 0, , , DTAR119-CARD-NO], [25, 3, DTAR119-TERMINAL-ID, , 8, 0, 0, , , DTAR119-TERMINAL-ID], [28, 4, DTAR119-TRANS-NO, , 8, 0, 0, , , DTAR119-TRANS-NO], [32, 4, DTAR119-BONUS-POINTS, , 31, 0, 0, , , DTAR119-BONUS-POINTS], [36, 5, DTAR119-KEYCODE, , 31, 0, 0, , , DTAR119-KEYCODE], [41, 5, DTAR119-KEYCODE-AMT, , 31, 2, 0, , , DTAR119-KEYCODE-AMT], [46, 5, DTAR119-KEYCODE-QTY, , 31, 2, 0, , , DTAR119-KEYCODE-QTY], [51, 3, DTAR119-PROM-NO, , 31, 0, 0, , , DTAR119-PROM-NO]]') ## assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, DTAR119-STORE-NO, , 33, 0, 0, , , DTAR119-STORE-NO], [3, 4, DTAR119-TRANS-DATE, , 33, 0, 0, , , DTAR119-TRANS-DATE], [7, 2, DTAR119-TRANS-CODE, , 33, 0, 0, , , DTAR119-TRANS-CODE], [9, 16, DTAR119-CARD-NO, , 22, 0, 0, , , DTAR119-CARD-NO], [25, 3, DTAR119-TERMINAL-ID, , 22, 0, 0, , , DTAR119-TERMINAL-ID], [28, 4, DTAR119-TRANS-NO, , 22, 0, 0, , , DTAR119-TRANS-NO], [32, 4, DTAR119-BONUS-POINTS, , 31, 0, 0, , , DTAR119-BONUS-POINTS], [36, 5, DTAR119-KEYCODE, , 33, 0, 0, , , DTAR119-KEYCODE], [41, 5, DTAR119-KEYCODE-AMT, , 31, 2, 0, , , DTAR119-KEYCODE-AMT], [46, 5, DTAR119-KEYCODE-QTY, , 31, 2, 0, , , DTAR119-KEYCODE-QTY], [51, 3, DTAR119-PROM-NO, , 33, 0, 0, , , DTAR119-PROM-NO]]') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, DTAR119-STORE-NO, , 33, 0, 0, , , DTAR119-STORE-NO], [3, 4, DTAR119-TRANS-DATE, , 33, 0, 0, , , DTAR119-TRANS-DATE], [7, 2, DTAR119-TRANS-CODE, , 33, 0, 0, , , DTAR119-TRANS-CODE], [9, 16, DTAR119-CARD-NO, , 25, 0, 0, , , DTAR119-CARD-NO], [25, 3, DTAR119-TERMINAL-ID, , 25, 0, 0, , , DTAR119-TERMINAL-ID], [28, 4, DTAR119-TRANS-NO, , 25, 0, 0, , , DTAR119-TRANS-NO], [32, 4, DTAR119-BONUS-POINTS, , 31, 0, 0, , , DTAR119-BONUS-POINTS], [36, 5, DTAR119-KEYCODE, , 33, 0, 0, , , DTAR119-KEYCODE], [41, 5, DTAR119-KEYCODE-AMT, , 31, 2, 0, , , DTAR119-KEYCODE-AMT], [46, 5, DTAR119-KEYCODE-QTY, , 31, 2, 0, , , DTAR119-KEYCODE-QTY], [51, 3, DTAR119-PROM-NO, , 33, 0, 0, , , DTAR119-PROM-NO]]' ) select( 'RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',6(DTAR119-BONUS-POINTS)') assert_p('RecordFieldsJTbl', 'RowCount', '11') select( 'RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',8(DTAR119-KEYCODE-AMT)') assert_p( 'RecordFieldsJTbl', 'Text', 'cell:' + commonBits.fl('FieldName') + ',8(DTAR119-KEYCODE-AMT)') select( 'RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',8(DTAR119-KEYCODE-AMT)') assert_p('TextField2', 'Text', 'CopyDTAR119') if commonBits.isTstLanguage(): click(commonBits.fl('Delete') + '1') else: commonBits.delete3(click) if window(commonBits.fl('Delete: CopyDTAR119')): click('Yes') close() #select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') click('BasicInternalFrameTitlePane$NoFocusButton2') click('BasicInternalFrameTitlePane$NoFocusButton2') click(commonBits.fl('Close')) ## select_menu('File>>Exit') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'Unknown_Ams_LocDownload_20041228.txt') ## click('ScrollPane$ScrollBar', 9, 102) select('ComboBox2', 'Unknown Text IO') click(commonBits.fl('Edit') + '1') select('Table', 'rows:[4,5,6,7,8,9,10,11,12,13,14,15],columns:[1 - 1|Data]') select_menu( commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}')) ## select('Table2', 'rows:[4,5,6,7,8,9,10,11,12,13,14,15],columns:[1 - 1|Data]') assert_p( 'Table', 'Content', '[[TAR5015STBankstown Bankstown Unit 2, 39-41 Allingham Street Condell Park 2200 NSWA], [TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA], [TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA], [TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA], [TAR5037STMiranda Westfield Shoppingtown Cnr. Urunga Pde & The Kingsway Miranda 2228 NSWA], [TAR5052STEastwood Marayong Offsite Reserve 11 Melissa Place Marayong 2148 NSWA], [TAR5055STLeichhardt Marketown Marion Street Leichhardt 2040 NSWA], [TAR5060STSt Marys St. Mary\'s Charles Hackett Drive St Mary\'s 2760 NSWA], [TAR5070STBass Hill Bass Hill Plaza 753 Hume Highway Bass Hill 2197 NSWA], [TAR5074STCampbelltown Campbelltown Mall 303 Queen Street Campbelltown 2560 NSWA], [TAR5078STWarringah Mall Frenchs Forest Units 2-3, 14 Aquatic Drive Frenchs Forest 2086 NSWA], [TAR5081STAshfield Ashfield Mall Knox Street Ashfield 2131 NSWA]]' ) ## select('Table', '') rightclick('Table', '1 - 1|Data,1') select_menu(commonBits.fl('Edit Record')) assert_p( 'HexThreeLineField', 'Text', '''TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA 54533335556676762222222222222222222222222222566767622222222222222222222222222222222233246666625776672222222222222222222222225667676222222222222222222222222222233332222224554 41250193405e2948000000000000000000000000000005e2948000000000000000000000000000000000580c5c1e4034255400000000000000000000000005e294800000000000000000000000000002750000000e371''' ) ## assert_p('Table', 'Content', '[[Data, 1, 1, TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA, T, 54]]') assert_p( 'Table', 'Content', '[[Data, 1, 1, TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA, T, 54415235303139535450656e726974682020202020202020202020202020202020202020202020202020202050656e726974682020202020202020202020202020202020202020202020202020202020202020203538204c656c616e642053747265657420202020202020202020202020202020202020202020202050656e7269746820202020202020202020202020202020202020202020202020202020323735302020202020204e535741]]' ) assert_p( 'Table', 'Text', 'TAR5019STPenrith Penrith 58 Leland Street Penrith 2750 NSWA', commonBits.fl('Data') + ',0') click('Right') select( 'Table', 'cell:' + commonBits.fl('Data') + ',0(TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA)' ) select( 'Table', 'cell:' + commonBits.fl('Data') + ',0(TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA)' ) assert_p( 'Table', 'Text', 'TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA', commonBits.fl('Data') + ',0') select( 'Table', 'cell:' + commonBits.fl('Data') + ',0(TAR5033STBlacktown Marayong Dock 2, 11 Melissa Place Marayong 2148 NSWA)' ) click('Right') assert_p( 'Table', 'Text', 'TAR5035STRockdale Building B, Portside DC 2-8 Mc Pherson Street Botany 2019 NSWA', commonBits.fl('Data') + ',0') close()
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') select_menu( commonBits.fl('Edit') + '>>' + commonBits.fl('Update Csv Columns')) select('FieldChange_JTbl', commonBits.fl('Number'), commonBits.fl('Type') + ',5') select('FieldChange_JTbl', 'cell:' + commonBits.fl('Type') + ',5(Number)') click(commonBits.fl('Apply')) select('LineList.FileDisplay_JTbl', 'cell:1|KEYCODE-NO,0(63604808)') click('Find1') select('Find.Search For_Txt', '5.95') select('Find.Field_Txt', 'SALE-PRICE') select('Find.Operator_Txt', '<') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '3, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '4, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '6, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '8, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '11, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '12, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '14, 5, 0') commonBits.find(click) if window(''): click('No') close() assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '18, 5, 0') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Create Layout')) select('RecordDef.Record Name_Txt', 'zxzxzFLDg777') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records') ) select('RecordDef.System_Txt', 'Unkown') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zxzxzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(zxzxzFLD1)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1()') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'zxzxzFLD2', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zxzxzFLD2)') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ]]') select('ChildRecordsJTbl', 'cell: ,1(null)') commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zxzxzFLDg777aaaa') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '1111', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'fff', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fff, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777aaaa') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLDg777aaaa, , , , , ]]') select('ChildRecordsJTbl', 'zxzxzFLDg777aaaa', commonBits.fl('Tree Parent') + ',1') select('ChildRecordsJTbl', 'cell: ,2(null)') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLDg777aaaa') select('OptionPane.textField', 'zxzxzFLDg777bbbb') click('OK') close() select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') select('RecordFieldsJTbl', 'fffbbb', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , ]]') select('ChildRecordsJTbl', 'zxzxzFLDg777aaaa', commonBits.fl('Tree Parent') + ',3') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',3(zxzxzFLDg777aaaa)') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa]]') select('ChildRecordsJTbl', 'cell: ,3(null)') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxzxzFLDg777cccc') click('OK') close() assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777cccc, , , , , ]]') select('ChildRecordsJTbl', 'zxzxzFLDg777bbbb', commonBits.fl('Tree Parent') + ',4') select('ChildRecordsJTbl', 'cell: ,4(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') select('RecordDef.Record Name_Txt', 'zxzxzFLDg777dddd') commonBits.save1(click) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxzxzFLDg777eeee') click('OK') close() assert_p('RecordFieldsJTbl', 'Text', '', commonBits.fl('Description') + ',0') select('RecordFieldsJTbl', 'fffbbbee', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'Text', '', commonBits.fl('Description') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777dddd, , , , , zxzxzFLDg777bbbb], [, zxzxzFLDg777eeee, , , , , ]]') click(commonBits.fl('Refresh') ) select('ChildRecordsJTbl', 'cell: ,4(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777dddd') click('BasicInternalFrameTitlePane$NoFocusButton2') select('ChildRecordsJTbl', 'zxzxzFLDg777aaaa', commonBits.fl('Tree Parent') + ',5') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',5(zxzxzFLDg777aaaa)') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777cccc, , , , , zxzxzFLDg777bbbb], [, zxzxzFLDg777eeee, , , , , zxzxzFLDg777aaaa]]') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777dddd, , , , , zxzxzFLDg777bbbb], [, zxzxzFLDg777eeee, , , , , zxzxzFLDg777aaaa]]') select('ChildRecordsJTbl', 'cell: ,3(null)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777bbbb') commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLDg777bbbb')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777dddd, , , , , zxzxzFLDg777bbbb], [, zxzxzFLDg777eeee, , , , , zxzxzFLDg777aaaa]]') ## assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777bbbb, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777dddd, , , , , zxzxzFLDg777bbbb], [, zxzxzFLDg777eeee, , , , , zxzxzFLDg777aaaa]]') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , zxzxzFLDg777aaaa], [, zxzxzFLDg777aaaa, , , , , ], [, zxzxzFLDg777dddd, , , , , ], [, zxzxzFLDg777eeee, , , , , zxzxzFLDg777aaaa]]') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p('RecordFieldsJTbl', 'Text', 'fff', commonBits.fl('FieldName') + ',0') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777aaaa') commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLDg777aaaa')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLDg777dddd, , , , , ], [, zxzxzFLDg777eeee, , , , , ]]') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',3()') select('ChildRecordsJTbl', 'zxzxzFLDg777dddd', commonBits.fl('Tree Parent') + ',3') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field Value') + ',2()') click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('RecordList.Record Name_Txt', 'zxzxzFLDg777') select('RecordList.Description_Txt', '%') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLDg777dddd, , , , , ], [, zxzxzFLDg777eeee, , , , , zxzxzFLDg777dddd]]') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777dddd') commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLDg777dddd')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ], [, zxzxzFLDg777eeee, , , , , ]]') select('ChildRecordsJTbl', 'cell: ,2(null)') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg777eeee') commonBits.delete2(click) if window(commonBits.fl('Delete: zxzxzFLDg777eeee')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ]]') commonBits.delete3(click) if window(commonBits.fl('Delete: zxzxzFLDg777')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2')
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_PODownload_20041231.txt') commonBits.setRecordLayout(select, 'zzAms PO Download') commonBits.doEdit(click) click('Filter') select('Table', 'false', commonBits.fl('Include') + ',1') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'cell:' + commonBits.fl('Field') + ',0(null)') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'Record Type', commonBits.fl('Field') + ',0') select('Table2', 's', commonBits.fl('Value') + ',0') select('Table2', 'cell:' + commonBits.fl('Value') + ',1()') commonBits.filter(click) select('LayoutCombo', 'ams PO Download: Detail') select('Table', 'cell:3 - 9|Pack Qty,2(50360.0000)') assert_p('Table', 'Text', '50360.0000', '3 - 9|Pack Qty,2') select('Table', 'cell:3 - 9|Pack Qty,4(50430.0000)') assert_p('Table', 'ColumnCount', '9') select('Table', 'cell:3 - 9|Pack Qty,4(50430.0000)') rightclick('Table', '3 - 9|Pack Qty,2') select_menu(commonBits.fl('Edit Record')) ## select('LayoutCombo', 'ams PO Download: Detail') ## select('Table1', 'cell:3 - 9|Pack Qty,4(50430.0000)') select('Table', 'cell:' + commonBits.fl('Data') + ',3(550450000000)') ## assert_p('Table', 'Content', '[[Record Type, 1, 2, S1, S1], [Pack Qty, 3, 9, 50360.0000, 503600000], [Pack Cost, 12, 13, 3504300.0000, 0035043000000], [APN, 25, 13, 550450000000, 0550450000000], [Filler, 38, 1, 5, 5], [Product, 39, 8, 33315071, 33315071], [pmg dtl tech key, 72, 15, 004507600000004, 004507600000004], [Case Pack id, 87, 15, 507900000002509, 507900000002509], [Product Name, 101, 50, 9400000004512800000003, 9400000004512800000003]]') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5036, 5036], [Pack Quantity 1, 7, 8, 3, 00000003], [DC Number 2, 15, 4, 5043, 5043], [Pack Quantity 2, 19, 8, 5, 00000005], [DC Number 4, 39, 4, 3331, 3331], [Pack Quantity 4, 43, 8, 50710003, 50710003], [DC Number 5, 51, 4, 5065, 5065], [Pack Quantity 5, 55, 8, 4, 00000004], [DC Number 6, 63, 4, 5069, 5069], [Pack Quantity 6, 67, 8, 4, 00000004], [DC Number 7, 75, 4, 5076, 5076], [Pack Quantity 7, 79, 8, 4, 00000004], [DC Number 8, 87, 4, 5079, 5079], [Pack Quantity 8, 91, 8, 2, 00000002], [DC Number 9, 99, 4, 5094, 5094], [Pack Quantity 9, 103, 8, 4, 00000004], [DC Number 10, 111, 4, 5128, 5128], [Pack Quantity 10, 115, 8, 3, 00000003]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(004507600000004)') assert_p('Table', 'Text', '5065', commonBits.fl('Data') + ',7') select('Table', 'cell:' + commonBits.fl('Data') + ',6(004507600000004)') click('TextArea') assert_p( 'TextArea', 'Text', 'S1503600000003504300000005504500000005333150710003506500000004506900000004507600000004507900000002509400000004512800000003' ) click('Right') ## select('LayoutCombo', 'ams PO Download: Detail') select('Table', 'cell:' + commonBits.fl('Data') + ',3(350720000000)') ## assert_p('Table', 'Content', '[[Record Type, 1, 2, S1, S1], [Pack Qty, 3, 9, 51510.0000, 515100000], [Pack Cost, 12, 13, 4518000.0000, 0045180000000], [APN, 25, 13, 350720000000, 0350720000000], [Filler, 38, 1, 2, 2], [Product, 39, 8, 51730000, 51730000], [pmg dtl tech key, 72, 15, 000 00000000, 000 00000000], [Case Pack id, 87, 15, 00000000, 00000000], [Product Name, 101, 50, 00000000 00000000, 00000000 00000000]]') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5151, 5151], [Pack Quantity 1, 7, 8, 4, 00000004], [DC Number 2, 15, 4, 5180, 5180], [Pack Quantity 2, 19, 8, 3, 00000003], [DC Number 4, 39, 4, 5173, 5173], [Pack Quantity 4, 43, 8, 2, 00000002], [DC Number 5, 51, 4, , ], [Pack Quantity 5, 55, 8, 0, 00000000], [DC Number 6, 63, 4, , ], [Pack Quantity 6, 67, 8, 0, 00000000], [DC Number 7, 75, 4, , ], [Pack Quantity 7, 79, 8, 0, 00000000], [DC Number 8, 87, 4, , ], [Pack Quantity 8, 91, 8, 0, 00000000], [DC Number 9, 99, 4, , ], [Pack Quantity 9, 103, 8, 0, 00000000], [DC Number 10, 111, 4, , ], [Pack Quantity 10, 115, 8, 0, 00000000]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',3(350720000000)') click('TextArea') assert_p( 'TextArea', 'Text', 'S1515100000004518000000003507200000002517300000002 00000000 00000000 00000000 00000000 00000000 00000000' ) click('Right') ## select('LayoutCombo', 'ams PO Download: Detail') select('Table', 'cell:' + commonBits.fl('Data') + ',3(150650000000)') assert_p('Table', 'Text', '1', commonBits.fl('Data') + ',4') select('Table', 'cell:' + commonBits.fl('Data') + ',5(33315156)') ## assert_p('Table', 'Content', '[[Record Type, 1, 2, S1, S1], [Pack Qty, 3, 9, 50430.0000, 504300000], [Pack Cost, 12, 13, 1504500.0000, 0015045000000], [APN, 25, 13, 150650000000, 0150650000000], [Filler, 38, 1, 1, 1], [Product, 39, 8, 33315156, 33315156], [pmg dtl tech key, 72, 15, 000 00000000, 000 00000000], [Case Pack id, 87, 15, 00000000, 00000000], [Product Name, 101, 50, 00000000 00000000, 00000000 00000000]]') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, S1, S1], [DC Number 1, 3, 4, 5043, 5043], [Pack Quantity 1, 7, 8, 1, 00000001], [DC Number 2, 15, 4, 5045, 5045], [Pack Quantity 2, 19, 8, 1, 00000001], [DC Number 4, 39, 4, 3331, 3331], [Pack Quantity 4, 43, 8, 51560001, 51560001], [DC Number 5, 51, 4, , ], [Pack Quantity 5, 55, 8, 0, 00000000], [DC Number 6, 63, 4, , ], [Pack Quantity 6, 67, 8, 0, 00000000], [DC Number 7, 75, 4, , ], [Pack Quantity 7, 79, 8, 0, 00000000], [DC Number 8, 87, 4, , ], [Pack Quantity 8, 91, 8, 0, 00000000], [DC Number 9, 99, 4, , ], [Pack Quantity 9, 103, 8, 0, 00000000], [DC Number 10, 111, 4, , ], [Pack Quantity 10, 115, 8, 0, 00000000]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',5(33315156)') click('TextArea') select('Table', 'cell:' + commonBits.fl('Data') + ',6(000 00000000)') select('Table', 'cell:' + commonBits.fl('Data') + ',6(000 00000000)') click('TextArea') assert_p( 'TextArea', 'Text', 'S1504300000001504500000001506500000001333151560001 00000000 00000000 00000000 00000000 00000000 00000000' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Layout Definitions'): click('*6') select('FileChooser', commonBits.cobolDir() + 'CopyDTAR020.cbl') select('ComputerOptionCombo', commonBits.fl('Mainframe')) select('BmKeyedComboBox1', 'Mainframe') select('BmKeyedComboBox', commonBits.fl('Fixed Length Binary')) # select('BmKeyedComboBox1', '9') # select('BmKeyedComboBox', '2') click(commonBits.fl('Go')) assert_p( 'TextArea', 'Text', commonBits.checkCopybookLoad( commonBits.cobolDir() + 'CopyDTAR020.cbl', 'CopyDTAR020')) assert_p( 'TextArea', 'Text', commonBits.checkCopybookLoad( commonBits.cobolDir() + 'CopyDTAR020.cbl', 'CopyDTAR020')) ## assert_p('TextArea', 'Text', ''' ## ##-->> ''' + commonBits.cobolDir() + '''CopyDTAR020.cbl processed ## ## Copybook: CopyDTAR020''') select_menu( commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout')) select('TextField', '%CopyDTA%') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('TextField1', '%') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(DTAR020-DATE)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 8, DTAR020-KEYCODE-NO, , 0, 0, 0, , , DTAR020-KEYCODE-NO], [9, 2, DTAR020-STORE-NO, , 31, 0, 0, , , DTAR020-STORE-NO], [11, 4, DTAR020-DATE, , 31, 0, 0, , , DTAR020-DATE], [15, 2, DTAR020-DEPT-NO, , 31, 0, 0, , , DTAR020-DEPT-NO], [17, 5, DTAR020-QTY-SOLD, , 31, 0, 0, , , DTAR020-QTY-SOLD], [22, 6, DTAR020-SALE-PRICE, , 31, 2, 0, , , DTAR020-SALE-PRICE]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(DTAR020-STORE-NO)') assert_p('RecordFieldsJTbl', 'RowCount', '6') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(DTAR020-STORE-NO)') assert_p('TextField2', 'Text', 'CopyDTAR020') if commonBits.isTstLanguage(): click(commonBits.fl('Delete') + '1') else: commonBits.delete3(click) if window(commonBits.fl('Delete: CopyDTAR020')): click('Yes') close() #select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') click('BasicInternalFrameTitlePane$NoFocusButton2') click(commonBits.fl('Close')) ## select_menu('File>>Exit') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('reCsv Editor'): select('FilePane$3', 'XfdDTAR020.csv.csv') doubleclick('FilePane$3', '6') click(commonBits.fl('Edit') + '1') select( 'LineList.FileDisplay_JTbl', 'rows:[2,3,4,5,6,7,8,9,10,11,12,13,14,15],columns:[1|KEYCODE-NO,2|STORE-NO]' ) click('Export') select('TabbedPane', commonBits.fl('Fixed')) select( 'File Name_Txt', commonBits.reCsvEditParamDir() + 'ZZZZ_txt_XfdDTAR020.csv.csv.txt') select('names on first line_Chk', 'true') select('space between fields_Chk', 'true') assert_p( 'FixedColNames_JTbl', 'Content', '[[KEYCODE-NO, true, 10], [STORE-NO, true, 8], [DATE, true, 5], [DEPT-NO, true, 7], [QTY-SOLD, true, 8], [SALE-PRICE, true, 10]]' ) select('Edit Output File_Chk', 'true') select('Keep screen open_Chk', 'true') click(commonBits.fl('Save File')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, STORE-NO, DATE, DEPT-NO, QTY-SOLD, SALE-PRICE], [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]]' ) select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO STORE-NO DATE DEPT-NO QTY-SOLD SALE-PRICE], [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]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') select('What to Save_Txt', commonBits.fl('Selected Records')) click(commonBits.fl('Save File')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, STORE-NO, DATE, DEPT-NO, QTY-SOLD, SALE-PRICE], [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]]' ) select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO STORE-NO DATE DEPT-NO QTY-SOLD SALE-PRICE], [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]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') select('names on first line_Chk', 'false') click(commonBits.fl('Save File')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[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]]' ) select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[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]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') select('names on first line_Chk', 'true') select('FixedColNames_JTbl', 'cell:' + commonBits.fl('Include') + ',2(true)') select('FixedColNames_JTbl', 'cell:' + commonBits.fl('Include') + ',5(true)') click(commonBits.fl('Save File')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, STORE-NO, DEPT-NO, QTY-SOLD], [69694158, 20, 280, 1], [63604808, 20, 170, 1], [62684671, 20, 685, 1], [62684671, 20, 685, -1], [64634429, 20, 957, 1], [66624458, 20, 957, 1], [63674861, 20, 957, 10], [65674532, 20, 929, 1], [64614401, 59, 957, 1], [64614401, 59, 957, 1], [61664713, 59, 335, 1], [61664713, 59, 335, -1], [68634752, 59, 410, 1]]' ) select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO STORE-NO DEPT-NO QTY-SOLD], [69694158 20 280 1], [63604808 20 170 1], [62684671 20 685 1], [62684671 20 685 -1], [64634429 20 957 1], [66624458 20 957 1], [63674861 20 957 10], [65674532 20 929 1], [64614401 59 957 1], [64614401 59 957 1], [61664713 59 335 1], [61664713 59 335 -1], [68634752 59 410 1]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') select('FixedColNames_JTbl', 'cell:' + commonBits.fl('Include') + ',5(false)') select('FixedColNames_JTbl', 'cell:' + commonBits.fl('Include') + ',3(true)') click(commonBits.fl('Save File')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, STORE-NO, QTY-SOLD, SALE-PRICE], [69694158, 20, 1, 5.01], [63604808, 20, 1, 4.87], [62684671, 20, 1, 69.99], [62684671, 20, -1, -69.99], [64634429, 20, 1, 3.99], [66624458, 20, 1, 0.89], [63674861, 20, 10, 2.70], [65674532, 20, 1, 3.59], [64614401, 59, 1, 1.99], [64614401, 59, 1, 1.99], [61664713, 59, 1, 17.99], [61664713, 59, -1, -17.99], [68634752, 59, 1, 8.99]]' ) select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO STORE-NO QTY-SOLD SALE-PRICE], [69694158 20 1 5.01], [63604808 20 1 4.87], [62684671 20 1 69.99], [62684671 20 -1 -69.99], [64634429 20 1 3.99], [66624458 20 1 0.89], [63674861 20 10 2.70], [65674532 20 1 3.59], [64614401 59 1 1.99], [64614401 59 1 1.99], [61664713 59 1 17.99], [61664713 59 -1 -17.99], [68634752 59 1 8.99]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') select('What to Save_Txt', commonBits.fl('File')) click(commonBits.fl('Save File')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO, STORE-NO, QTY-SOLD, SALE-PRICE], [69684558, 20, 1, 5.01], [69694158, 20, 1, 19.00], [69694158, 20, -1, -19.00], [69694158, 20, 1, 5.01], [63604808, 20, 1, 4.87], [62684671, 20, 1, 69.99], [62684671, 20, -1, -69.99], [64634429, 20, 1, 3.99], [66624458, 20, 1, 0.89], [63674861, 20, 10, 2.70], [65674532, 20, 1, 3.59], [64614401, 59, 1, 1.99], [64614401, 59, 1, 1.99], [61664713, 59, 1, 17.99], [61664713, 59, -1, -17.99], [68634752, 59, 1, 8.99], [60614487, 59, 1, 5.95], [63644339, 59, 1, 12.65], [60694698, 59, 1, 3.99], [60664659, 59, 1, 3.99], [62684217, 59, 1, 9.99], [67674686, 59, 1, 3.99]]' ) select('LineList.Layouts_Txt', commonBits.fl('Full Line')) assert_p( 'LineList.FileDisplay_JTbl', 'Content', '[[KEYCODE-NO STORE-NO QTY-SOLD SALE-PRICE], [69684558 20 1 5.01], [69694158 20 1 19.00], [69694158 20 -1 -19.00], [69694158 20 1 5.01], [63604808 20 1 4.87], [62684671 20 1 69.99], [62684671 20 -1 -69.99], [64634429 20 1 3.99], [66624458 20 1 0.89], [63674861 20 10 2.70], [65674532 20 1 3.59], [64614401 59 1 1.99], [64614401 59 1 1.99], [61664713 59 1 17.99], [61664713 59 -1 -17.99], [68634752 59 1 8.99], [60614487 59 1 5.95], [63644339 59 1 12.65], [60694698 59 1 3.99], [60664659 59 1 3.99], [62684217 59 1 9.99], [67674686 59 1 3.99]]' ) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zxxxzFLDg1') select('RecordList.Description_Txt', '%') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zxxxzFLDg4') click('OK') close() select('RecordList.Record Name_Txt', 'zxxxzFLDg1%') select('RecordList.Description_Txt', '%%') select('RecordList.Record Name_Txt', 'zxxxzFLDg4') select('RecordList.Description_Txt', '%') # select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu( commonBits.fl('Edit Record Selections')) select('Lines to Insert_Txt', '2') click(commonBits.fl('Insert')) select('Lines to Insert_Txt', '') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl', 'fld 12', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl', '11', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl', '12', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl', 'rows:[0,1],columns:[' + commonBits.fl('Field Value') + ']') commonBits.copy2(click) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1(12)') commonBits.paste2(click) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',3(12)') commonBits.paste2(click) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',5(12)') commonBits.paste2(click) assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12]]') select('RecordSelectionJTbl', '11a', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl', '12a', commonBits.fl('Field Value') + ',3') select('RecordSelectionJTbl', '11b', commonBits.fl('Field Value') + ',4') select('RecordSelectionJTbl', '12b', commonBits.fl('Field Value') + ',5') select('RecordSelectionJTbl', '11c', commonBits.fl('Field Value') + ',6') select('RecordSelectionJTbl', '12c', commonBits.fl('Field Value') + ',7') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [, ' + commonBits.fl('And') + ', fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [, ' + commonBits.fl('And') + ', fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'or,6') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [, ' + commonBits.fl('And') + ', fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'or,4') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'and,2') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, And, fld 12, =, 12], [Or, , fld 11, =, 11a], [, And, fld 12, =, 12a], [Or, , fld 11, =, 11b], [, And, fld 12, =, 12b], [Or, , fld 11, =, 11c], [, And, fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'or,2') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'or,2') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [' + commonBits.fl('Or') + ', , fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'or,2') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'and,2') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [' + commonBits.fl('Or') + ', , fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') rightclick('RecordSelectionJTbl', 'and,2') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',6(11c)') click('BasicInternalFrameTitlePane$NoFocusButton2') select('RecordList.Record Name_Txt', 'zxxxzFLDg1') select('RecordList.Description_Txt', '%%') select('RecordList.Record Name_Txt', 'zxxxzFLDg4') select('RecordList.Description_Txt', '%') ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',0') select_menu( commonBits.fl('Edit Record Selections')) assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [, ' + commonBits.fl('And') + ', fld 12, =, 12], [, ' + commonBits.fl('And') + ', fld 11, =, 11a], [, ' + commonBits.fl('And') + ', fld 12, =, 12a], [' + commonBits.fl('Or') + ', , fld 11, =, 11b], [, ' + commonBits.fl('And') + ', fld 12, =, 12b], [' + commonBits.fl('Or') + ', , fld 11, =, 11c], [, ' + commonBits.fl('And') + ', fld 12, =, 12c]]') click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.delete3(click) if window(commonBits.fl('Delete: zxxxzFLDg4')): click('Yes') close() click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*1') select('RecordDef.Record Name_Txt', 'xxzzxx') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) select('TabbedPane', commonBits.fl('Child Records')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'ams PO Download: Allocation', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'ams PO Download: Detail', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'ams PO Download: Detail', commonBits.fl('Tree Parent') + ',0') select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(ams PO Download: Detail)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]' ) select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(ams PO Download: Detail)') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xxzzxx11') click('OK') close() #select('TabbedPane', 'Extras') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]' ) select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(ams PO Download: Allocation)') select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(ams PO Download: Allocation)') assert_p( 'ChildRecordsJTbl', 'Text', 'cell:' + commonBits.fl('Child Record') + ',0(ams PO Download: Allocation)') select( 'ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(ams PO Download: Allocation)') click('BasicInternalFrameTitlePane$NoFocusButton2') click('*') select('RecordList.Record Name_Txt', 'xxzzxx') select('RecordList.Description_Txt', '%') ## assert_p('ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]' ) select('RecordList.Record Name_Txt', 'xxzzxx11') select('RecordList.Description_Txt', '%%') assert_p( 'ChildRecordsJTbl', 'Content', '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Create Layout')) select('RecordDef.Record Name_Txt', 'zx3e3xzFLDg65') select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')) select('RecordDef.System_Txt', 'Unkown') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Extras') #select('TabbedPane', 'Child Records') ## click('ScrollPane$ScrollBar', 5, 43) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zxxxzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'zxxxzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'zxxxzFLD3', commonBits.fl('Child Record') + ',2') select('ChildRecordsJTbl', 'zxxxzFLD3', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'zxxxzFLD1', commonBits.fl('Tree Parent') + ',1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',1(zxxxzFLD1)') rightclick('ChildRecordsJTbl', commonBits.fl('Field Value') + ',0') select_menu( commonBits.fl('Edit Record Selections')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) ## select('RecordSelectionJTbl', '') rightclick('RecordSelectionJTbl', 'and,1') ## select('RecordSelectionJTbl', '') rightclick('RecordSelectionJTbl', 'and,2') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl', 'fld 12', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl', 'fld 13', commonBits.fl('Field') + ',2') select('RecordSelectionJTbl', '11', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl', '12', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl', '13', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1(12)') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 12, =, 12], [' + commonBits.fl('Or') + ', , fld 13, =, 13]]') select('TabbedPane', 'zxxxzFLD2') click(commonBits.fl('Insert') + '1') click(commonBits.fl('Insert') + '1') ### select('RecordSelectionJTbl1', '') rightclick('RecordSelectionJTbl1', 'and,1') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl1', 'fld 21', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl1', 'fld 21', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl1', '21', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl1', '12', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl1', 'cell:' + commonBits.fl('Field Value') + ',0(21)') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [' + commonBits.fl('Or') + ', , fld 21, =, 12]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 12, =, 12], [, , , Or , , fld 13, =, 13], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ]]') assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 12], [, , , ' + commonBits.fl('Or') + ' , , fld 13, =, 13], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ]]') select('TabbedPane', 'zxxxzFLD3') click(commonBits.fl('Insert') + '2') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field') + ',0()') select('RecordSelectionJTbl2', 'fld 31', commonBits.fl('Field') + ',0') select('RecordSelectionJTbl2', '31', commonBits.fl('Field Value') + ',0') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field') + ',0(fld 31)') assert_p('RecordSelectionJTbl2', 'Content', '[[, , fld 31, =, 31]]') select('TabbedPane', commonBits.fl('Summary')) select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 2') + ' ,3(Or )') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 2') + ' ,3(Or )') ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 12, =, 12], [, , , Or , , fld 13, =, 13], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ], [, , And , , , fld 31, =, 31]]') assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 12], [, , , ' + commonBits.fl('Or') + ' , , fld 13, =, 13], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 31, =, 31]]') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 2') + ' ,3(Or )') click('BasicInternalFrameTitlePane$NoFocusButton2') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zx3e3xzFLDg654') click('OK') close() ## select('TabbedPane', 'Child Records') assert_p('ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , , , , zxxxzFLD3], [, zxxxzFLD2, , , , , zxxxzFLD1], [, zxxxzFLD3, , , , , ]]') # select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field Value') + ',0') select_menu( commonBits.fl('Edit Record Selections')) assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 12, =, 12], [' + commonBits.fl('Or') + ', , fld 13, =, 13]]') select('TabbedPane', 'zxxxzFLD2') assert_p('RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [' + commonBits.fl('Or') + ', , fld 21, =, 12]]') select('TabbedPane', 'zxxxzFLD3') assert_p('RecordSelectionJTbl2', 'Content', '[[, , fld 31, =, 31]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 12, =, 12], [, , , Or , , fld 13, =, 13], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ], [, , And , , , fld 31, =, 31]]') assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 12], [, , , ' + commonBits.fl('Or') + ' , , fld 13, =, 13], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 31, =, 31]]') select('TabbedPane', 'zxxxzFLD1') assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 12, =, 12], [' + commonBits.fl('Or') + ', , fld 13, =, 13]]') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',1(12)') click(commonBits.fl('Insert')) select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field') + ',2()') select('RecordSelectionJTbl', 'fld 12', commonBits.fl('Field') + ',2') select('RecordSelectionJTbl', '21', commonBits.fl('Field Value') + ',2') select('RecordSelectionJTbl', 'cell:' + commonBits.fl('Field Value') + ',2()') rightclick('RecordSelectionJTbl', 'and,2') select('TabbedPane', 'zxxxzFLD3') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field Value') + ',0(31)') click(commonBits.fl('Insert') + '2') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field') + ',1()') select('RecordSelectionJTbl2', 'fld 31', commonBits.fl('Field') + ',1') select('RecordSelectionJTbl2', '13', commonBits.fl('Field Value') + ',1') select('RecordSelectionJTbl2', 'cell:' + commonBits.fl('Field Value') + ',1()') rightclick('RecordSelectionJTbl2', 'and,1') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 12, =, 12], [, , , Or , , fld 12, =, 21], [, , , Or , , fld 13, =, 13], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ], [, , And , , , fld 31, =, 31], [, , , Or , , fld 31, =, 13]]') assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 12], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 13, =, 13], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 31, =, 31], [, , , ' + commonBits.fl('Or') + ' , , fld 31, =, 13]]') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p('ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , , , , zxxxzFLD3], [, zxxxzFLD2, , , , , zxxxzFLD1], [, zxxxzFLD3, , , , , ]]') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Editor'): select('File_Txt', commonBits.sampleDir() + 'DTAR020_tst1.bin') 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', 'DEPT-NO', commonBits.fl('Field') + ',1') select('fields_JTbl', 'cell:' + commonBits.fl('Field') + ',1(DEPT-NO)') select('fieldSummary_JTbl', 'cell:' + commonBits.fl('Function') + ',1()') select('fields_JTbl', 'cell:' + commonBits.fl('Field') + ',1(DEPT-NO)') select('fieldSummary_JTbl', commonBits.fl('Minimum'), commonBits.fl('Function') + ',1') select('fieldSummary_JTbl', commonBits.fl('Minimum'), commonBits.fl('Function') + ',3') 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(Sum)') click(commonBits.fl('Build Tree')) select('LineTree.FileDisplay_JTbl', 'cell:DATE,10()') assert_p( 'LineTree.FileDisplay_JTbl', 'Content', '[[, , , 20, , 170, 2, 9.88], [, , , 20, , 170, 1, 4.87], [, , 63604808, 20, 40118, 170, 1, 4.87], [, , , 20, , 280, 1, 5.01], [, , 69684558, 20, 40118, 280, 1, 19.00], [, , 69684558, 20, 40118, 280, -1, -19.00], [, , 69694158, 20, 40118, 280, 1, 5.01], [, , , 20, , 685, 0, 0.00], [, , 62684671, 20, 40118, 685, 1, 69.99], [, , 62684671, 20, 40118, 685, -1, -69.99], [, , , 59, , 335, 5, 35.91], [, , , 59, , 335, 1, 12.99], [, , 61664713, 59, 40118, 335, 1, 17.99], [, , 61664713, 59, 40118, 335, -1, -17.99], [, , 61684613, 59, 40118, 335, 1, 12.99], [, , , 59, , 410, 1, 8.99], [, , 68634752, 59, 40118, 410, 1, 8.99], [, , , 59, , 620, 2, 7.98], [, , 60694698, 59, 40118, 620, 1, 3.99], [, , 60664659, 59, 40118, 620, 1, 3.99], [, , , 59, , 878, 1, 5.95], [, , 60614487, 59, 40118, 878, 1, 5.95], [, , , 166, , 60, 4, 42.56], [, , , 166, , 60, 1, 5.08], [, , 68654655, 166, 40118, 60, 1, 5.08], [, , , 166, , 80, 2, 31.49], [, , 69624033, 166, 40118, 80, 1, 18.19], [, , 60604100, 166, 40118, 80, 1, 13.30], [, , , 166, , 170, 1, 5.99], [, , 68674560, 166, 40118, 170, 1, 5.99]]' ) select('LineTree.FileDisplay_JTbl', 'cell:DATE,10()') select_menu( commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) select('LineTree.FileDisplay_JTbl', 'cell:DATE,10()') select('LineTree.FileDisplay_JTbl', 'cell:DATE,10()') select('LineTree.FileDisplay_JTbl', 'cell:DATE,10()') select('Table', 'cell:' + commonBits.fl('Show') + ',5(true)') select('Table', 'cell:' + commonBits.fl('Show') + ',2(true)') click(commonBits.fl('Go')) assert_p( 'LineTree.FileDisplay_JTbl', 'Content', '[[, , , 20, 170, 2], [, , , 20, 170, 1], [, , 63604808, 20, 170, 1], [, , , 20, 280, 1], [, , 69684558, 20, 280, 1], [, , 69684558, 20, 280, -1], [, , 69694158, 20, 280, 1], [, , , 20, 685, 0], [, , 62684671, 20, 685, 1], [, , 62684671, 20, 685, -1], [, , , 59, 335, 5], [, , , 59, 335, 1], [, , 61664713, 59, 335, 1], [, , 61664713, 59, 335, -1], [, , 61684613, 59, 335, 1], [, , , 59, 410, 1], [, , 68634752, 59, 410, 1], [, , , 59, 620, 2], [, , 60694698, 59, 620, 1], [, , 60664659, 59, 620, 1], [, , , 59, 878, 1], [, , 60614487, 59, 878, 1], [, , , 166, 60, 4], [, , , 166, 60, 1], [, , 68654655, 166, 60, 1], [, , , 166, 80, 2], [, , 69624033, 166, 80, 1], [, , 60604100, 166, 80, 1], [, , , 166, 170, 1], [, , 68674560, 166, 170, 1]]' ) ## select('LineTree.FileDisplay_JTbl', '') rightclick('LineTree.FileDisplay_JTbl', 'STORE-NO,2') select_menu(commonBits.fl('Edit Record')) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' 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', '4 - 4|Loc Nbr,5') # select('Table', 'cell:4 - 4|Loc Nbr,0(5839)') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:4 - 4|Loc Nbr,0(5839)') assert_p( 'Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5019, 5019], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Penrith, Penrith], [Loc Addr Ln1, 45, 40, Penrith, Penrith], [Loc Addr Ln2, 85, 40, 58 Leland Street, 58 Leland Street], [Loc Addr Ln3, 125, 35, Penrith, Penrith], [Loc Postcode, 160, 10, 2750, 2750], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]' ) assert_p('TextField', 'Text', '6') # select('Table', '') rightclick('Table', commonBits.fl('Data') + ',4') ## zzz select_menu(commonBits.fl('Goto Line')) select('TextField', '20') click(commonBits.fl('Goto')) select_menu( commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Record:')) assert_p('JTableHeader', 'Text', commonBits.fl('Field'), commonBits.fl('Field')) 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, Westfield Phoenix Plaza, Westfield 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', '') rightclick('Table', commonBits.fl('Data') + ',4') select_menu(commonBits.fl('Goto Line')) select('TextField', '35') click(commonBits.fl('Goto')) select_menu( commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Record:')) assert_p('TextField', 'Text', '35') assert_p( 'Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5011, 5011], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Cessnock, Cessnock], [Loc Addr Ln1, 45, 40, Cessnock City Centre, Cessnock City Centre], [Loc Addr Ln2, 85, 40, Cnr. North Avenue & Darwin Street, Cnr. North Avenue & Darwin Street], [Loc Addr Ln3, 125, 35, Cessnock, Cessnock], [Loc Postcode, 160, 10, 2325, 2325], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]' ) commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu( commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Table:')) select('Table', 'cell:4 - 4|Loc Nbr,0(5839)') select('Table', 'cell:4 - 4|Loc Nbr,0(5839)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Layout Definitions'): select('TextArea', '') click('BaseHelpPanel', 111, 115) click('*') commonBits.new1(click) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) select('TextField2', 'xwz 1') click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '4', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'z', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', '5', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'f1', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', '10', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', 'f2', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(f2)') assert_p('RecordFieldsJTbl', 'RowCount', '3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(f1)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 4, z, , 0, 0, 0, , , ], [5, 5, f1, , 0, 0, 0, , , ], [10, 5, f2, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') commonBits.save1(click) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 2') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ## select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(f2)') ##commonBits.delete2(click) commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '4', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '44', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'f', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '5', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', '5', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '6', commonBits.fl('Position') + ',3') select('RecordFieldsJTbl', '6', commonBits.fl('Length') + ',3') select('RecordFieldsJTbl', '6', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') assert_p('RecordFieldsJTbl', 'RowCount', '4') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 4, z, , 0, 0, 0, , , ], [4, 44, f, , 0, 0, 0, , , ], [5, 5, 5, , 0, 0, 0, , , ], [6, 6, 6, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',3(6)') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(5)') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(f)') commonBits.delete2(click) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') assert_p('RecordFieldsJTbl', 'ColumnCount', '10') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') assert_p('RecordFieldsJTbl', 'RowCount', '1') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') assert_p('RecordFieldsJTbl', 'Content', '[[1, 4, z, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(z)') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 3') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 4') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'xwz 5') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('TextField', 'xwz 5') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('TextField1', '%') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 5')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('TextField', 'xwz 1') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 1')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) select('TextField', 'xwz 2') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 2')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) keystroke('TextField1', 'Down') select('TextField', 'xwz 3') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 3')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) select('TextField', 'xwz 4') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) commonBits.delete3(click) if window(commonBits.fl('Delete: xwz 4')): click('Yes') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') select('TabbedPane', commonBits.fl('Fields')) click('BasicInternalFrameTitlePane$NoFocusButton2') ##click('MetalInternalFrameTitlePane', 129, 14) close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_03' if window('Record Editor'): click(commonBits.fl('Choose File')) if window('Open'): select(commonBits.selectPane(), 'Ams_LocDownload_20041228.txt') click('Open') close() click(commonBits.fl('Edit') + '1') click('Filter1') select('Table1', 'Loc Type', commonBits.fl('Field') + ',0') select('Table1', 'st', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Field') + ',2(null)') commonBits.save1(click) ##select('FileChooser', commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') commonBits.save1(click) select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Filter Options')) commonBits.filter(click) select('Table', 'cell:10 - 35|Loc Name,0(Bankstown)') assert_p('Table', 'Text', 'Bankstown', '10 - 35|Loc Name,0') select('Table', 'cell:8 - 2|Loc Type,1(ST)') rightclick('Table', '8 - 2|Loc Type,1') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:8 - 2|Loc Type,1(ST)') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') assert_p('Table', 'Text', 'Penrith', commonBits.fl('Data') + ',6') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5019, 5019], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Penrith, Penrith], [Loc Addr Ln1, 45, 40, Penrith, Penrith], [Loc Addr Ln2, 85, 40, 58 Leland Street, 58 Leland Street], [Loc Addr Ln3, 125, 35, Penrith, Penrith], [Loc Postcode, 160, 10, 2750, 2750], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]') select('Table', 'cell:' + commonBits.fl('Data') + ',5(58 Leland Street)') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') select('Table', 'cell:8 - 2|Loc Type,1(ST)') select('Table', 'cell:8 - 2|Loc Type,1(ST)') select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Table:')) select('Table2', 'cell:8 - 2|Loc Type,1(ST)') select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Execute Saved Filter')) ##select('FileChooser', commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') commonBits.selectFileName(select, keystroke, commonBits.userDir() + 'Filter' + commonBits.fileSep() + 'xx2') click(commonBits.fl('Run Dialog') ) select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') rightclick('Table1', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') rightclick('Table1', commonBits.fl('Value') + ',0') assert_p('Table1', 'Text', 'st', commonBits.fl('Value') + ',0') select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') ## assert_p('Table1', 'Content', '[[Loc Type, true, Contains, st], [, true, Contains, ], [, true, Contains, ], [, true, Contains, ]]') ## assert_p('Table1', 'Content', '[[, , Loc Type, true, Contains, st], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ], [, And, , true, Contains, ]]'); ## assert_p('Table1', 'Content', '[[, , Loc Type, true, ' + commonBits.fl('Contains') + ', st], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]'); assert_p('Table1', 'Content', '[[, , Loc Type, true, ' + commonBits.fl('Contains') + ', st], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', , true, ' + commonBits.fl('Contains') + ', ]]'); ## assert_p('Table1', 'Content', '[[, , Loc Type, true, ' + commonBits.fl('Contains') + ', st], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ], [, And, , true, ' + commonBits.fl('Contains') + ', ]]'); select('Table1', 'cell:' + commonBits.fl('Value') + ',0(st)') commonBits.filter(click) select('Table', 'cell:10 - 35|Loc Name,6(Leichhardt)') assert_p('Table', 'Text', 'Leichhardt', '10 - 35|Loc Name,6') select('Table', 'cell:10 - 35|Loc Name,13(Carlingford Court)') rightclick('Table', '10 - 35|Loc Name,13') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:10 - 35|Loc Name,13(Carlingford Court)') select('Table', 'cell:' + commonBits.fl('Data') + ',5(Dock 1, 11 Melissa Place)') assert_p('Table', 'Text', 'Dock 1, 11 Melissa Place', commonBits.fl('Data') + ',5') select('Table', 'cell:' + commonBits.fl('Data') + ',5(Dock 1, 11 Melissa Place)') assert_p('Table', 'Content', '[[Brand Id, 1, 3, TAR, TAR], [Loc Nbr, 4, 4, 5090, 5090], [Loc Type, 8, 2, ST, ST], [Loc Name, 10, 35, Carlingford Court, Carlingford Court], [Loc Addr Ln1, 45, 40, , ], [Loc Addr Ln2, 85, 40, Dock 1, 11 Melissa Place, Dock 1, 11 Melissa Place], [Loc Addr Ln3, 125, 35, Marayong, Marayong], [Loc Postcode, 160, 10, 2148, 2148], [Loc State, 170, 3, NSW, NSW], [Loc Actv Ind, 173, 1, A, A]]')
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Editor'): select('File_Txt', commonBits.sampleDir() + 'wx5File.txt') select('Record Layout_Txt', 'wx5File') click(commonBits.fl('Edit') + '1') select('LineList.FileDisplay_JTbl', 'cell:3 - 2|RecordType2,0(HD)') rightclick('LineList.FileDisplay_JTbl', '1 - 1|RecordType1,0') select('LineList.FileDisplay_JTbl', 'cell:3 - 2|RecordType2,0(HD)') rightclick('LineList.FileDisplay_JTbl', '3 - 2|RecordType2,0') select_menu(commonBits.fl('Edit Record')) select('LineList.FileDisplay_JTbl', 'cell:3 - 2|RecordType2,0(HD)') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, H, H], [RecordType2, 3, 2, HD, HD], [RunDate, 5, 8, 20100101, 20100101], [RunNumber, 13, 8, 1, 00000001]]' ) click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, HD, HD], [Dept, 5, 4, 121, 121], [Product, 9, 8, 12121, 00012121]]' ) click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 01, 01], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 02, 02], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01 1') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 05, 05], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01 2') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 07, 07], [Field71, 5, 6, 21, 21], [Field72, 11, 9, 2223, 00002223], [Field73, 26, 3, 123, 123]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd07') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 02, 02], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01 1') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 01, 01], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 07, 07], [Field71, 5, 6, 21, 21], [Field72, 11, 9, 1234, 000001234], [Field73, 26, 3, 123, 123]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd07') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 01, 01], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, HD, HD], [Dept, 5, 4, 121, 121], [Product, 9, 8, 12121, 00012121]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProdHead') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 01, 01], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 02, 02], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd01 1') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 05, 05], [Field11, 5, 4, 21, 21], [Field12, 9, 8, 22, 00000022], [Field13, 17, 3, 23, 23]]' ) click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, P, P], [RecordType2, 3, 2, 07, 07], [Field71, 5, 6, 21, 21], [Field72, 11, 9, 2332, 000002332], [Field73, 26, 3, 123, 123]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwProd07') click('Right') assert_p( 'LineFrame.FileDisplay_JTbl', 'Content', '[[RecordType1, 1, 1, T, T], [RecordType2, 3, 2, TR, TR], [Count, 17, 8, 123, 00000123]]' ) assert_p('LineFrame.Layouts_Txt', 'Text', 'wwTrailer') click('BasicInternalFrameTitlePane$NoFocusButton2') select('LineList.FileDisplay_JTbl', 'cell:3 - 2|RecordType2,0(HD)') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
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', 'rows:[4,5,6,7,8,9,10,11,12,13],columns:[10 - 35|Loc Name]') select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}')) ## select('Table2', 'rows:[4,5,6,7,8,9,10,11,12,13],columns:[10 - 35|Loc Name]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, NSW, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5035, ST, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany, 2019, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW, A], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5055, ST, Leichhardt, Marketown, Marion Street, Leichhardt, 2040, NSW, A], [TAR, 5060, ST, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s, 2760, NSW, A], [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:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) ## select('Table1', 'cell:10 - 35|Loc Name,2(Blacktown)') ## select('Table', 'cell:' + commonBits.fl('Field') + ',3(Loc Name)') ## assert_p('Table', 'Text', 'cell:' + commonBits.fl('Field') + ',3(Loc Name)') select('Table', 'false', commonBits.fl('Show') + ',0') select('Table', 'false', commonBits.fl('Show') + ',2') select('Table', 'false', commonBits.fl('Show') + ',7') select('Table', 'false', commonBits.fl('Show') + ',9') select('Table', 'false', commonBits.fl('Show') + ',8') ## select('Table', 'cell:' + commonBits.fl('Show') + ',8(false)') click(commonBits.fl('Go')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[5015, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park], [5019, Penrith, Penrith, 58 Leland Street, Penrith], [5033, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong], [5035, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany], [5037, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda], [5052, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong], [5055, Leichhardt, Marketown, Marion Street, Leichhardt], [5060, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s], [5070, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill], [5074, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown]]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Window') + '>>Ams_LocDownload_20041228.txt>>' + commonBits.fl('Table:') + '1') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) ## select('Table1', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[Brand Id, false], [Loc Nbr, true], [Loc Type, false], [Loc Name, true], [Loc Addr Ln1, true], [Loc Addr Ln2, true], [Loc Addr Ln3, true], [Loc Postcode, false], [Loc State, false], [Loc Actv Ind, false]]') select('Table', 'cell:' + commonBits.fl('Show') + ',5(true)') click(commonBits.fl('Go')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[5015, Bankstown, Bankstown, Condell Park], [5019, Penrith, Penrith, Penrith], [5033, Blacktown, Marayong, Marayong], [5035, Rockdale, Building B, Portside DC, Botany], [5037, Miranda, Westfield Shoppingtown, Miranda], [5052, Eastwood, Marayong Offsite Reserve, Marayong], [5055, Leichhardt, Marketown, Leichhardt], [5060, St Marys, St. Mary\'s, St Mary\'s], [5070, Bass Hill, Bass Hill Plaza, Bass Hill], [5074, Campbelltown, Campbelltown Mall, Campbelltown]]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) ## select('Table1', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:' + commonBits.fl('Show') + ',9(false)') click(commonBits.fl('Go')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[5015, Bankstown, Bankstown, Condell Park, A], [5019, Penrith, Penrith, Penrith, A], [5033, Blacktown, Marayong, Marayong, A], [5035, Rockdale, Building B, Portside DC, Botany, A], [5037, Miranda, Westfield Shoppingtown, Miranda, A], [5052, Eastwood, Marayong Offsite Reserve, Marayong, A], [5055, Leichhardt, Marketown, Leichhardt, A], [5060, St Marys, St. Mary\'s, St Mary\'s, A], [5070, Bass Hill, Bass Hill Plaza, Bass Hill, A], [5074, Campbelltown, Campbelltown Mall, Campbelltown, A]]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) ## select('Table1', 'cell:10 - 35|Loc Name,2(Blacktown)') 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, false], [Loc State, false], [Loc Actv Ind, true]]') select('Table', 'cell:' + commonBits.fl('Show') + ',8(false)') select('Table', 'cell:' + commonBits.fl('Show') + ',2(false)') assert_p('Table', 'Content', '[[Brand Id, false], [Loc Nbr, true], [Loc Type, true], [Loc Name, true], [Loc Addr Ln1, true], [Loc Addr Ln2, false], [Loc Addr Ln3, true], [Loc Postcode, false], [Loc State, true], [Loc Actv Ind, true]]') click(commonBits.fl('Go')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[5015, ST, Bankstown, Bankstown, Condell Park, NSW, A], [5019, ST, Penrith, Penrith, Penrith, NSW, A], [5033, ST, Blacktown, Marayong, Marayong, NSW, A], [5035, ST, Rockdale, Building B, Portside DC, Botany, NSW, A], [5037, ST, Miranda, Westfield Shoppingtown, Miranda, NSW, A], [5052, ST, Eastwood, Marayong Offsite Reserve, Marayong, NSW, A], [5055, ST, Leichhardt, Marketown, Leichhardt, NSW, A], [5060, ST, St Marys, St. Mary\'s, St Mary\'s, NSW, A], [5070, ST, Bass Hill, Bass Hill Plaza, Bass Hill, NSW, A], [5074, ST, Campbelltown, Campbelltown Mall, Campbelltown, NSW, A]]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) ## select('Table1', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[Brand Id, false], [Loc Nbr, true], [Loc Type, true], [Loc Name, true], [Loc Addr Ln1, true], [Loc Addr Ln2, false], [Loc Addr Ln3, true], [Loc Postcode, false], [Loc State, true], [Loc Actv Ind, true]]') select('Table', 'cell:' + commonBits.fl('Show') + ',7(false)') select('Table', 'cell:' + commonBits.fl('Show') + ',5(false)') select('Table', 'cell:' + commonBits.fl('Show') + ',0(false)') click(commonBits.fl('Go')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, NSW, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5035, ST, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany, 2019, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW, A], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5055, ST, Leichhardt, Marketown, Marion Street, Leichhardt, 2040, NSW, A], [TAR, 5060, ST, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s, 2760, NSW, A], [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:10 - 35|Loc Name,2(Blacktown)') select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Show / Hide Fields')) ## select('Table1', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[Brand Id, true], [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]]') select('Table', 'cell:' + commonBits.fl('Show') + ',8(true)') select('Table', 'cell:' + commonBits.fl('Show') + ',7(true)') ## zzz click(commonBits.fl('Go')) select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, A], [TAR, 5035, ST, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, A], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, A], [TAR, 5055, ST, Leichhardt, Marketown, Marion Street, Leichhardt, A], [TAR, 5060, ST, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s, A], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, A]]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') rightclick('Table', '4 - 4|Loc Nbr,3') select_menu(commonBits.fl('Show Column') + '>>Loc State') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, NSW, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, NSW, A], [TAR, 5035, ST, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, NSW, A], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, NSW, A], [TAR, 5055, ST, Leichhardt, Marketown, Marion Street, Leichhardt, NSW, A], [TAR, 5060, ST, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s, NSW, A], [TAR, 5070, ST, Bass Hill, Bass Hill Plaza, 753 Hume Highway, Bass Hill, NSW, A], [TAR, 5074, ST, Campbelltown, Campbelltown Mall, 303 Queen Street, Campbelltown, NSW, A]]') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') rightclick('Table', '8 - 2|Loc Type,4') select_menu(commonBits.fl('Show Column') + '>>Loc Postcode') select('Table', 'cell:10 - 35|Loc Name,2(Blacktown)') assert_p('Table', 'Content', '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, NSW, A], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, NSW, A], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5035, ST, Rockdale, Building B, Portside DC, 2-8 Mc Pherson Street, Botany, 2019, NSW, A], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, NSW, A], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, 2148, NSW, A], [TAR, 5055, ST, Leichhardt, Marketown, Marion Street, Leichhardt, 2040, NSW, A], [TAR, 5060, ST, St Marys, St. Mary\'s, Charles Hackett Drive, St Mary\'s, 2760, NSW, A], [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]]') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zx3xzFLDg1') select('RecordDef.Description_Txt', 'Group Test 1') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0()') commonBits.delete2(click) select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records') ) select('TabbedPane', commonBits.fl('Child Records') ) click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()') select('ChildRecordsJTbl', 'zx3xzFLD1', commonBits.fl('Child Record') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(zx3xzFLD1)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1()') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Child Record') + ',1') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(zx3xzFLD2)') click(commonBits.fl('Insert')) select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2()') select('ChildRecordsJTbl', 'zx3xzFLD3', commonBits.fl('Child Record') + ',2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(zx3xzFLD3)') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(zx3xzFLD3)') click(commonBits.fl('Save As')) if window('Input'): select('OptionPane.textField', 'zx3xzFLDg2') click('OK') close() select('TabbedPane', commonBits.fl('Child Records') ) assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]') select('RecordDef.Description_Txt', 'Group Test 2') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Name') + ',1()') commonBits.delete2(click) assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD3, , , , , ]]') select('RecordList.Record Name_Txt', 'zx3xzFLDg1') ##select('TabbedPane', 'Child Records') select('RecordList.Description_Txt', '%') select('TabbedPane', commonBits.fl('Child Records') ) assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]') assert_p('RecordDef.Description_Txt', 'Text', 'Group Test 1') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg1') select('RecordList.Record Name_Txt', 'zx3xzFLDg2') ##select('TabbedPane', 'Child Records') select('RecordList.Description_Txt', '%%') ##select('TabbedPane', 'Child Records') assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD3, , , , , ]]') assert_p('RecordDef.Description_Txt', 'Text', 'Group Test 2') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg2') commonBits.delete3(click) if window(commonBits.fl('Delete: zx3xzFLDg2')): click('Yes') close() select('RecordList.Record Name_Txt', 'zx3xzFLDg1') select('RecordList.Description_Txt', '%') ##select('TabbedPane', 'Child Records')
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') commonBits.new1(click) select('RecordDef.Record Name_Txt', 'zxzxzFLD1') select('RecordDef.Description_Txt', 'fld tst 3') select('RecordDef.Lines to Insert_Txt', '3') click(commonBits.fl('Insert')) select('RecordDef.Lines to Insert_Txt', '') assert_p( 'RecordFieldsJTbl', 'Content', '[[0, 0, , , 0, 0, 0, , , ], [0, 0, , , 0, 0, 0, , , ], [0, 0, , , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0') select('RecordFieldsJTbl', '1', commonBits.fl('Length') + ',0') select('RecordFieldsJTbl', 'fld 11', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', '2', commonBits.fl('Position') + ',1') select('RecordFieldsJTbl', '5', commonBits.fl('Length') + ',1') select('RecordFieldsJTbl', 'fld 12', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', '7', commonBits.fl('Position') + ',2') select('RecordFieldsJTbl', '9', commonBits.fl('Length') + ',2') select('RecordFieldsJTbl', 'fld 13', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLD1') select('OptionPane.textField', 'zxzxzFLD2') click('OK') close() assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD2') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',2()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '18', commonBits.fl('Position') + ',3') select('RecordFieldsJTbl', '10', commonBits.fl('Length') + ',3') select('RecordFieldsJTbl', 'fld 24', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'fld 23', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 22', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 21', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(fld 22)') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(fld 22)') click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zxzxzFLD2') select('OptionPane.textField', 'zxzxzFLD3') click('OK') close() ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'fld 34', commonBits.fl('FieldName') + ',3') select('RecordFieldsJTbl', 'fld 33', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 32', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 31', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') click(commonBits.fl('Insert')) select('RecordFieldsJTbl', '28', commonBits.fl('Position') + ',4') select('RecordFieldsJTbl', '12', commonBits.fl('Length') + ',4') select('RecordFieldsJTbl', 'fld 35', commonBits.fl('FieldName') + ',4') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',3()') select('RecordList.Record Name_Txt', 'zxzxzFLD1') select('RecordList.Description_Txt', '%') time.sleep(1.0) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD1') select('RecordList.Record Name_Txt', 'zxzxzFLD2') select('RecordList.Description_Txt', '%%') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD2') assert_p('RecordDef.Description_Txt', 'Text', 'fld tst 3') select('RecordList.Record Name_Txt', 'zxzxzFLD3') select('RecordList.Description_Txt', '%') time.sleep(0.6) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 31, , 0, 0, 0, , , ], [2, 5, fld 32, , 0, 0, 0, , , ], [7, 9, fld 33, , 0, 0, 0, , , ], [18, 10, fld 34, , 0, 0, 0, , , ], [28, 12, fld 35, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLD3') click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_10' if window('Record Editor'): select('FileChooser', commonBits.sampleDir() + 'zzAms_PODownload_20041231.txt') commonBits.setRecordLayout(select, 'zzAms PO Download') commonBits.doEdit(click) click('Filter') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'cell:' + commonBits.fl('Field') + ',0(null)') select( 'Table', 'cell:' + commonBits.fl('Record') + ',0(ams PO Download: Detail)') select('Table2', 'Record Type', commonBits.fl('Field') + ',0') select('Table2', 'd', commonBits.fl('Value') + ',0') select('Table2', 'cell:' + commonBits.fl('Value') + ',0()') select('Table', 'false', commonBits.fl('Include') + ',1') select('Table', 'cell:' + commonBits.fl('Include') + ',2(true)') commonBits.filter(click) select('Table', 'cell:3 - 9|Pack Qty,2(48.0000)') assert_p('Table', 'Text', '16.0000', '3 - 9|Pack Qty,4') select('Table', 'cell:3 - 9|Pack Qty,3(4.0000)') assert_p('Table', 'RowCount', '24') select('Table', 'cell:3 - 9|Pack Qty,6(108.0000)') assert_p('Table', 'Text', '108.0000', '3 - 9|Pack Qty,6') select('Table', 'cell:3 - 9|Pack Qty,6(108.0000)') rightclick('Table', '1 - 2|Record Type,4') select_menu(commonBits.fl('Edit Record')) ## select('Table1', 'cell:3 - 9|Pack Qty,6(108.0000)') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075348)') assert_p('Table', 'Text', '2075348', commonBits.fl('Data') + ',6') select( 'Table', 'cell:' + commonBits.fl('Data') + ',8( DONKEY 24-006607 SHWL WRAP CARD)') assert_p('Table', 'Text', ' DONKEY 24-006607 SHWL WRAP CARD', commonBits.fl('Data') + ',8') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075348)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 16.0000, 000160000], [Pack Cost, 12, 13, 6228148.3200, 0062281483200], [APN, 25, 13, 2222, 0000000002222], [Filler, 38, 1, , ], [Product, 39, 8, 2224531, 02224531], [pmg dtl tech key, 72, 15, 2075348, 2075348], [Case Pack id, 87, 15, 5614531, 5614531], [Product Name, 101, 50, DONKEY 24-006607 SHWL WRAP CARD, DONKEY 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075348)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075349)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 8.0000, 000080000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 62224944, 62224944], [pmg dtl tech key, 72, 15, 2075349, 2075349], [Case Pack id, 87, 15, 65614944, 65614944], [Product Name, 101, 50, MILK 24-006607 SHWL WRAP CARD, MILK 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075349)') click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075350)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 108.0000, 001080000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 62225071, 62225071], [pmg dtl tech key, 72, 15, 2075350, 2075350], [Case Pack id, 87, 15, 65615071, 65615071], [Product Name, 101, 50, M.ROSE 24-006607 SHWL WRAP CARD, M.ROSE 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075350)') click('TextArea') assert_p( 'TextArea', 'Text', 'D100108000000000014832000000000000000 62225071000000054540000108 2075350 65615071 M.ROSE 24-006607 SHWL WRAP CARD ' ) click('Right') select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075351)') assert_p( 'Table', 'Content', '[[Record Type, 1, 2, D1, D1], [Pack Qty, 3, 9, 8.0000, 000080000], [Pack Cost, 12, 13, 148.3200, 0000001483200], [APN, 25, 13, 0, 0000000000000], [Filler, 38, 1, , ], [Product, 39, 8, 52225156, 52225156], [pmg dtl tech key, 72, 15, 2075351, 2075351], [Case Pack id, 87, 15, 55615156, 55615156], [Product Name, 101, 50, M.ROSE 24-006607 SHWL WRAP CARD, M.ROSE 24-006607 SHWL WRAP CARD]]' ) select('Table', 'cell:' + commonBits.fl('Data') + ',6(2075351)') click('TextArea') assert_p('ScrollPane1', 'Enabled', 'true') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_17' if window('Record Editor'): select( 'FileChooser', commonBits.sampleDir() + 'Xml' + commonBits.fileSep() + 'IVM0034_Map.XML') commonBits.doEdit(click) ## select('JTreeTable', '') rightclick('JTreeTable', commonBits.fl('Tree') + ',1') select_menu(commonBits.fl('Expand Tree')) click('ScrollPane$ScrollBar', 5, 65) # select('JTreeTable', '') rightclick('JTreeTable', 'id,3') select_menu(commonBits.fl('Edit Record')) # select('Table', '') rightclick('Table', commonBits.fl('Data') + ',4') select_menu(commonBits.fl('Hide Column')) assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [ATTRB, 9, , (ASKIP,BRT), (ASKIP,BRT)], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',5') select_menu(commonBits.fl('Hide Column')) ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',5') select_menu(commonBits.fl('Hide Column')) assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') select('Table', 'cell:' + commonBits.fl('Data') + ',4(23)') select('Table', 'cell:' + commonBits.fl('Data') + ',4(23)') rightclick('Table', commonBits.fl('Data') + ',4') select_menu(commonBits.fl('Show Field Fields') + '>>INITIAL') assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',6') select_menu(commonBits.fl('Show Field Fields') + '>>ATTRB') assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [ATTRB, 9, , (ASKIP,BRT), (ASKIP,BRT)], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') ## select('Table', '') rightclick('Table', commonBits.fl('Data') + ',3') select_menu(commonBits.fl('Show Field Fields') + '>>Col') assert_p( 'Table', 'Content', '''[[Xml~Name, 0, , Field, Field], [Xml~Prefix, 3, , , ], [Xml~Namespace, 4, , , ], [Row, 5, , 1, 1], [Col, 6, , 26, 26], [LENGTH, 7, , 23, 23], [INITIAL, 8, , REPLENISHMENT ORDERING, REPLENISHMENT ORDERING], [ATTRB, 9, , (ASKIP,BRT), (ASKIP,BRT)], [id, 10, , , ], [Type, 11, , , ], [Xml~End, 1, , True, True], [Following~Text, 2, , , ]]''') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') commonBits.closeWindow(click) ##click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zxxxzFLDg65') select('RecordList.Description_Txt', '%') ## select('TabbedPane', 'Child Records') ## select('ChildRecordsJTbl', '') rightclick('ChildRecordsJTbl', commonBits.fl('Field Value') + ',0') select_menu(commonBits.fl('Edit Record Selections')) assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' + commonBits.fl('Or') + ', , fld 12, =, 12], [' + commonBits.fl('Or') + ', , fld 13, =, 13]]') select('TabbedPane', 'zxxxzFLD2') assert_p( 'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [' + commonBits.fl('Or') + ', , fld 21, =, 12]]') select('TabbedPane', 'zxxxzFLD3') assert_p('RecordSelectionJTbl2', 'Content', '[[, , fld 31, =, 31]]') select('TabbedPane', commonBits.fl('Summary')) ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 11], [, , , Or , , fld 12, =, 12], [, , , Or , , fld 13, =, 13], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ], [, , And , , , fld 31, =, 31]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 11], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 12], [, , , ' + commonBits.fl('Or') + ' , , fld 13, =, 13], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 31, =, 31]]') select('JTreeTable', '1199', commonBits.fl('Test Value') + ' ,1') select('JTreeTable', '1288', commonBits.fl('Test Value') + ' ,2') select('JTreeTable', '1377', commonBits.fl('Test Value') + ' ,3') select('JTreeTable', 'cell:' + commonBits.fl('Test Value') + ' ,2(1288)') ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 11, =, 1199], [, , , Or , , fld 12, =, 1288], [, , , Or , , fld 13, =, 1377], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ], [, , And , , , fld 31, =, 31]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 11, =, 1199], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 1288], [, , , ' + commonBits.fl('Or') + ' , , fld 13, =, 1377], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 31, =, 31]]') select('TabbedPane', 'zxxxzFLD1') assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 1199], [' + commonBits.fl('Or') + ', , fld 12, =, 1288], [' + commonBits.fl('Or') + ', , fld 13, =, 1377]]') select('TabbedPane', 'zxxxzFLD2') assert_p( 'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [' + commonBits.fl('Or') + ', , fld 21, =, 12]]') select('TabbedPane', 'zxxxzFLD3') assert_p('RecordSelectionJTbl2', 'Content', '[[, , fld 31, =, 31]]') select('TabbedPane', commonBits.fl('Summary')) select('JTreeTable', 'fld 13', commonBits.fl('Field Name') + ' ,1') select('JTreeTable', 'fld 11', commonBits.fl('Field Name') + ' ,2') select('JTreeTable', 'fld 12', commonBits.fl('Field Name') + ' ,3') select('JTreeTable', '31987', commonBits.fl('Test Value') + ' ,8') select('JTreeTable', 'fld 32', commonBits.fl('Field Name') + ' ,8') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 3') + ' ,5( )') ## assert_p('JTreeTable', 'Content', '[[, , , , , , =, ], [, , And , , , fld 13, =, 1199], [, , , Or , , fld 11, =, 1288], [, , , Or , , fld 12, =, 1377], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , , =, ], [, , And , , , fld 32, =, 31987]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 13, =, 1199], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 1288], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 1377], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 32, =, 31987]]') select('TabbedPane', 'zxxxzFLD3') assert_p('RecordSelectionJTbl2', 'Content', '[[, , fld 32, =, 31987]]') select('TabbedPane', 'zxxxzFLD2') assert_p( 'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [' + commonBits.fl('Or') + ', , fld 21, =, 12]]') select('TabbedPane', 'zxxxzFLD1') assert_p( 'RecordSelectionJTbl', 'Content', '[[, , fld 13, =, 1199], [' + commonBits.fl('Or') + ', , fld 11, =, 1288], [' + commonBits.fl('Or') + ', , fld 12, =, 1377]]') select('TabbedPane', commonBits.fl('Summary')) select('JTreeTable', 'ff', commonBits.fl('Field Name') + ' ,0') select('JTreeTable', 'vv1', commonBits.fl('Test Value') + ' ,0') select('JTreeTable', 'gg', commonBits.fl('Field Name') + ' ,7') select('JTreeTable', 'vv2', commonBits.fl('Test Value') + ' ,7') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 3') + ' ,5( )') ## assert_p('JTreeTable', 'Content', '[[, , , , , ff, =, vv1], [, , And , , , fld 13, =, 1199], [, , , Or , , fld 11, =, 1288], [, , , Or , , fld 12, =, 1377], [, , , , , , =, ], [, , And , , , fld 21, =, 21], [, , , Or , , fld 21, =, 12], [, , , , , gg, =, vv2], [, , And , , , fld 32, =, 31987]]') assert_p( 'JTreeTable', 'Content', '[[, , , , , ff, =, vv1], [, , ' + commonBits.fl('And') + ' , , , fld 13, =, 1199], [, , , ' + commonBits.fl('Or') + ' , , fld 11, =, 1288], [, , , ' + commonBits.fl('Or') + ' , , fld 12, =, 1377], [, , , , , , =, ], [, , ' + commonBits.fl('And') + ' , , , fld 21, =, 21], [, , , ' + commonBits.fl('Or') + ' , , fld 21, =, 12], [, , , , , gg, =, vv2], [, , ' + commonBits.fl('And') + ' , , , fld 32, =, 31987]]') select('JTreeTable', 'cell:' + commonBits.fl('Boolean op 3') + ' ,5( )') click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , ff, vv1, , zxxxzFLD3], [, zxxxzFLD2, , , , , zxxxzFLD1], [, zxxxzFLD3, , gg, vv2, , ]]' ) click('BasicInternalFrameTitlePane$NoFocusButton2') close()
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') select_menu( commonBits.fl('Edit') + '>>' + commonBits.fl('Update Csv Columns')) # select('FieldChange_JTbl', 'cell:Source Column,5()') # doubleclick('FieldChange_JTbl', 'Source Column,5') # select('FieldChange_JTbl', 'cell:Source Column,5()') # doubleclick('FieldChange_JTbl', 'Source Column,5') # select('FieldChange_JTbl', 'cell:Source Column,4()') # doubleclick('FieldChange_JTbl', 'Source Column,4') # select('FieldChange_JTbl', 'cell:Source Column,4()') # click('FieldChange_JTbl', 3, 'Source Column,4') # select('FieldChange_JTbl', 'cell:Source Column,4()') # click('FieldChange_JTbl', 4, 'Source Column,4') select('FieldChange_JTbl', commonBits.fl('Number'), commonBits.fl('Type') + ',5') select('FieldChange_JTbl', 'cell:' + commonBits.fl('Type') + ',5(Number)') click(commonBits.fl('Apply')) click('Find1') select('Find.Search For_Txt', '19.00') select('Find.Operator_Txt', commonBits.fl('<= (Text)')) ## click('ScrollPane$ScrollBar', 4, 57) ## click('ScrollPane$ScrollBar', 7, 52) select('Find.Field_Txt', 'SALE-PRICE') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '2, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '3, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '6, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '7, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '8, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '9, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '15, 5, 0') commonBits.find(click) assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '16, 5, 0') commonBits.find(click) if window(''): click('No') close() assert_p( 'TextField', 'Text', commonBits.fl('Found (line, field Num, field position)=') + '18, 5, 0') close()
def test(): from Modules import commonBits import time java_recorded_version = '1.6.0_22' if window('Record Layout Definitions'): click('*') select('RecordList.Record Name_Txt', 'zx3xzFLDg1') select('RecordList.Description_Txt', '%') ## select('ChildRecordsJTbl', 'cell: ,0(sl)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',0') select_menu(commonBits.fl('Edit Child Record')) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) click(commonBits.fl('Save As')) if window('Input'): assert_p('OptionPane.textField', 'Text', 'zx3xzFLD1') select('OptionPane.textField', 'zx3xzFLD1aaa') click('OK') close() assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11, , 0, 0, 0, , , ], [2, 5, fld 12, , 0, 0, 0, , , ], [7, 9, fld 13, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'fld 13aa', commonBits.fl('FieldName') + ',2') select('RecordFieldsJTbl', 'fld 12aa', commonBits.fl('FieldName') + ',1') select('RecordFieldsJTbl', 'fld 11aa', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aa, , 0, 0, 0, , , ], [2, 5, fld 12aa, , 0, 0, 0, , , ], [7, 9, fld 13aa, , 0, 0, 0, , , ]]' ) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLD1aaa') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',1()') commonBits.save1(click) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ], [, zx3xzFLD1aaa, , , , , ]]' ) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ], [, zx3xzFLD1aaa, , , , , ]]' ) select('ChildRecordsJTbl', 'zx3xzFLD1aaa', commonBits.fl('Tree Parent') + ',2') select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zx3xzFLD2)') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , zx3xzFLD1aaa], [, zx3xzFLD1aaa, , , , , ]]' ) ## select('ChildRecordsJTbl', 'cell: ,3(null)') rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',3') select_menu(commonBits.fl('Edit Child Record')) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 1, fld 11aa, , 0, 0, 0, , , ], [2, 5, fld 12aa, , 0, 0, 0, , , ], [7, 9, fld 13aa, , 0, 0, 0, , , ]]' ) assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLD1aaa') commonBits.delete2(click) if window(commonBits.fl('Delete: zx3xzFLD1aaa')): click('Yes') close() select('TabbedPane1', commonBits.fl('Child Records')) click('BasicInternalFrameTitlePane$NoFocusButton2') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) time.sleep(0.9) select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0') select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',3()') assert_p( 'ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD3, , , , , ]]' ) ## click('BasicInternalFrameTitlePane$NoFocusButton2') close()
def test(): from Modules import commonBits java_recorded_version = '1.6.0_22' if window('Record Editor'): select('File_Txt', commonBits.sampleDir() + 'Ams_PODownload_20041231.txt') click(commonBits.fl('Edit') + '1') click('Filter1') select('Fields.FieldRelationship_JTbl', 'cell:' + commonBits.fl('Field') + ',0(null)') select('Filter.RecordSelection_JTbl', 'false', commonBits.fl('Include') + ',1') select('TabbedPane', commonBits.fl('Group Filter')) select('Filter.RecordSelection_JTbl1', 'false', commonBits.fl('In Group') + ',1') ## select('Filter.RecordSelection_JTbl1', 'cell:' + commonBits.fl('In Group') + ',1(false)') select('Fields.FieldRelationship_JTbl1', 'cell:' + commonBits.fl('Operator') + ',0(' + commonBits.fl('Contains') + ')') select('Fields.FieldRelationship_JTbl1', '>', commonBits.fl('Operator') + ',0') select('Fields.FieldRelationship_JTbl1', '4', commonBits.fl('Value') + ',0') select('Fields.FieldRelationship_JTbl1', 'cell:' + commonBits.fl('Value') + ',0()') select('Fields.FieldRelationship_JTbl1', 'cell:' + commonBits.fl('Field') + ',0(-2147483647)') click('ArrowButton') ## select('Fields.FieldRelationship_JTbl1', 'cell:' + commonBits.fl('Field') + ',0(0)') select_menu('ams PO Download: Allocation>>Pack Quantity 1') # select('Fields.FieldRelationship_JTbl1', 'cell:' + commonBits.fl('Operator') + ',0(' + commonBits.fl('Contains') + ')') # select('Fields.FieldRelationship_JTbl1', '>', commonBits.fl('Operator') + ',0') # select('Fields.FieldRelationship_JTbl1', '4', commonBits.fl('Value') + ',0') # select('Fields.FieldRelationship_JTbl1', 'cell:' + commonBits.fl('Value') + ',0()') commonBits.save2(click) ## click(commonBits.fl('Save') + '1') ## select('File Name', 'xx5') if commonBits.isWindowsLook(): select('File name', 'xx5') else: select('File Name', 'xx5') commonBits.save(click) ## click(commonBits.fl('Save')) commonBits.filter2(click) # click(commonBits.fl('Filter') + '1') ## select('TabbedPane1', 'Table:') ## click('BasicInternalFrameTitlePane$NoFocusButton2') select('LineList.FileDisplay_JTbl1', 'cell:15 - 4|DC Number 2,0(1)') select('LineList.FileDisplay_JTbl1', 'cell:15 - 4|DC Number 2,0(1)') assert_p('LineList.FileDisplay_JTbl1', 'Content', '[[D1, 4, 40000000, 1, 48320000, 4561, 50710000, 5, 45400000, 44, 207, 5354, , 4561, 5071, M, .ROSE 24, -6, 607 SHWL], [S1, 5009, 5, 5021, 5, 5025, 4, 5026, 4, 5047, 3, 5077, 2, 5127, 5, 5134, 4, 5142, 2], [S1, 5044, 2, 5071, 2, , 0, , 0, , 0, , 0, , 0, , 0, , 0]]') select('LineList.FileDisplay_JTbl1', 'cell:15 - 4|DC Number 2,0(1)') click('DisplayFrame$TabButton', 25, 24) select('TabbedPane', 'Table:') select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Execute Saved Filter')) select('File Name', 'xx5') click(commonBits.fl('Run Dialog')) select('TabbedPane', commonBits.fl('Group Filter')) select('Filter.RecordSelection_JTbl1', 'cell:' + commonBits.fl('Record') + ',1(ams PO Download: Header)') assert_p('Filter.RecordSelection_JTbl1', 'Content', '[[ams PO Download: Detail, true, true], [ams PO Download: Header, false, true], [ams PO Download: Allocation, true, true]]') select('Filter.RecordSelection_JTbl1', 'cell:' + commonBits.fl('Record') + ',1(ams PO Download: Header)') assert_p('Fields.FieldRelationship_JTbl1', 'Content', '[[, , 200004, true, ' + commonBits.fl('First') + ', >, 4], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ]]') select('Filter.RecordSelection_JTbl1', 'cell:' + commonBits.fl('Record') + ',1(ams PO Download: Header)') commonBits.filter2(click) # click(commonBits.fl('Filter') + '1') ## select('TabbedPane1', 'Table:') select_menu(commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) select('LineList.FileDisplay_JTbl2', 'cell:15 - 4|DC Number 2,1(5021)') assert_p('LineList.FileDisplay_JTbl2', 'Content', '[[D1, 4, 40000000, 1, 48320000, 4561, 50710000, 5, 45400000, 44, 207, 5354, , 4561, 5071, M, .ROSE 24, -6, 607 SHWL], [S1, 5009, 5, 5021, 5, 5025, 4, 5026, 4, 5047, 3, 5077, 2, 5127, 5, 5134, 4, 5142, 2], [S1, 5044, 2, 5071, 2, , 0, , 0, , 0, , 0, , 0, , 0, , 0]]') select('LineList.FileDisplay_JTbl2', 'cell:15 - 4|DC Number 2,1(5021)') select_menu(commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Filter Options')) ## select('LineList.FileDisplay_JTbl2', 'cell:15 - 4|DC Number 2,1(5021)') click('BasicInternalFrameTitlePane$NoFocusButton2') select('LineList.FileDisplay_JTbl2', 'cell:15 - 4|DC Number 2,1(5021)') select('LineList.FileDisplay_JTbl2', 'cell:15 - 4|DC Number 2,1(5021)') select_menu(commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) select('LineList.FileDisplay_JTbl2', 'cell:15 - 4|DC Number 2,1(5021)') click(commonBits.fl('Table:')) select('TabbedPane', 'Table:') click('Find1') click('BasicInternalFrameTitlePane$NoFocusButton2') click('Filter1') click(commonBits.fl('Load')) if window('Open'): ##select('FilePane$3', 'xx5') if commonBits.isWindowsLook(): select('File name', 'xx5') else: select('File Name', 'xx5') ## select('File Name', 'xx5') click('Open') close() ## select('TabbedPane', commonBits.fl('Group Filter')) assert_p('Filter.RecordSelection_JTbl1', 'Content', '[[ams PO Download: Detail, true, true], [ams PO Download: Header, false, true], [ams PO Download: Allocation, true, true]]') assert_p('Fields.FieldRelationship_JTbl1', 'Content', '[[, , 200004, true, ' + commonBits.fl('First') + ', >, 4], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ], [, ' + commonBits.fl('And') + ', 0, true, ' + commonBits.fl('First') + ', ' + commonBits.fl('Contains') + ', ]]') commonBits.filter2(click) # click(commonBits.fl('Filter') + '1') ## select('TabbedPane1', 'Table:') ## click('BasicInternalFrameTitlePane$NoFocusButton2') select_menu(commonBits.fl('Window') + '>>Ams_PODownload_20041231.txt>>' + commonBits.fl('Table:')) click(commonBits.fl('Table:') + '2') select('TabbedPane', 'Table:') click(commonBits.fl('Table:') + '3') select('TabbedPane', 'Table:') assert_p('LineList.FileDisplay_JTbl3', 'Content', '[[D1, 4, 40000000, 1, 48320000, 4561, 50710000, 5, 45400000, 44, 207, 5354, , 4561, 5071, M, .ROSE 24, -6, 607 SHWL], [S1, 5009, 5, 5021, 5, 5025, 4, 5026, 4, 5047, 3, 5077, 2, 5127, 5, 5134, 4, 5142, 2], [S1, 5044, 2, 5071, 2, , 0, , 0, , 0, , 0, , 0, , 0, , 0]]')
def test(): from Modules import commonBits java_recorded_version = '1.5.0_11' if window('Record Layout Definitions'): click('*') select('TextField', 'ams PO Download: Detail%') select('TextField1', '%') assert_p('Label7', 'Text', commonBits.fl('Description')) select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(Record Type)') rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(Record Type)') assert_p('RecordFieldsJTbl', 'Text', 'Record Type', commonBits.fl('FieldName') + ',0') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Pack Qty)') assert_p('RecordFieldsJTbl', 'Text', 'cell:' + commonBits.fl('FieldName') + ',1(Pack Qty)') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(Pack Cost)') if commonBits.isMsAccess(): assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Record Type, , 0, 0, 15, Ams PO Download, , ], [3, 9, Pack Qty, , 8, 4, 0, , , ], [12, 13, Pack Cost, , 8, 4, 0, , , ], [25, 13, APN, , 7, 0, 0, , , ], [38, 1, Filler, , 0, 0, 0, , , ], [39, 8, Product, , 7, 0, 0, , , ], [72, 15, pmg dtl tech key, , 0, 0, 0, , , ], [87, 15, Case Pack id, , 0, 0, 0, , , ], [101, 50, Product Name, , 0, 0, 0, , , ]]' ) else: assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Record Type, , 0, 0, 0, , , ], [3, 9, Pack Qty, , 8, 4, 0, , , ], [12, 13, Pack Cost, , 8, 4, 0, , , ], [25, 13, APN, , 7, 0, 0, , , ], [38, 1, Filler, , 0, 0, 0, , , ], [39, 8, Product, , 7, 0, 0, , , ], [72, 15, pmg dtl tech key, , 0, 0, 0, , , ], [87, 15, Case Pack id, , 0, 0, 0, , , ], [101, 50, Product Name, , 0, 0, 0, , , ]]' ) assert_p( 'RecordFieldsJTbl', 'Content', '[[1, 2, Record Type, , 0, 0, 0, , , ], [3, 9, Pack Qty, , 8, 4, 0, , , ], [12, 13, Pack Cost, , 8, 4, 0, , , ], [25, 13, APN, , 7, 0, 0, , , ], [38, 1, Filler, , 0, 0, 0, , , ], [39, 8, Product, , 7, 0, 0, , , ], [72, 15, pmg dtl tech key, , 0, 0, 0, , , ], [87, 15, Case Pack id, , 0, 0, 0, , , ], [101, 50, Product Name, , 0, 0, 0, , , ]]' ) # assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, Record Type, , 0, 0, 0, , , ], [3, 9, Pack Qty, , 8, 4, 0, , , ], [12, 13, Pack Cost, , 8, 4, 0, , , ], [25, 13, APN, , 7, 0, 0, , , ], [38, 1, Filler, , 0, 0, 0, , , ], [39, 8, Product, , 7, 0, 0, , , ], [72, 15, pmg dtl tech key, , 0, 0, 0, , , ], [87, 15, Case Pack id, , 0, 0, 0, , , ], [101, 50, Product Name, , 0, 0, 0, , , ]]') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',3(APN)') assert_p('RecordFieldsJTbl', 'RowCount', '9') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',3(APN)') ##select('TabbedPane', 'Extras') ##select('TabbedPane', 'Fields') select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',3(APN)') click('BasicInternalFrameTitlePane$NoFocusButton2') close()