예제 #1
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        select_menu('Record Layouts>>Load Cobol Copybook')
        select('Cobol Copybook_Txt',
               commonBits.cobolDir() + 'Z_AnamousRedf.cbl')
        select('Binary Format_Txt', 'Open Cobol Little Endian (Intel)')
        select('System_Txt', 'Other')
        click('Go')
        assert_p(
            'TextArea', 'Text', r'''

-->> ''' + commonBits.cobolDir() + '''Z_AnamousRedf.cbl processed

      Copybook: Z_AnamousRedf''')
        select_menu('Record Layouts>>Edit Layout')
        select('RecordList.Record Name_Txt', 'Z_%')
        select('RecordList.Description_Txt', '%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        assert_p('RecordList.RecordListTbl_JTbl', 'Text', 'Z_AnamousRedf',
                 'Record Name,0')
        ##		assert_p('RecordList.RecordListTbl_JTbl', 'Content', '[[Z_AnamousRedf, ]]')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, AB, , 0, 0, 0, , , AB], [1, 1, A, , 0, 0, 0, , , A], [2, 1, B, , 0, 0, 0, , , B]]'
        )

    close()
예제 #2
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        click('*6')
        select('Cobol Copybook_Txt', commonBits.cobolDir() + 'ZZ_Tst2.cbl')
        select('Binary Format_Txt', 'Open Cobol Little Endian (Intel)')
        select('System_Txt', 'Other')
        click('Go')
        assert_p(
            'TextArea', 'Text', r'''

-->> ''' + commonBits.cobolDir() + '''ZZ_Tst2.cbl processed

      Copybook: ZZ_Tst2''')
        select_menu('Record Layouts>>Edit Layout')
        select('RecordList.Record Name_Txt', 'ZZ_Tst2%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        select('RecordList.Description_Txt', '%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 7, f01, , 7, 2, 0, , , f01], [8, 7, f02, , 25, 2, 0, , , f02], [15, 7, f03, , 24, 2, 0, , , f03], [22, 6, f05, , 7, 2, 0, , , f05], [28, 6, f06, , 25, 2, 0, , , f06], [34, 6, f07, , 24, 2, 0, , , f07], [40, 6, f08, , 25, 2, 0, , , f08], [46, 6, f21, , 6, 2, 0, , , f21], [52, 7, f23, , 29, 2, 0, , , f23], [59, 6, f25, , 6, 2, 0, , , f25], [65, 6, f26, , 29, 2, 0, , , f26], [71, 8, f31, , 6, 2, 0, , , f31], [79, 8, f31, , 6, 2, 0, , , f31], [87, 8, f33, , 6, 2, 0, , , f33], [95, 9, f34, , 6, 2, 0, , , f34], [104, 9, f35, , 6, 2, 0, , , f35], [113, 9, f36, , 6, 2, 0, , , f36], [122, 6, f37, , 41, 2, 0, , , f37], [128, 6, f38, , 22, 2, 0, , , f38], [134, 8, f41, , 0, 0, 0, , , f41], [142, 8, f42, , 0, 0, 0, , , f42], [150, 8, f43, , 0, 0, 0, , , f43], [158, 8, f44, , 0, 0, 0, , , f44]]'
        )

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
예제 #3
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        click('*6')
        select('Cobol Copybook_Txt', commonBits.cobolDir() + 'ZZ_Tst3.cbl')
        select('System_Txt', 'Other')
        click('Go')
        assert_p(
            'TextArea', 'Text', r'''

-->> ''' + commonBits.cobolDir() + '''ZZ_Tst3.cbl processed

      Copybook: ZZ_Tst3''')
        select_menu('Record Layouts>>Edit Layout')
        select('RecordList.Record Name_Txt', 'ZZ_Tst3%')

        select('RecordList.Description_Txt', '%')

        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 7, f01, , 6, 0, 0, , , f01], [8, 7, f02, , 22, 0, 0, , , f02], [15, 7, f03, , 6, 0, 0, , , f03], [22, 6, f05, , 6, 0, 0, , , f05], [28, 6, f06, , 22, 0, 0, , , f06], [34, 6, f07, , 6, 0, 0, , , f07], [40, 6, f08, , 22, 0, 0, , , f08], [46, 6, f21, , 6, 0, 0, , , f21], [52, 7, f23, , 6, 0, 0, , , f23], [59, 6, f25, , 6, 0, 0, , , f25], [65, 6, f26, , 6, 0, 0, , , f26], [71, 8, f31, , 6, 2, 0, , , f31], [79, 8, f31, , 6, 2, 0, , , f31], [87, 8, f33, , 6, 2, 0, , , f33], [95, 9, f34, , 6, 2, 0, , , f34], [104, 9, f35, , 6, 2, 0, , , f35], [113, 9, f36, , 6, 2, 0, , , f36], [122, 6, f37, , 41, 2, 0, , , f37], [128, 6, f38, , 22, 2, 0, , , f38], [134, 8, f41, , 0, 0, 0, , , f41], [142, 8, f42, , 0, 0, 0, , , f42], [150, 8, f43, , 0, 0, 0, , , f43], [158, 8, f44, , 0, 0, 0, , , f44]]'
        )
    close()
예제 #4
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Record Layout Definitions'):
		click('*7')
		select('FileChooser', commonBits.cobolDir() + 'CopySAR4180B.xml')
		select('ManagerCombo', commonBits.fl('cb2xml XML Copybook (DB)'))

		click(commonBits.fl('Go'))

		assert_p('TextArea', 'Text', commonBits.checkCopybookLoad(commonBits.cobolDir() + 'CopySAR4180B.xml', 'CopySAR4180B'))
##		assert_p('TextArea', 'Text', '''
##
##-->> ''' + commonBits.cobolDir() + '''CopySAR4180B.xml processed
##
##      Copybook: CopySAR4180B''')
		select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout'))
		select('TextField', '%CopyS%')
		#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') + ',1(R4180B-KEYCODE)')
		assert_p('RecordFieldsJTbl', 'Text', 'R4180B-KEYCODE', '' + commonBits.fl('FieldName') + ',1')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(R4180B-APN)')
##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 0, R4180B-KEYCODE-DETAIL-ID, , 0, 0, 0, , , R4180B-KEYCODE-DETAIL-ID], [4, 0, R4180B-KEYCODE, , 8, 0, 0, , , R4180B-KEYCODE], [12, 0, R4180B-APN, , 8, 0, 0, , , R4180B-APN], [25, 0, R4180B-UNIT-TYPE, , 0, 0, 0, , , R4180B-UNIT-TYPE]]')
##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 0, R4180B-KEYCODE-DETAIL-ID, , 0, 0, 0, , , R4180B-KEYCODE-DETAIL-ID], [4, 0, R4180B-KEYCODE, , 22, 0, 0, , , R4180B-KEYCODE], [12, 0, R4180B-APN, , 22, 0, 0, , , R4180B-APN], [25, 0, R4180B-UNIT-TYPE, , 0, 0, 0, , , R4180B-UNIT-TYPE]]')

		assert_p('RecordFieldsJTbl', 'Content', '[[1, 0, R4180B-KEYCODE-DETAIL-ID, , 0, 0, 0, , , R4180B-KEYCODE-DETAIL-ID], [4, 0, R4180B-KEYCODE, , 25, 0, 0, , , R4180B-KEYCODE], [12, 0, R4180B-APN, , 25, 0, 0, , , R4180B-APN], [25, 0, R4180B-UNIT-TYPE, , 0, 0, 0, , , R4180B-UNIT-TYPE]]')


		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(R4180B-KEYCODE-DETAIL-ID)')
		assert_p('RecordFieldsJTbl', 'RowCount', '4')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(R4180B-KEYCODE-DETAIL-ID)')
		assert_p('TextField2', 'Text', 'CopySAR4180B')
		commonBits.delete3(click)

		if window(commonBits.fl('Delete: CopySAR4180B')):
			click('Yes')
		close()

		#select('TabbedPane', 'Extras')
		#select('TabbedPane', 'Child Records')
		#select('TabbedPane', 'Extras')
		#select('TabbedPane', 'Child Records')
		select('TextField', '%CopySA%')
		#select('TabbedPane', 'Extras')
		#select('TabbedPane', 'Child Records')
		assert_p('TextField2', 'Text', '')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click(commonBits.fl('Close'))
		click(commonBits.fl('Close'))
예제 #5
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        select_menu('Record Layouts>>Load Copybook')
        select('User Selected Copybook_Txt',
               commonBits.cobolDir() + 'AmsLocation.cbl')
        select('Binary Format_Txt', 'Mainframe')
        assert_p('Copybook Type_Txt', 'Text', 'Cobol Copybook (DB)')
        select(
            'User Selected Copybook_Txt',
            commonBits.paramDir() + 'CopyBook' + commonBits.fileSep() +
            'cb2xml' + commonBits.fileSep() + 'AMSLOCATION.xml')
        select('System_Txt', 'CSV')
        assert_p('Copybook Type_Txt', 'Text', 'cb2xml XML Copybook (DB)')
        select(
            'User Selected Copybook_Txt',
            commonBits.paramDir() + 'CopyBook' + commonBits.fileSep() + 'Csv' +
            commonBits.fileSep() + 'ams PO Download.Txt')

        select('Binary Format_Txt', 'Intel')
        assert_p('Copybook Type_Txt', 'Text',
                 'RecordEditor Tab Copybook (Tab Seperator)')
        select('User Selected Copybook_Txt',
               commonBits.xmlCopybookDir() + 'ams PO Download.Xml')
        select('System_Txt', 'Ams')
        assert_p('Copybook Type_Txt', 'Text', 'RecordEditor XML Copybook')
##		select('Binary Format_Txt', 'Mainframe')
##		select('System_Txt', 'CSV')
##		select('Binary Format_Txt', 'Intel')
##		select('System_Txt', 'Ams')
    close()
예제 #6
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Record Layout Definitions'):
        click('*7')
        select('FileChooser', commonBits.cobolDir() + 'CopySAR4180A.xml')
        select('ManagerCombo', commonBits.fl('cb2xml XML Copybook (DB)'))
        #select('BmKeyedComboBox1', '9')
        select('BmKeyedComboBox1', 'Mainframe')
        click(commonBits.fl('Go'))

        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('TextField', 'CopySA%')
        #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(R4180A-DEPARTMENT-NO)')
        assert_p('RecordFieldsJTbl', 'Text', 'R4180A-DEPARTMENT-NO',
                 '' + commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3(R4180A-DATE-FROM)')
        ##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 0, R4180A-HEADER-ID, , 0, 0, 0, , , R4180A-HEADER-ID], [4, 0, R4180A-SUPPLIER, , 8, 0, 0, , , R4180A-SUPPLIER], [14, 0, R4180A-DEPARTMENT-NO, , 8, 0, 0, , , R4180A-DEPARTMENT-NO], [18, 0, R4180A-DATE-FROM, , 0, 0, 0, , , R4180A-DATE-FROM], [26, 0, R4180A-DATE-TO, , 0, 0, 0, , , R4180A-DATE-TO], [34, 0, R4180A-LEVEL-IND, , 0, 0, 0, , , R4180A-LEVEL-IND]]')
        ##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 0, R4180A-HEADER-ID, , 0, 0, 0, , , R4180A-HEADER-ID], [4, 0, R4180A-SUPPLIER, , 22, 0, 0, , , R4180A-SUPPLIER], [14, 0, R4180A-DEPARTMENT-NO, , 22, 0, 0, , , R4180A-DEPARTMENT-NO], [18, 0, R4180A-DATE-FROM, , 0, 0, 0, , , R4180A-DATE-FROM], [26, 0, R4180A-DATE-TO, , 0, 0, 0, , , R4180A-DATE-TO], [34, 0, R4180A-LEVEL-IND, , 0, 0, 0, , , R4180A-LEVEL-IND]]')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 0, R4180A-HEADER-ID, , 0, 0, 0, , , R4180A-HEADER-ID], [4, 0, R4180A-SUPPLIER, , 25, 0, 0, , , R4180A-SUPPLIER], [14, 0, R4180A-DEPARTMENT-NO, , 25, 0, 0, , , R4180A-DEPARTMENT-NO], [18, 0, R4180A-DATE-FROM, , 0, 0, 0, , , R4180A-DATE-FROM], [26, 0, R4180A-DATE-TO, , 0, 0, 0, , , R4180A-DATE-TO], [34, 0, R4180A-LEVEL-IND, , 0, 0, 0, , , R4180A-LEVEL-IND]]'
        )

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(R4180A-SUPPLIER)')
        assert_p('RecordFieldsJTbl', 'RowCount', '6')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(R4180A-SUPPLIER)')
        assert_p('TextField2', 'Text', 'CopySAR4180A')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: CopySAR4180A')):
            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'))
    close()
예제 #7
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        select_menu('Record Layouts>>Load Cobol Copybook')
        select('Cobol Copybook_Txt',
               commonBits.cobolDir() + 'XTAR1000_020.cbl')
        select('Binary Format_Txt', 'Mainframe')
        select('System_Txt', 'Other')
        select('Split Copybook_Txt', 'On 01 level')
        click('Go')

        if window('Message'):
            assert_p(
                'OptionPane.label', 'Text',
                'You should define the Record Selections details (Field - Field Value)and check the File Structure on the Extra sceen'
            )
            click('OK')
        close()

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, XTAR1000_020-01TAR1000-REC, , , , , ], [, XTAR1000_020-01TAR020-REC, , , , , ]]'
        )
        assert_p('RecordDef.Record Type_Txt', 'Text',
                 'Group of Binary Records')
        select('TabbedPane', 'Extras')
        assert_p('RcdExtra.File Structure_Txt', 'Text',
                 'Mainframe VB (rdw based) Binary')
        assert_p('RcdExtra.File Structure_Txt', 'Text',
                 'Mainframe VB (rdw based) Binary')
        select('TabbedPane', 'Child Records')
        ##		select('ChildRecordsJTbl', '')
        rightclick('ChildRecordsJTbl', 'Child Name,0')
        select_menu('Edit Child Record')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, 00001000-STORE-NO, , 35, 0, 0, , , 00001000-STORE-NO], [3, 2, 000R1000-REGION-NO, , 35, 0, 0, , , 000R1000-REGION-NO], [5, 50, XTAR1000-STORE-NAME, , 0, 0, 0, , , XTAR1000-STORE-NAME], [55, 1, XTAR1000-NEW-STORE, , 0, 0, 0, , , XTAR1000-NEW-STORE], [56, 1, XTAR1000-ACTIVE-STORE, , 0, 0, 0, , , XTAR1000-ACTIVE-STORE], [57, 1, XTAR1000-CLOSED-STORE, , 0, 0, 0, , , XTAR1000-CLOSED-STORE], [58, 1, XTAR1000-DC-TYPE, , 0, 0, 0, , , XTAR1000-DC-TYPE], [59, 1, XTAR1000-SRC-TYPE, , 0, 0, 0, , , XTAR1000-SRC-TYPE], [60, 1, XTAR1000-HO-TYPE, , 0, 0, 0, , , XTAR1000-HO-TYPE]]'
        )
        click('Right')
        ##		select('TabbedPane1', 'Extras')
        ##		select('TabbedPane1', 'Extras')
        ##		select('TabbedPane1', 'Child Records')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 8, XTAR020-KEYCODE-NO, , 0, 0, 0, , , XTAR020-KEYCODE-NO], [9, 2, XTAR020-STORE-NO, , 31, 0, 0, , , XTAR020-STORE-NO], [11, 4, XTAR020-DATE, , 31, 0, 0, , , XTAR020-DATE], [15, 2, XTAR020-DEPT-NO, , 31, 0, 0, , , XTAR020-DEPT-NO], [17, 5, XTAR020-QTY-SOLD, , 31, 0, 0, , , XTAR020-QTY-SOLD], [22, 6, XTAR020-SALE-PRICE, , 31, 2, 0, , , XTAR020-SALE-PRICE]]'
        )
    close()
예제 #8
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        click('*6')
        select('Cobol Copybook_Txt', commonBits.cobolDir() + 'ZZ_Tst4.cbl')
        select('System_Txt', 'Other')
        click('Go')
        select_menu('Record Layouts>>Edit Layout')
        select('RecordList.Record Name_Txt', 'ZZ_Tst4%')

        select('RecordList.Description_Txt', '%')

        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 5, f01, , 22, 2, 0, , , f01], [6, 3, f02, , 33, 2, 0, , , f02], [9, 4, f03, , 23, 2, 0, , , f03], [13, 4, f04, , 23, 2, 0, , , f04], [17, 7, f05, , 25, 2, 0, , , f05], [24, 8, f06, , 6, 2, 0, , , f06]]'
        )
    close()
예제 #9
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        click('*6')
        select('Cobol Copybook_Txt', commonBits.cobolDir() + 'ZZ_Tst5.cbl')
        select('System_Txt', 'Other')
        click('Go')
        select_menu('Record Layouts>>Edit Layout')
        select('RecordList.Record Name_Txt', 'ZZ_Tst5%')

        select('RecordList.Description_Txt', '%')

        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 5, f01, , 22, 2, 0, , , f01], [7, 3, f02, , 33, 2, 0, , , f02], [11, 4, f03, , 23, 2, 0, , , f03], [16, 4, f04, , 23, 2, 0, , , f04], [20, 8, f05, , 25, 0, 0, , , f05], [20, 4, yyyy, , 25, 0, 0, , , yyyy], [24, 2, MM, , 25, 0, 0, , , MM], [26, 2, DD, , 25, 0, 0, , , DD], [28, 10, , , 0, 0, 0, , , ]]'
        )
##		click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
예제 #10
0
def test():
    from Modules import commonBits
    if window('Record Layout Definitions'):
        click('*6')
        select('FileChooser', commonBits.cobolDir() + 'AmsLocation.cbl')
        click('Go')
        assert_p(
            'TextArea', 'Text', '''

-->> ''' + commonBits.cobolDir() + '''AmsLocation.cbl processed

      Copybook: AmsLocation''')
        select_menu('Record Layouts>>Edit Layout')
        select('TextField', 'AmsLo%')
        select('TabbedPane', 'Extras')
        select('TextField1', '%')
        #select('TabbedPane', 'Fields')
        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        #assert_p('TextField2', 'Text', 'AmsLocation')
        select('RecordFieldsJTbl', 'cell:FieldName,0(Brand)')
        assert_p('RecordFieldsJTbl', 'Text', 'cell:FieldName,0(Brand)')
        select('RecordFieldsJTbl', 'cell:FieldName,1(Location-Number)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 25, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [173, 1, Location-Active, , 0, 0, 0, , , Location-Active]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,2(Location-Type)')
        assert_p('RecordFieldsJTbl', 'RowCount', '10')
        select('RecordFieldsJTbl', 'rows:[2,3,4],columns:[FieldName]')
        rightclick('RecordFieldsJTbl', 'FieldName,3')
        select_menu('Copy Record#{s#}')
        select('RecordFieldsJTbl', 'cell:FieldName,9(Location-Active)')
        rightclick('RecordFieldsJTbl', 'FieldName,9')
        select_menu('Paste Record#{s#}')
        #click('WindowsScrollBarUI$WindowsArrowButton4')
        select('RecordFieldsJTbl', 'cell:FieldName,12(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '13')
        select('RecordFieldsJTbl', 'cell:FieldName,10(Location-Type)')
        assert_p('RecordFieldsJTbl', 'Text',
                 'cell:FieldName,10(Location-Type)')
        select('RecordFieldsJTbl', 'cell:FieldName,9(Location-Active)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 25, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [173, 1, Location-Active, , 0, 0, 0, , , Location-Active], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'rows:[9,10,11],columns:[FieldName]')
        rightclick('RecordFieldsJTbl', 'FieldName,10')
        select_menu('Delete Record#{s#}')
        select('RecordFieldsJTbl', 'cell:FieldName,9(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '10')
        select('RecordFieldsJTbl', 'cell:FieldName,6(Address-3)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 25, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'rows:[1,2,3],columns:[FieldName]')
        rightclick('RecordFieldsJTbl', 'FieldName,2')
        select_menu('Cut Record#{s#}')
        select('RecordFieldsJTbl', 'cell:FieldName,2(Address-2)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 25, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,3(Address-3)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl', 'cell:FieldName,5(State)')
        rightclick('RecordFieldsJTbl', 'FieldName,5')
        select_menu('Paste Record#{s#} Prior')
        select('RecordFieldsJTbl', 'cell:FieldName,4(Postcode)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 25, 0, 0, , , Postcode], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,5(Location-Number)')
        assert_p('RecordFieldsJTbl', 'Text', 'Location-Number', 'FieldName,5')
        select('RecordFieldsJTbl', 'cell:FieldName,6(Location-Type)')
        assert_p('RecordFieldsJTbl', 'RowCount', '10')
        select('RecordFieldsJTbl', 'rows:[2,3,4],columns:[FieldName]')
        click('Delete2')
        select('RecordFieldsJTbl', 'cell:FieldName,1(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl', 'cell:FieldName,2(Location-Number)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,2(Location-Number)')
        click('Insert')
        select('RecordFieldsJTbl', 'cell:FieldName,2(Location-Number)')
        #keystroke('RecordFieldsJTbl', 'Ctrl+F9', 'FieldName,2')
        #click('BasicInternalFrameTitlePane$NoFocusButton9')
        select('RecordFieldsJTbl', 'cell:FieldName,4(Location-Type)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [0, 0, , , 0, 0, 0, , , ], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,5(Location-Name)')
        assert_p('RecordFieldsJTbl', 'RowCount', '8')
        select('RecordFieldsJTbl', 'cell:FieldName,3()')
        click('Delete2')
        select('RecordFieldsJTbl', 'cell:FieldName,2(Location-Number)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl', 'cell:FieldName,3(Location-Type)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'rows:[1,2,3],columns:[FieldName]')
        click('Cut2')
        select('RecordFieldsJTbl', 'cell:Length,2(3)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,1(Location-Name)')
        assert_p('RecordFieldsJTbl', 'RowCount', '4')
        select('RecordFieldsJTbl', 'cell:FieldName,2(State)')
        click('Paste2')
        select('RecordFieldsJTbl', 'cell:FieldName,2(State)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,4(Location-Number)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl', 'rows:[3,4,5],columns:[FieldName]')
        click('Cut2')
        select('RecordFieldsJTbl', 'cell:FieldName,2(State)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 3, Brand, , 0, 0, 0, , , Brand], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,0(Brand)')
        click('Paste Prior')
        select('RecordFieldsJTbl', 'cell:FieldName,2(Location-Type)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[45, 40, Address-1, , 0, 0, 0, , , Address-1], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [1, 3, Brand, , 0, 0, 0, , , Brand], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,3(Brand)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl', 'rows:[1,2,3],columns:[FieldName]')
        click('Delete2')
        select('RecordFieldsJTbl', 'cell:FieldName,0(Address-1)')
        click('Copy2')
        select('RecordFieldsJTbl', 'cell:FieldName,2(State)')
        click('Paste Prior')
        select('RecordFieldsJTbl', 'cell:FieldName,3(State)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[45, 40, Address-1, , 0, 0, 0, , , Address-1], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]'
        )
        select('RecordFieldsJTbl', 'cell:FieldName,2(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '5')
        select('RecordFieldsJTbl', 'cell:FieldName,3(State)')
        click('Delete3')

        if window('Delete: AmsLocation'):
            click('Yes')
        close()

        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Child Records')
        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Child Records')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('Close')

##		select_menu('File>>Exit')
    close()
예제 #11
0
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()
예제 #12
0
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()
예제 #13
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.5.0_11'

	if window('Record Layout Definitions'):
		click('*6')
		select('FileChooser', commonBits.cobolDir() + 'AmsLocation.cbl')
		click(commonBits.fl('Go')
)

		assert_p('TextArea', 'Text', '\n\n' + commonBits.fl('-->> ' + commonBits.cobolDir() + 'AmsLocation.cbl processed\n\n      Copybook: AmsLocation'))
		
		assert_p('TextArea', 'Text', commonBits.checkCopybookLoad(commonBits.cobolDir() + 'AmsLocation.cbl', 'AmsLocation'))

##		assert_p('TextArea', 'Text', ('''
##
##-->> ''' + commonBits.cobolDir() + '''AmsLocation.cbl processed
##
##      Copybook: AmsLocation''')

		
		select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout'))

		select('TextField', 'AmsLo%')
		select('TabbedPane', commonBits.fl('Extras'))
		select('TextField1', '%')
		#select('TabbedPane', 'Fields')
		###select('TabbedPane', 'Extras')
		#select('TabbedPane', 'Fields')
		#assert_p('TextField2', 'Text', 'AmsLocation')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',0(Brand)')
		assert_p('RecordFieldsJTbl', 'Text', 'cell:' + commonBits.fl('FieldName') + ',0(Brand)')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',1(Location-Number)')
##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 3, Brand, , 0, 0, 0, , , Brand], [4, 4, Location-Number, , 8, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 8, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [173, 1, Location-Active, , 0, 0, 0, , , Location-Active]]')
##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 3, Brand, , 0, 0, 0, , , Brand], [4, 4, Location-Number, , 22, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 22, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [173, 1, Location-Active, , 0, 0, 0, , , Location-Active]]')

		assert_p('RecordFieldsJTbl', 'Content', '[[1, 3, Brand, , 0, 0, 0, , , Brand], [4, 4, Location-Number, , 25, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [10, 35, Location-Name, , 0, 0, 0, , , Location-Name], [45, 40, Address-1, , 0, 0, 0, , , Address-1], [85, 40, Address-2, , 0, 0, 0, , , Address-2], [125, 35, Address-3, , 0, 0, 0, , , Address-3], [160, 10, Postcode, , 25, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [173, 1, Location-Active, , 0, 0, 0, , , Location-Active]]')


		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('FieldName') + ',2(Location-Type)')
		assert_p('RecordFieldsJTbl', 'RowCount', '10')

		if commonBits.isTstLanguage():
			click(commonBits.fl('Delete') + '1')

		else:
			commonBits.delete3(click)

		if window(commonBits.fl('Delete: AmsLocation')):
			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')
)
예제 #14
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Record Layout Definitions'):
        click('*6')
        select('FileChooser', commonBits.cobolDir() + 'CopyDTAR192.cbl')
        select('ComputerOptionCombo', commonBits.fl('Mainframe'))
        select('BmKeyedComboBox1', 'Mainframe')

        #		select('BmKeyedComboBox1', '9')
        click(commonBits.fl('Go'))

        assert_p(
            'TextArea', 'Text',
            commonBits.checkCopybookLoad(
                commonBits.cobolDir() + 'CopyDTAR192.cbl', 'CopyDTAR192'))

        ##		assert_p('TextArea', 'Text', '''

        ##
        ##-->> ''' + commonBits.cobolDir() + '''CopyDTAR192.cbl processed

        ##
        ##      Copybook: CopyDTAR192''')
        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('TextField', '%CopyDTAR192%')
        #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') + ',1(DTAR192-Date)')
        assert_p('RecordFieldsJTbl', 'Text', 'DTAR192-Date',
                 commonBits.fl('FieldName') + ',1')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(DTAR192-Days)')
        ##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, DTAR192-Code, , 35, 0, 0, , , DTAR192-Code], [3, 4, DTAR192-Date, , 31, 0, 0, , , DTAR192-Date], [7, 2, DTAR192-Days, , 35, 0, 0, , , DTAR192-Days]]')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, DTAR192-Code, , 39, 0, 0, , , DTAR192-Code], [3, 4, DTAR192-Date, , 33, 0, 0, , , DTAR192-Date], [7, 2, DTAR192-Days, , 39, 0, 0, , , DTAR192-Days]]'
        )

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',0(DTAR192-Code)')
        assert_p('RecordFieldsJTbl', 'RowCount', '3')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',0(DTAR192-Code)')
        assert_p('TextField2', 'Text', 'CopyDTAR192')
        commonBits.delete3(click)
        ##		if commonBits.isTstLanguage():
        ##			click(commonBits.fl('Delete') + '1')
        ##		else:
        ##			commonBits.delete3(click)
        if window(commonBits.fl('Delete: CopyDTAR192')):
            click('Yes')
        close()

        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Child Records')
        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Child Records')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('ComputerOptionCombo', commonBits.fl('Intel'))
        click(commonBits.fl('Go'))
        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))

        select('TextField', '%CopyDTAR1%')
        #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') + ',1(DTAR192-Date)')
        assert_p('RecordFieldsJTbl', 'Text', 'DTAR192-Date',
                 commonBits.fl('FieldName') + ',1')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(DTAR192-Days)')
        assert_p('RecordFieldsJTbl', 'Text',
                 'cell:' + commonBits.fl('FieldName') + ',2(DTAR192-Days)')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',0(DTAR192-Code)')
        ##		assert_p('RecordFieldsJTbl', 'Content', '[[1, 2, DTAR192-Code, , 15, 0, 0, , , DTAR192-Code], [3, 4, DTAR192-Date, , 31, 0, 0, , , DTAR192-Date], [7, 2, DTAR192-Days, , 15, 0, 0, , , DTAR192-Days]]')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, DTAR192-Code, , 23, 0, 0, , , DTAR192-Code], [3, 4, DTAR192-Date, , 33, 0, 0, , , DTAR192-Date], [7, 2, DTAR192-Days, , 23, 0, 0, , , DTAR192-Days]]'
        )

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(DTAR192-Days)')
        assert_p('RecordFieldsJTbl', 'RowCount', '3')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(DTAR192-Days)')
        assert_p('TextField2', 'Text', 'CopyDTAR192')
        ##		commonBits.delete3(click)
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: CopyDTAR192')):
            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()
예제 #15
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Record Layout Definitions'):
        click('*7')
        select('FileChooser',
               commonBits.cobolDir() + 'ZC_AmsPoDownloadTab.Txt')
        select('ManagerCombo',
               commonBits.fl('RecordEditor Tab Copybook (Tab Seperator)'))
        ##select('BmKeyedComboBox1', '32')
        click(commonBits.fl('Go'))

        assert_p(
            'TextArea', 'Text',
            commonBits.checkCopybookLoad(
                commonBits.cobolDir() + 'ZC_AmsPoDownloadTab.Txt',
                'ZC_AmsPoDownloadTab'))

        ##		assert_p('TextArea', 'Text', '''
        ##
        ##-->> ''' + commonBits.cobolDir() + '''ZC_AmsPoDownloadTab.Txt processed
        ##
        ##      Copybook: ZC_AmsPoDownloadTab''')
        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('TextField', 'ZC_AmsPoDownloadTab%')
        #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') + ',1(Pack Qty)')
        assert_p('RecordFieldsJTbl', 'Text', 'Pack Cost',
                 commonBits.fl('FieldName') + ',2')
        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') + ',3(APN)')
        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') + ',6(pmg dtl tech key)')
        assert_p('RecordFieldsJTbl', 'Text', 'pmg dtl tech key',
                 commonBits.fl('FieldName') + ',6')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',7(Case Pack id)')
        assert_p('RecordFieldsJTbl', 'RowCount', '9')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Pack Cost)')
        assert_p('TextField2', 'Text', 'ZC_AmsPoDownloadTab')
        click('Delete')

        if window(commonBits.fl('Delete: ZC_AmsPoDownloadTab')):
            click('Yes')
        close()

        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        #select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        assert_p('TextField2', 'Text', '')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        click(commonBits.fl('Close'))
    close()