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

    if window('Record Editor'):
        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('TextField', 'utf8_ams PO Download')
        select('TextField1', '%')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: utf8_ams PO Download')):
            click('Yes')
        close()

        select('TextField', 'utf8_ams Store')
        select('TextField1', '%')
        ##click('Delete3')
        commonBits.delete3(click)

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

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

    if window('Record Layout Definitions'):
        click('*')
        select('RecordList.Record Name_Txt', 'zxxxzFLDg56')

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

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

        select('RecordList.Record Name_Txt', 'zxxxzFLDg567')

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

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

    close()
Exemple #3
0
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('Edit Layout'))
        select('RecordList.Record Name_Txt', 'zxxxzFLDg89')
        select('RecordList.Description_Txt', '%')

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

        select('RecordList.Record Name_Txt', 'zxxxzFLDg88')
        select('RecordList.Description_Txt', '%%')

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

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #4
0
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('Edit Layout'))
		select('RecordList.Record Name_Txt', 'zx3e3xzFLDg654')

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

##		select('TabbedPane', 'Child Records')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , , , , zxxxzFLD3], [, zxxxzFLD2, , , , , zxxxzFLD1], [, zxxxzFLD3, , , , , ]]')
		commonBits.delete3(click)
		if window(commonBits.fl('Delete: zx3e3xzFLDg654')):
			click('Yes')
		close()


		select('RecordList.Record Name_Txt', 'zx3e3xzFLDg65')

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

#		select('TabbedPane', 'Child Records')
##		assert_p('ChildRecordsJTbl', 'Content', '[[, zxxxzFLD1, , , , , zxxxzFLD3], [, zxxxzFLD2, , , , , zxxxzFLD1], [, zxxxzFLD3, , , , , ]]')
		commonBits.delete3(click)
		if window(commonBits.fl('Delete: zx3e3xzFLDg65')):
			click('Yes')
		close()


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

    if window('Record Layout Definitions'):
        click('*')
        select('RecordList.Record Name_Txt', 'zx3g3xzFLDg543')

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

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

        select('RecordList.Record Name_Txt', 'zx3g3xzFLDg5432')

        ##		select('RecordDef.Record Name_Txt', 'zx3g3xzFLDg5432%')
        select('RecordList.Description_Txt', '%%')
        ##		select('RecordDef.Record Name_Txt', 'zx3g3xzFLDg5432')
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: zx3g3xzFLDg5432')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #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()
Exemple #7
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'))
Exemple #8
0
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('Edit Layout'))
        select('RecordList.Record Name_Txt', 'xx11xx')

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

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]'
        )
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: xx11xx')):
            click('Yes')
        close()

        select('RecordList.Record Name_Txt', 'xx11xx11')

        ##		select('TabbedPane', 'Child Records')
        select('RecordList.Description_Txt', '%%')

        ##		select('TabbedPane', 'Child Records')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ]]'
        )
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: xx11xx11')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #9
0
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()
Exemple #10
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Editor'):
        select('Record Layout_Txt', 'DTAR020')
        assert_p('Record Layout_Txt', 'Text', 'DTAR020')
        select('File_Txt', commonBits.sampleDir() + 'xxxcvxx')
        assert_p('Record Layout_Txt', 'Text', 'DTAR020')
        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Create Layout'))
        select('RecordDef.Record Name_Txt', 'xxxcvxx')
        click(commonBits.fl('Insert'))
        click(commonBits.fl('Insert'))
        click(commonBits.fl('Insert'))
        select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0')
        select('RecordFieldsJTbl', '11', commonBits.fl('Length') + ',0')
        select('RecordFieldsJTbl', '12', commonBits.fl('Position') + ',1')
        select('RecordFieldsJTbl', '11', commonBits.fl('Length') + ',1')
        select('RecordFieldsJTbl', '23', commonBits.fl('Position') + ',2')
        select('RecordFieldsJTbl', '33', commonBits.fl('Length') + ',2')
        select('RecordFieldsJTbl', 'f1', commonBits.fl('FieldName') + ',0')
        select('RecordFieldsJTbl', 'f2', commonBits.fl('FieldName') + ',1')
        select('RecordFieldsJTbl', 'f3', commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',2()')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 11, f1, , 0, 0, 0, , , ], [12, 11, f2, , 0, 0, 0, , , ], [23, 33, f3, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',2()')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        assert_p('Record Layout_Txt', 'Text', 'xxxcvxx')
        select('File_Txt', commonBits.sampleDir() + 'xxxcvxxx')
        assert_p('Record Layout_Txt', 'Text', 'xxxcvxx')
        click(commonBits.fl('Edit') + '1')
        select('LineFrame.FileDisplay_JTbl', '11',
               commonBits.fl('Data') + ',0')
        select('LineFrame.FileDisplay_JTbl', '22',
               commonBits.fl('Data') + ',1')
        select('LineFrame.FileDisplay_JTbl', '33',
               commonBits.fl('Data') + ',2')
        select('LineFrame.FileDisplay_JTbl',
               'cell:' + commonBits.fl('Data') + ',1(22)')
        assert_p(
            'LineFrame.FileDisplay_JTbl', 'Content',
            '[[f1, 1, 11, 11, 11], [f2, 12, 11, 22, 22], [f3, 23, 33, 33, 33]]'
        )
        select('LineFrame.FileDisplay_JTbl',
               'cell:' + commonBits.fl('Data') + ',1(22)')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        assert_p('LineList.FileDisplay_JTbl', 'Content', '[[11, 22, 33]]')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

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

        click(commonBits.fl('Edit') + '1')
        assert_p('LineList.FileDisplay_JTbl', 'Content', '[[11, 22, 33]]')
        click('Delete2')
        click('Save1')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('RecordList.Record Name_Txt', 'xxxcvxx')

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

        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 11, f1, , 0, 0, 0, , , ], [12, 11, f2, , 0, 0, 0, , , ], [23, 33, f3, , 0, 0, 0, , , ]]'
        )
        ##click('Delete3')
        commonBits.delete3(click)

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

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #11
0
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', 'zxxxzFLDg1')

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

        click(commonBits.fl('Save As'))

        if window('Input'):
            select('OptionPane.textField', 'zxxxzFLDg6')
            click('OK')
        close()

        commonBits.save1(click)
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxxxzFLD1, , , , , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD3, , , , , ]]'
        )
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zxxxzFLDg6')
        ##		select('ChildRecordsJTbl', '')
        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',1')
        select_menu(commonBits.fl('View Record Selections Tree'))
        assert_p(
            'JTreeTable', 'Content',
            '[[, ,   ,   ,   , , =, ], [, ,   ,   ,   , , =, ], [, ,   ,   ,   , , =, ]]'
        )
        select('JTreeTable',
               'cell:' + commonBits.fl('Boolean op 1') + '    ,1(  )')
        rightclick('JTreeTable', 's,1')
        select('Lines to Insert_Txt', '3')
        click(commonBits.fl('Insert'))

        time.sleep(0.9)
        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field') + ',0()')
        select('RecordSelectionJTbl', 'fld 21', commonBits.fl('Field') + ',0')
        select('RecordSelectionJTbl', '21',
               commonBits.fl('Field Value') + ',0')
        time.sleep(0.9)
        select('RecordSelectionJTbl', 'fld 21', commonBits.fl('Field') + ',1')
        select('RecordSelectionJTbl', '21aa',
               commonBits.fl('Field Value') + ',1')
        select('RecordSelectionJTbl', 'fld 22', commonBits.fl('Field') + ',2')
        select('RecordSelectionJTbl', '22',
               commonBits.fl('Field Value') + ',2')
        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field Value') + ',2()')
        rightclick('RecordSelectionJTbl', 'and,2')
        assert_p(
            'RecordSelectionJTbl', 'Content', '[[, , fld 21, =, 21], [, ' +
            commonBits.fl('And') + ', fld 21, =, 21aa], [' +
            commonBits.fl('Or') + ', , fld 22, =, 22]]')
        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field Value') + ',2()')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('JTreeTable',
               'cell:' + commonBits.fl('Boolean op 1') + '    ,1(  )')
        select('JTreeTable',
               'cell:' + commonBits.fl('Boolean op 1') + '    ,1(  )')
        ##		click('MetalInternalFrameTitlePane', 1416, 0)
        ##		select_menu('Window>>Menu1>>Record Selection Tree')
        select('JTreeTable',
               'cell:' + commonBits.fl('Boolean op 2') + '    ,1(  )')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxxxzFLD1, , , , , ], [, zxxxzFLD2, , , , , ], [, zxxxzFLD3, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', '')
        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',1')
        select_menu(commonBits.fl('Edit Record Selections'))
        assert_p(
            'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [, ' +
            commonBits.fl('And') + ', fld 21, =, 21aa], [' +
            commonBits.fl('Or') + ', , fld 22, =, 22]]')
        assert_p(
            'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [, ' +
            commonBits.fl('And') + ', fld 21, =, 21aa], [' +
            commonBits.fl('Or') + ', , fld 22, =, 22]]')

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Name') + ',1()')
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: zxxxzFLDg6')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_10'

    if window('Record Layout Definitions'):
        click('*7')
        select('FileChooser',
               commonBits.xmlCopybookDir() + 'yyAms PO Download.Xml')
        #select('BmKeyedComboBox1', '9')
        select('BmKeyedComboBox1', 'Other')

        click(commonBits.fl('Go'))

        assert_p(
            'TextArea', 'Text',
            commonBits.checkCopybookLoad(
                commonBits.xmlCopybookDir() + 'yyAms PO Download.Xml',
                'yyAms PO Download'))

        ##		assert_p('TextArea', 'Text', '''
        ##
        ##-->> ''' + commonBits.xmlCopybookDir() + '''yyAms PO Download.Xml processed
        ##
        ##      Copybook: yyAms PO Download''')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('*')
        select('TextField', 'yy%')
        select('TextField1', '%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Child Records')
        assert_p('TextField2', 'Text', 'yyAms PO Download')
        assert_p('BmKeyedComboBox2', 'Text', commonBits.fl('Group of Records'))
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0(416)')
        assert_p('ChildRecordsJTbl', 'Text', 'yyAms PO Download: Detail',
                 '' + commonBits.fl('Child Record') + ',0')
        #		select('ChildRecordsJTbl', '416', commonBits.fl('Child Record') + ',0')
        #		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(417)')
        #		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1(417)')
        assert_p('ChildRecordsJTbl', 'Text', 'yyAms PO Download: Header',
                 '' + commonBits.fl('Child Record') + ',1')
        #		select('ChildRecordsJTbl', '417', commonBits.fl('Child Record') + ',1')
        #		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(418)')
        #		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',2(418)')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Child Records')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0(416)')
        keystroke('ChildRecordsJTbl', 'Ctrl+C',
                  '' + commonBits.fl('Child Record') + ',0')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0(416)')
        select('TextField', 'yyAms PO Download: D%')
        select('TextField1', '%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        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', '',
                 commonBits.fl('Description') + ',0')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Pack Cost)')
        assert_p('RecordFieldsJTbl', 'Text', 'Pack Cost',
                 '' + commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',1(8)')
        ##		assert_p('RecordFieldsJTbl', 'Text', '8', '' + commonBits.fl('FieldType') + ',1')
        ##		assert_p('RecordFieldsJTbl', 'Text', commonBits.fl('Num Assumed Decimal (Zero padded)'), '' + commonBits.fl('FieldType') + ',1')

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',1(7)')
        assert_p('TextField8', 'Text',
                 commonBits.fl('Num Assumed Decimal (Zero padded)'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',0(0)')
        ##		assert_p('RecordFieldsJTbl', 'Text', '0', '' + commonBits.fl('FieldType') + ',4')
        ##		assert_p('RecordFieldsJTbl', 'Text', commonBits.fl('Char'), '' + commonBits.fl('FieldType') + ',4')

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',4(7)')
        assert_p('TextField8', 'Text', commonBits.fl('Char'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',3(7)')
        ##		assert_p('RecordFieldsJTbl', 'Text', '0', '' + commonBits.fl('FieldType') + ',4')
        ##		assert_p('RecordFieldsJTbl', 'Text', commonBits.fl('Char'), '' + commonBits.fl('FieldType') + ',4')

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',4(7)')
        assert_p('TextField8', 'Text', commonBits.fl('Char'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',8(Product Name)')
        assert_p('RecordFieldsJTbl', 'Text', 'Product Name',
                 '' + commonBits.fl('FieldName') + ',8')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',8(Product Name)')
        ##		assert_p('BmKeyedComboBox3', 'Text', '0')
        assert_p('BmKeyedComboBox3', 'Text', 'Unkown')
        assert_p('BmKeyedComboBox2', 'Text', commonBits.fl('Record Layout'))
        select('TextField', 'yyAms PO Download: H%')
        select('TextField1', '%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        assert_p('TextField2', 'Text', 'yyAms PO Download: Header')
        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') + ',2(Vendor)')
        assert_p('RecordFieldsJTbl', 'Text', 'Vendor',
                 '' + commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3(PO)')
        assert_p('RecordFieldsJTbl', 'Text', 'Entry Date',
                 '' + commonBits.fl('FieldName') + ',4')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',4(Entry Date)')
        assert_p('RecordFieldsJTbl', 'Text', 'Entry Date',
                 '' + commonBits.fl('FieldName') + ',4')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',6(beg01 code)')
        assert_p('RecordFieldsJTbl', 'Text', 'beg01 code',
                 '' + commonBits.fl('FieldName') + ',6')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',8(Department)')
        assert_p('RecordFieldsJTbl', 'Text', 'Department',
                 '' + commonBits.fl('FieldName') + ',8')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',1(8)')
        ##		assert_p('RecordFieldsJTbl', 'Text', '8', '' + commonBits.fl('FieldType') + ',1')
        ##		assert_p('RecordFieldsJTbl', 'Text', commonBits.fl('Num Assumed Decimal (Zero padded)'), commonBits.fl('FieldType') + ',3')

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',3(7)')
        assert_p('TextField8', 'Text',
                 commonBits.fl('Num Assumed Decimal (Zero padded)'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',3(8)')
        ##		assert_p('RecordFieldsJTbl', 'Text', '8', '' + commonBits.fl('FieldType') + ',3')
        ##		assert_p('RecordFieldsJTbl', 'Text', commonBits.fl('Num Assumed Decimal (Zero padded)'), '' + commonBits.fl('FieldType') + ',3')

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',3(7)')
        assert_p('TextField8', 'Text',
                 commonBits.fl('Num Assumed Decimal (Zero padded)'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',3(8)')
        select('TextField', 'yyAms PO Download: A%')
        select('TextField1', '%')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        assert_p('CheckBox', 'Text', 'false')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(DC Number 1)')
        assert_p('RecordFieldsJTbl', 'Text', 'DC Number 1',
                 '' + commonBits.fl('FieldName') + ',1')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Pack Quantity 1)')
        assert_p('RecordFieldsJTbl', 'Text', 'Pack Quantity 1',
                 '' + commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3(DC Number 2)')
        assert_p('RecordFieldsJTbl', 'Text', 'DC Number 2',
                 '' + commonBits.fl('FieldName') + ',3')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',4(Pack Quantity 2)')
        assert_p('RecordFieldsJTbl', 'RowCount', '19')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',2(7)')
        ##assert_p('RecordFieldsJTbl', 'Text', '7', '' + commonBits.fl('FieldType') + ',4')

        ##		assert_p('RecordFieldsJTbl', 'Text', commonBits.fl('Num (Right Justified zero padded)'), '' + commonBits.fl('FieldType') + ',4')

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldType') + ',4(7)')
        assert_p('TextField8', 'Text',
                 commonBits.fl('Num (Right Justified zero padded)'))

        # 		commonBits.delete3(click)
        select('TextField', 'yyAms PO Download')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Child Records')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: yyAms PO Download')):
            click('Yes')
        close()

        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        select('TextField', 'yyAms PO Download%')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        select('TextField', 'yyAms PO Download: A%')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: yyAms PO Download: Allocation')):
            click('Yes')
        close()

        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        select('TextField', 'yyAms PO Download: H%')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Extras')
        #		select('TabbedPane', 'Fields')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: yyAms PO Download: Header')):
            click('Yes')
        close()

        select('TextField', 'yyAms PO Download: %')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: yyAms PO Download: Detail')):
            click('Yes')
        close()
        click(commonBits.fl('Close'))

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

    if window('Record Layout Definitions'):
        click('*1')
        select('RecordDef.Record Name_Txt', 'zx3xzFLDg777')
        select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records'))

        select('RecordDef.System_Txt', 'Unkown')

        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0()')
        select('ChildRecordsJTbl', 'zx3xzFLD2',
               commonBits.fl('Child Record') + ',0')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0(zx3xzFLD2)')
        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',1()')
        select('ChildRecordsJTbl', 'zx3xzFLD2',
               commonBits.fl('Child Record') + ',1')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',1(zx3xzFLD2)')
        assert_p('ChildRecordsJTbl', 'Content',
                 '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ]]')
        ##		select('ChildRecordsJTbl', 'cell: ,1(null)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',0')
        select_menu(commonBits.fl('Edit Child Record'))
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]'
        )
        click(commonBits.fl('Save As'))

        #select('TabbedPane1', 'Extras')
        #select('TabbedPane1', 'Extras')
        #select('TabbedPane1', 'Child Records')

        if window('Input'):
            select('OptionPane.textField', 'zx3xzFLD2a77')
            click('OK')
        close()

        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 1, fld 21, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl', 'fld 21a77',
               commonBits.fl('FieldName') + ',0')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',1()')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 1, fld 21a77, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',1()')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD2a77, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', 'cell: ,2(null)')

        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2')
        select_menu(commonBits.fl('Edit Child Record'))

        commonBits.new1(click)

        select('RecordDef.Record Name_Txt', 'zx3xzFLDg77zxc')
        click(commonBits.fl('Insert'))

        select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0')
        select('RecordFieldsJTbl', '39', commonBits.fl('Length') + ',0')
        select('RecordFieldsJTbl', 'ffff', commonBits.fl('FieldName') + ',0')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',0()')
        assert_p('RecordFieldsJTbl', 'Content',
                 '[[1, 39, ffff, , 0, 0, 0, , , ]]')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',0()')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD2a77, , , , , ], [, zx3xzFLDg77zxc, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', 'cell: ,2(null)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2')
        select_menu(commonBits.fl('Edit Child Record'))
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 1, fld 21a77, , 0, 0, 0, , , ], [2, 5, fld 22, , 0, 0, 0, , , ], [7, 9, fld 23, , 0, 0, 0, , , ], [18, 10, fld 24, , 0, 0, 0, , , ]]'
        )
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLD2a77')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLD2a77, , , , , ], [, zx3xzFLDg77zxc, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', 'cell: ,2(null)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2')
        select_menu(commonBits.fl('Edit Child Record'))
        commonBits.delete2(click)

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

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg77zxc, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', 'cell: ,2(null)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Child Name') + ',2')
        select_menu(commonBits.fl('Edit Child Record'))
        assert_p('RecordFieldsJTbl', 'Content',
                 '[[1, 39, ffff, , 0, 0, 0, , , ]]')
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg77zxc')
        commonBits.delete2(click)

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

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        assert_p('ChildRecordsJTbl', 'Content',
                 '[[, zx3xzFLD2, , , , , ], [, zx3xzFLD2, , , , , ]]')
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: zx3xzFLDg777')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #14
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.5.0_11'

    if window('Record Layout Definitions'):
        click('*')
        click('New')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        select('TextField2', 'ZZ - Create 1')
        select('TextField3', '3')
        click(commonBits.fl('Insert'))
        select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0')
        select('RecordFieldsJTbl', '2', commonBits.fl('Length') + ',0')
        select('RecordFieldsJTbl', 'Field l2',
               commonBits.fl('FieldName') + ',0')
        select('RecordFieldsJTbl', '3', commonBits.fl('Position') + ',1')
        select('RecordFieldsJTbl', '12', commonBits.fl('Length') + ',1')
        select('RecordFieldsJTbl', 'Field l12',
               commonBits.fl('FieldName') + ',1')
        select('RecordFieldsJTbl', '15', commonBits.fl('Position') + ',2')
        select('RecordFieldsJTbl', '30', commonBits.fl('Length') + ',2')
        select('RecordFieldsJTbl', 'Field l30',
               commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',0(Field l2)')
        rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',0')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Field l12)')
        rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',1')
        select_menu(commonBits.fl('Copy Record#{s#}'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Field l30)')
        rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',2')
        select_menu(commonBits.fl('Paste Record#{s#}'))
        select('RecordFieldsJTbl', '45', commonBits.fl('Position') + ',3')
        select('RecordFieldsJTbl', 'Field l12a',
               commonBits.fl('FieldName') + ',3')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Field l30)')
        rightclick('RecordFieldsJTbl', commonBits.fl('FieldName') + ',2')
        select_menu(commonBits.fl('Cut Record#{s#}'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Field l12a)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',2()')
        assert_p('RecordFieldsJTbl', 'RowCount', '3')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',2()')
        rightclick('RecordFieldsJTbl', commonBits.fl('Description') + ',2')
        select_menu(commonBits.fl('Paste Record#{s#}'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',2()')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ], [15, 30, Field l30, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Field l12a)')
        assert_p('RecordFieldsJTbl', 'RowCount', '4')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Field l12)')
        commonBits.save1(click)

        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('TextField', 'ZZ - Create 1%')
        select('TextField1', '%')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Field l12)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [15, 30, Field l30, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Field l12)')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('*')
        select('TextField', 'ZZ - Create 1%')
        select('TextField1', '%')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Fields')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Field l12)')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, Field l2, , 0, 0, 0, , , ], [3, 12, Field l12, , 0, 0, 0, , , ], [15, 30, Field l30, , 0, 0, 0, , , ], [45, 12, Field l12a, , 0, 0, 0, , , ]]'
        )
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Field l12)')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: ZZ - Create 1')):
            click('Yes')
        close()

        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Child Records')
        ###select('TabbedPane', 'Extras')
        #select('TabbedPane', 'Child Records')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #15
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()
Exemple #16
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_17'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() + 'DTAR1000_Store_file_std.bin')
		click(commonBits.fl('Layout Wizard'))
		click('Right')
		select('TabbedPane', '')
		assert_p('TextField1', 'Text', 'cp037')
		if commonBits.isVersion80():
			assert_p('TextField', 'Text', '')
		else:
			assert_p('TextField', 'Text', '100')
##		assert_p('EditorPane', 'Text', '''<html>
##  <head>
##    
##  </head>
##  <body>
##    <h3>
##      File Structure
##    </h3>
##    <p>
##      This screen lets you select the File structure.<br>For Standard Windows 
##      / Unix files use <b>Text IO</b>.<br>For Fixed width files, You can click 
##      on the Start of the second record to set the length.
##    </p>
##  </body>
##</html>
##''')

#		assert_p('EditorPane', 'Text', '''<html>
#  <head>
#    
#  </head>
#  <body>
#    ''' + commonBits.fl('''<h3>
#      File Structure
#    </h3>
#    <p>
#      This screen lets you select the File structure.<br>For Standard Windows 
#      / Unix files use <b>Text IO</b>.<br>For Fixed width files, You can click 
#      on the Start of the second record to set the length.''') + '''
#    </p>
#  </body>
#</html>
#''')


		click('Right')
		select('TabbedPane', '')
		if commonBits.isNimbusLook():
			assert_p('Table', 'Background', 'DerivedColor(color=255,255,255 parent=nimbusLightBackground offsets=0.0,0.0,0.0,0 pColor=255,255,255')
		else:
			assert_p('Table', 'Background', '[r=255,g=255,b=255]')
		click('Right')
		select('TabbedPane', '')
		assert_p('Table', 'Content', '[[, 1, 2, 35, 0, true], [, 3, 2, 35, 0, true], [, 5, 2, 0, 0, true], [, 7, 48, 0, 0, true], [, 55, 6, 0, 0, true]]')
		assert_p('Table1', 'Content', '[[1, 20, V , Geelong                                         , NYNNNN], [2, 40, Q , Coffs Harbour                                   , NYNNNN], [3, 40, Q , Mackay                                          , NYNNNN], [4, 20, V , Ballarat                                        , NYNNNN], [5, 20, V , Albury                                          , NYNNNN], [6, 20, V , Wodonga                                         , NYNNNN], [7, 20, V , Shepparton                                      , NYNNNN], [8, 20, V , Bendigo                                         , NYNNNN], [9, 50, S , Centrepoint                                     , NYNNNN], [10, 40, Q , Earlville                                       , NYNNNN], [11, 10, N , Cessnock                                        , NYNNNN], [12, 20, V , Ringwood                                        , NYNNNN], [15, 10, N , Bankstown                                       , NYNNNN], [16, 10, N , Glendale                                        , NYNNNN], [19, 10, N , Penrith                                         , NYNNNN], [20, 40, Q , Indooroopilly                                   , NYNNNN], [21, 50, S , Tea Tree Plaza                                  , NYNNNN], [23, 20, V , Warnambool                                      , NYNNNN], [24, 50, S , Newton                                          , NYNNNN], [25, 50, S , Fulham Gardens                                  , NYNNNN], [26, 50, S , Edwardstown                                     , NYNNNN], [27, 40, Q , Runaway Bay                                     , NYNNNN], [28, 20, V , Launceston                                      , NYNNNN], [30, 20, V , Epping                                          , NYNNNN], [32, 20, V , Camberwell                                      , NYNNNN], [33, 10, Y , Blacktown (Closed)                              , NYNNNN], [35, 10, N , Rockdale                                        , NYNNNN], [36, 60, W , Fremantle                                       , NYNNNN], [21, 10, N , Miranda                                         , NYNNNN], [38, 40, Q , Maroochydore                                    , NYNNNN], [39, 20, V , Colac                                           , NYNNNN], [40, 40, Q , Tweed Heads                                     , NYNNNN], [42, 20, V , Reservoir                                       , NYNNNN], [43, 60, W , Morley                                          , NYNNNN], [44, 50, S , Mt Gambier                                      , NYNNNN], [45, 60, W , Carousel                                        , NYNNNN], [46, 10, N , Dubbo                                           , NYNNNN], [47, 50, S , Sefton Park                                     , NYNNNN], [48, 40, Q , Bundaberg                                       , NYNNNN], [49, 40, Q , Rockhampton                                     , NYNNNN], [52, 10, N , Eastwood                                        , NYNNNN], [54, 20, V , Highpoint City                                  , NYNNNN], [55, 10, N , Leichhardt                                      , NYNNNN], [57, 60, W , Victoria Park                                   , NYNNNN], [58, 20, V , Knox City                                       , NYNNNN], [59, 40, Q , Buranda                                         , NYNNNN], [60, 10, N , St Marys                                        , NYNNNN], [61, 20, V , Waverley Gardens                                , NYNNNN], [62, 40, Q , Castletown                                      , NYNNNN], [64, 20, V , Hoppers Crossing                                , NYNNNN], [65, 60, W , Innaloo                                         , NYNNNN], [67, 20, V , Morwell Mid Valley                              , NYNNNN], [68, 40, Q , Mt Gravatt                                      , NYNNNN], [69, 60, W , Midland                                         , NYNNNN], [70, 10, N , Bass Hill                                       , NYNNNN], [72, 60, W , Geraldton                                       , NYNNNN], [73, 40, Q , Southport                                       , NYNNNN], [74, 10, N , Campbelltown                                    , NYNNNN], [75, 20, V , Sale                                            , NYNNNN], [76, 60, W , Bull Creek                                      , NYNNNN]]')
		select('Table', 'store', commonBits.fl('Field Name') + ',0')
		select('Table', 'region', commonBits.fl('Field Name') + ',1')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',1()')
		keystroke('Table', 'Down', commonBits.fl('Field Name') + ',1')
		select('Table', 'StateChar', commonBits.fl('Field Name') + ',2')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',2()')
		keystroke('Table', 'Down', commonBits.fl('Field Name') + ',2')
		select('Table', 'name', commonBits.fl('Field Name') + ',3')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',3()')
		keystroke('Table', 'Down', commonBits.fl('Field Name') + ',3')
		select('Table', 'flags', commonBits.fl('Field Name') + ',4')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',1(region)')
		assert_p('Table', 'Content', '[[store, 1, 2, 35, 0, true], [region, 3, 2, 35, 0, true], [StateChar, 5, 2, 0, 0, true], [name, 7, 48, 0, 0, true], [flags, 55, 6, 0, 0, true]]')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',1(region)')
		assert_p('Table1', 'Content', '[[1, 20, V , Geelong                                         , NYNNNN], [2, 40, Q , Coffs Harbour                                   , NYNNNN], [3, 40, Q , Mackay                                          , NYNNNN], [4, 20, V , Ballarat                                        , NYNNNN], [5, 20, V , Albury                                          , NYNNNN], [6, 20, V , Wodonga                                         , NYNNNN], [7, 20, V , Shepparton                                      , NYNNNN], [8, 20, V , Bendigo                                         , NYNNNN], [9, 50, S , Centrepoint                                     , NYNNNN], [10, 40, Q , Earlville                                       , NYNNNN], [11, 10, N , Cessnock                                        , NYNNNN], [12, 20, V , Ringwood                                        , NYNNNN], [15, 10, N , Bankstown                                       , NYNNNN], [16, 10, N , Glendale                                        , NYNNNN], [19, 10, N , Penrith                                         , NYNNNN], [20, 40, Q , Indooroopilly                                   , NYNNNN], [21, 50, S , Tea Tree Plaza                                  , NYNNNN], [23, 20, V , Warnambool                                      , NYNNNN], [24, 50, S , Newton                                          , NYNNNN], [25, 50, S , Fulham Gardens                                  , NYNNNN], [26, 50, S , Edwardstown                                     , NYNNNN], [27, 40, Q , Runaway Bay                                     , NYNNNN], [28, 20, V , Launceston                                      , NYNNNN], [30, 20, V , Epping                                          , NYNNNN], [32, 20, V , Camberwell                                      , NYNNNN], [33, 10, Y , Blacktown (Closed)                              , NYNNNN], [35, 10, N , Rockdale                                        , NYNNNN], [36, 60, W , Fremantle                                       , NYNNNN], [21, 10, N , Miranda                                         , NYNNNN], [38, 40, Q , Maroochydore                                    , NYNNNN], [39, 20, V , Colac                                           , NYNNNN], [40, 40, Q , Tweed Heads                                     , NYNNNN], [42, 20, V , Reservoir                                       , NYNNNN], [43, 60, W , Morley                                          , NYNNNN], [44, 50, S , Mt Gambier                                      , NYNNNN], [45, 60, W , Carousel                                        , NYNNNN], [46, 10, N , Dubbo                                           , NYNNNN], [47, 50, S , Sefton Park                                     , NYNNNN], [48, 40, Q , Bundaberg                                       , NYNNNN], [49, 40, Q , Rockhampton                                     , NYNNNN], [52, 10, N , Eastwood                                        , NYNNNN], [54, 20, V , Highpoint City                                  , NYNNNN], [55, 10, N , Leichhardt                                      , NYNNNN], [57, 60, W , Victoria Park                                   , NYNNNN], [58, 20, V , Knox City                                       , NYNNNN], [59, 40, Q , Buranda                                         , NYNNNN], [60, 10, N , St Marys                                        , NYNNNN], [61, 20, V , Waverley Gardens                                , NYNNNN], [62, 40, Q , Castletown                                      , NYNNNN], [64, 20, V , Hoppers Crossing                                , NYNNNN], [65, 60, W , Innaloo                                         , NYNNNN], [67, 20, V , Morwell Mid Valley                              , NYNNNN], [68, 40, Q , Mt Gravatt                                      , NYNNNN], [69, 60, W , Midland                                         , NYNNNN], [70, 10, N , Bass Hill                                       , NYNNNN], [72, 60, W , Geraldton                                       , NYNNNN], [73, 40, Q , Southport                                       , NYNNNN], [74, 10, N , Campbelltown                                    , NYNNNN], [75, 20, V , Sale                                            , NYNNNN], [76, 60, W , Bull Creek                                      , NYNNNN]]')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',1(region)')
		click('Right')
		select('TabbedPane', '')
		select('TextField', 'Wizard_DTAR1000')
		click('Right')
		select('Table', 'rows:[2,3,4,5,6,7,8,9,10],columns:[5 - 2|StateChar]')
		select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}'))
#		select('Table2', 'rows:[2,3,4,5,6,7,8,9,10],columns:[5 - 2|StateChar]')
		assert_p('Table', 'Content', '[[3, 40, Q, Mackay, NYNNNN], [4, 20, V, Ballarat, NYNNNN], [5, 20, V, Albury, NYNNNN], [6, 20, V, Wodonga, NYNNNN], [7, 20, V, Shepparton, NYNNNN], [8, 20, V, Bendigo, NYNNNN], [9, 50, S, Centrepoint, NYNNNN], [10, 40, Q, Earlville, NYNNNN], [11, 10, N, Cessnock, NYNNNN]]')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
#		select('Table', 'rows:[2,3,4,5,6,7,8,9,10],columns:[5 - 2|StateChar]')
#		select('Table', 'rows:[2,3,4,5,6,7,8,9,10],columns:[5 - 2|StateChar]')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('Open')
##		select('ComboBox1', 'Mainframe')
		select('ComboBox2', 'DTAR1000 VB')
		click(commonBits.fl('Edit') + '1')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout'))
		select('TextField', 'Wizard_DTAR1000')
		select('TextField1', '%')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Fields')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Fields')
		##click('Delete3')

		commonBits.delete3(click)

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

		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Fields')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Extras')
		##select('TabbedPane', 'Fields')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
Exemple #17
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_22'

	if window('Record Layout Definitions'):
		click('*1')
		select('RecordDef.Record Name_Txt', 'zx3xzFLDg777')
		select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records')
)

		select('RecordDef.System_Txt', 'Unkown')

		click(commonBits.fl('Insert'))


		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0()')
		select('ChildRecordsJTbl', 'zx3xzFLD1', commonBits.fl('Child Record') + ',0')
		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',0(zx3xzFLD1)')
		click(commonBits.fl('Insert'))


		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Child Record') + ',1()')
		select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Child Record') + ',1')
		select('ChildRecordsJTbl', 'zx3xzFLD2', commonBits.fl('Tree Parent') + ',0')
		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',0(zx3xzFLD2)')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ]]')
		select('ChildRecordsJTbl', 'cell: ,1(null)')
		commonBits.new1(click)

		select('RecordDef.Record Name_Txt', 'zx3xzFLDg777aaaa')
		click(commonBits.fl('Insert'))


		select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0')
		select('RecordFieldsJTbl', '1111', commonBits.fl('Length') + ',0')
		select('RecordFieldsJTbl', 'fff', commonBits.fl('FieldName') + ',0')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fff, , 0, 0, 0, , , ]]')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777aaaa')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777aaaa, , , , , ]]')
		select('ChildRecordsJTbl', 'zx3xzFLDg777aaaa', commonBits.fl('Tree Parent') + ',1')
		select('ChildRecordsJTbl', 'cell: ,2(null)')
		click(commonBits.fl('Save As'))




		if window('Input'):
			assert_p('OptionPane.textField', 'Text', 'zx3xzFLDg777aaaa')
			select('OptionPane.textField', 'zx3xzFLDg777bbbb')
			click('OK')
		close()


		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		select('RecordFieldsJTbl', 'fffbbb', commonBits.fl('FieldName') + ',0')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , ]]')
		select('ChildRecordsJTbl', 'zx3xzFLDg777aaaa', commonBits.fl('Tree Parent') + ',3')
		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',3(zx3xzFLDg777aaaa)')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa]]')
		select('ChildRecordsJTbl', 'cell: ,3(null)')
		click(commonBits.fl('Save As'))




		if window('Input'):
			select('OptionPane.textField', 'zx3xzFLDg777cccc')
			click('OK')
		close()


		assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777cccc, , , , , ]]')
		select('ChildRecordsJTbl', 'zx3xzFLDg777bbbb', commonBits.fl('Tree Parent') + ',4')
		select('ChildRecordsJTbl', 'cell: ,4(null)')
		assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]')
		select('RecordDef.Record Name_Txt', 'zx3xzFLDg777dddd')
		commonBits.save1(click)

		click(commonBits.fl('Save As'))




		if window('Input'):
			select('OptionPane.textField', 'zx3xzFLDg777eeee')
			click('OK')
		close()


		assert_p('RecordFieldsJTbl', 'Text', '', commonBits.fl('Description') + ',0')
		select('RecordFieldsJTbl', 'fffbbbee', commonBits.fl('FieldName') + ',0')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		assert_p('RecordFieldsJTbl', 'Text', '', commonBits.fl('Description') + ',0')
		select('RecordFieldsJTbl', 'cell:' + commonBits.fl('Description') + ',0()')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , ]]')


		click(commonBits.fl('Refresh')
)

		select('ChildRecordsJTbl', 'cell: ,4(null)')
		assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]')
		assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777dddd')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		select('ChildRecordsJTbl', 'zx3xzFLDg777aaaa', commonBits.fl('Tree Parent') + ',5')
		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',5(zx3xzFLDg777aaaa)')

##		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777cccc, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]')


		select('ChildRecordsJTbl', 'cell: ,3(null)')
		assert_p('RecordFieldsJTbl', 'Content', '[[1, 1111, fffbbb, , 0, 0, 0, , , ]]')
		assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777bbbb')
		commonBits.delete2(click)

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


		click('BasicInternalFrameTitlePane$NoFocusButton2')
##		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]')
##		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777bbbb, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777dddd, , , , , zx3xzFLDg777bbbb], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , zx3xzFLDg777aaaa], [, zx3xzFLDg777aaaa, , , , , ], [, zx3xzFLDg777dddd, , , , , ], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777aaaa]]')


		select('ChildRecordsJTbl', 'cell: ,2(null)')
		assert_p('RecordFieldsJTbl', 'Text', 'fff', commonBits.fl('FieldName') + ',0')
		assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777aaaa')
		commonBits.delete2(click)

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


		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777dddd, , , , , ], [, zx3xzFLDg777eeee, , , , , ]]')

		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') + ',3()')
		select('ChildRecordsJTbl', 'zx3xzFLDg777dddd', commonBits.fl('Tree Parent') + ',3')
		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field Value') + ',2()')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('*')
		select('RecordList.Record Name_Txt', 'zx3xzFLDg777')

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


		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777dddd, , , , , ], [, zx3xzFLDg777eeee, , , , , zx3xzFLDg777dddd]]')
		select('ChildRecordsJTbl', 'cell: ,2(null)')
		assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777dddd')
		commonBits.delete2(click)

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

		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ], [, zx3xzFLDg777eeee, , , , , ]]')
		select('ChildRecordsJTbl', 'cell: ,2(null)')
		assert_p('RecordDef.Record Name_Txt', 'Text', 'zx3xzFLDg777eeee')
		commonBits.delete2(click)

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


		click('BasicInternalFrameTitlePane$NoFocusButton2')
		assert_p('ChildRecordsJTbl', 'Content', '[[, zx3xzFLD1, , , , , zx3xzFLD2], [, zx3xzFLD2, , , , , ]]')
		commonBits.delete3(click)
		if window(commonBits.fl('Delete: zx3xzFLDg777')):
			click('Yes')
		close()

Exemple #18
0
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', '3')
        click(commonBits.fl('Insert'))

        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field') + ',0()')
        select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',0')
        select('RecordSelectionJTbl', '11',
               commonBits.fl('Field Value') + ',0')
        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field Value') + ',0()')
        rightclick('RecordSelectionJTbl', 'and,1')
        select('RecordSelectionJTbl', 'fld 11', commonBits.fl('Field') + ',1')
        select('RecordSelectionJTbl', '11a',
               commonBits.fl('Field Value') + ',1')
        select('RecordSelectionJTbl', 'fld 12', commonBits.fl('Field') + ',2')
        select('RecordSelectionJTbl', '12',
               commonBits.fl('Field Value') + ',2')
        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field Value') + ',1(11a)')
        ##		assert_p('RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [Or, , fld 11, =, 11a], [, And, fld 12, =, 12]]')
        assert_p(
            'RecordSelectionJTbl', 'Content', '[[, , fld 11, =, 11], [' +
            commonBits.fl('Or') + ', , fld 11, =, 11a], [, ' +
            commonBits.fl('And') + ', fld 12, =, 12]]')

        select('RecordSelectionJTbl',
               'cell:' + commonBits.fl('Field Value') + ',1(11a)')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        select('ChildRecordsJTbl', 'fff', commonBits.fl('Field') + ',0')
        select('ChildRecordsJTbl', 'vvv1', commonBits.fl('Field Value') + ',0')
        select('ChildRecordsJTbl', 'cell:rs,0(null)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',1')
        select_menu(commonBits.fl('Edit Record Selections'))

        ##		select('ChildRecordsJTbl', 'cell:rs,0(null)')
        ##		select('Lines to Insert_Txt', '2')
        select('Lines to Insert_Txt1', '2')
        click(commonBits.fl('Insert') + '1')
        ##		click(commonBits.fl('Insert'))

        select('RecordSelectionJTbl1',
               'cell:' + commonBits.fl('Field') + ',0()')
        select('RecordSelectionJTbl1', 'fld 21', commonBits.fl('Field') + ',0')
        select('RecordSelectionJTbl1', 'fld 22', commonBits.fl('Field') + ',1')
        select('RecordSelectionJTbl1', '21',
               commonBits.fl('Field Value') + ',0')
        select('RecordSelectionJTbl1', '22',
               commonBits.fl('Field Value') + ',1')
        select('RecordSelectionJTbl1',
               'cell:' + commonBits.fl('Field Value') + ',0(21)')
        assert_p(
            'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [, ' +
            commonBits.fl('And') + ', fld 22, =, 22]]')
        select('RecordSelectionJTbl1',
               'cell:' + commonBits.fl('Field Value') + ',0(21)')

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('ChildRecordsJTbl', 'cell:rs,0(null)')
        select('ChildRecordsJTbl', 'ggg', commonBits.fl('Field') + ',1')
        select('ChildRecordsJTbl', 'vv2', commonBits.fl('Field Value') + ',1')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',1')
        select_menu(commonBits.fl('Edit Record Selections'))
        ##		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1(ggg)')

        assert_p(
            'RecordSelectionJTbl1', 'Content', '[[, , fld 21, =, 21], [, ' +
            commonBits.fl('And') + ', fld 22, =, 22]]')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',2')
        select_menu(commonBits.fl('Edit Record Selections'))
        ##		select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1(ggg)')

        click(commonBits.fl('Insert') + '2')
        ##		click(commonBits.fl('Insert'))

        select('RecordSelectionJTbl2',
               'cell:' + commonBits.fl('Field') + ',0()')
        select('RecordSelectionJTbl2', 'fld 32', commonBits.fl('Field') + ',0')
        select('RecordSelectionJTbl2', '32',
               commonBits.fl('Field Value') + ',0')
        select('RecordSelectionJTbl2', 'cell:or,0()')
        assert_p('RecordSelectionJTbl2', 'Content', '[[, , fld 32, =, 32]]')
        select('RecordSelectionJTbl2', 'cell:or,0()')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        rightclick('ChildRecordsJTbl', commonBits.fl('Field') + ',1')
        select_menu(commonBits.fl('View Record Selections Tree'))
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        ##		assert_p('JTreeTable', 'Content', '[[, ,   ,   ,   , fff, =, vvv1], [, , And  ,   ,   , fld 11, =, 11], [, ,   , Or  ,   , fld 11, =, 11a], [, ,   ,   , And  , fld 12, =, 12], [, ,   ,   ,   , ggg, =, vv2], [, , And  ,   ,   , fld 21, =, 21], [, ,   ,   , And  , fld 22, =, 22], [, ,   ,   ,   , , =, ], [, , And  ,   ,   , fld 32, =, 32]]')
        assert_p(
            'JTreeTable', 'Content',
            '[[, ,   ,   ,   , fff, =, vvv1], [, , ' + commonBits.fl('And') +
            '  ,   ,   , fld 11, =, 11], [, ,   , ' + commonBits.fl('Or') +
            '  ,   , fld 11, =, 11a], [, ,   ,   , ' + commonBits.fl('And') +
            '  , fld 12, =, 12], [, ,   ,   ,   , ggg, =, vv2], [, , ' +
            commonBits.fl('And') +
            '  ,   ,   , fld 21, =, 21], [, ,   ,   , ' +
            commonBits.fl('And') +
            '  , fld 22, =, 22], [, ,   ,   ,   , , =, ], [, , ' +
            commonBits.fl('And') + '  ,   ,   , fld 32, =, 32]]')

        select('JTreeTable',
               'cell:' + commonBits.fl('Boolean op 2') + '    ,1(  )')

        click('BasicInternalFrameTitlePane$NoFocusButton2')

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',1(ggg)')
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: zxxxzFLDg4')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #19
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_03'

    if window('Record Layout Definitions'):
        click('*7')

        select(
            'FileChooser',
            commonBits.copybookDir() + 'csv' + commonBits.separator() +
            'ams@[email protected]')

        select('ManagerCombo',
               commonBits.fl('RecordEditor Tab Copybook (Tab Seperator)'))
        click(commonBits.fl('Go'))

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('*')
        select('TextField', 'ams@%')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Child Records')
        select('TextField1', '%')
        ##		##select('TabbedPane', 'Extras')
        select('TabbedPane', commonBits.fl('Extras'))
        select('TabbedPane', commonBits.fl('Child Records'))
        select(
            'Table',
            'cell:' + commonBits.fl('Description') + ''',0(Ams PO Record

line 3)''')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',0(Record Type)')
        assert_p('ChildRecordsJTbl', 'Text', 'Record Type',
                 commonBits.fl('Field') + ',0')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Field') + ',0(Record Type)')
        assert_p('BmKeyedComboBox2', 'Text', commonBits.fl('Group of Records'))
        click('RecordPnl', 93, 74)
        ##		assert_p('BmKeyedComboBox3', 'Content', '[[7, 101, 3, 99, 32, 9, 5, 0, 102]]')
        assert_p('BmKeyedComboBox3', 'Content',
                 '[[7, 101, 3, 99, 32, 9, 5, 103, 0, 102]]')

        ##		assert_p('BmKeyedComboBox3', 'Content', '[[7, 3, 101, 32, 9, 5, 0]]')
        select('TextArea', '''ams PO Download: Allocation 

  some more text''')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        select('Table',
               'rows:[0,1],columns:[' + commonBits.fl('Record Name') + ']')
        ##		assert_p('BmKeyedComboBox2', 'Text', 'Record Layout')
        select('TextField', 'ams@%A%')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Child Records')
        select('TabbedPane', commonBits.fl('Extras'))
        #		##select('TabbedPane', 'Extras')
        select('TabbedPane', commonBits.fl('Child Records'))
        select('TextField', 'ams@%All%')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		assert_p('BmKeyedComboBox2', 'Text', 'Record Layout')
        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(DC Number 1)')
        assert_p('RecordFieldsJTbl', 'Text', 'Pack Quantity 4',
                 commonBits.fl('FieldName') + ',6')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3(DC Number 2)')
        assert_p('RecordFieldsJTbl', 'Text', 'Pack Quantity 4',
                 commonBits.fl('FieldName') + ',6')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3(DC Number 2)')
        assert_p('Label8', 'Text', commonBits.fl('Record Type'))
        select('TextField', 'ams@%Det%')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        click('RecordPnl', 95, 50)
        assert_p('TextArea', 'Text', '''ams PO Download: Detail

line 3''')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Pack Qty)')
        assert_p('RecordFieldsJTbl', 'Text', 'APN',
                 commonBits.fl('FieldName') + ',3')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Position') + ',3(25)')
        click('RecordPnl', 8, 402)
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Position') + ',4(38)')
        assert_p('RecordPnl', 'Enabled', 'true')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Position') + ',5(39)')
        assert_p('RecordFieldsJTbl', 'Text', '87',
                 commonBits.fl('Position') + ',7')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Position') + ',6(72)')
        assert_p('RecordFieldsJTbl', 'Text', '101',
                 commonBits.fl('Position') + ',8')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Position') + ',6(72)')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: ams@PO@Download@@Detail')):
            click('Yes')
        close()

        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        select('TextField', 'ams@%Hea%')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		assert_p('CheckBox', 'Text', 'false')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Position') + ',4(30)')
        assert_p('RecordFieldsJTbl', 'Text', '48',
                 commonBits.fl('Position') + ',8')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',4(Entry Date)')
        assert_p('RecordFieldsJTbl', 'Text', 'Cancel by date',
                 commonBits.fl('FieldName') + ',10')
        select(
            'RecordFieldsJTbl',
            'cell:' + commonBits.fl('FieldName') + ',9(Expected Reciept Date)')
        assert_p('RecordFieldsJTbl', 'Text', 'Filler',
                 commonBits.fl('FieldName') + ',13')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',9(Format YYMMDD)')
        assert_p('RecordFieldsJTbl', 'Text', 'Format YYMMDD',
                 commonBits.fl('Description') + ',10')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',9(Format YYMMDD)')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: ams@PO@Download@@Header')):
            click('Yes')
        close()

        select('TabbedPane', commonBits.fl('Extras'))
        ##		##select('TabbedPane', 'Extras')
        select('TabbedPane', commonBits.fl('Fields'))
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        select('TextField', 'ams@%All%')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: ams@PO@Download@@Allocation')):
            click('Yes')
        close()

        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Fields')
        select('TextField', 'ams@%')
        #		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Child Records')
        ##		##select('TabbedPane', 'Extras')
        ##		##select('TabbedPane', 'Extras')
        ##		select('TabbedPane', 'Child Records')
        commonBits.delete3(click)

        if window(commonBits.fl('Delete: ams@PO@Download')):
            click('Yes')
        close()

        click(commonBits.fl('Close'))
##		select_menu('File>>Exit')
    close()
Exemple #20
0
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', 'zxzxzFLDg777')
        click(commonBits.fl('Insert'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',0()')
        commonBits.delete2(click)
        select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records'))

        select('RecordDef.System_Txt', 'Unkown')

        click(commonBits.fl('Insert'))

        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0()')
        select('ChildRecordsJTbl', 'zxzxzFLD1',
               commonBits.fl('Child Record') + ',0')
        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', '')
        ##		select('ChildRecordsJTbl', 'cell: ,0(null)')
        select('ChildRecordsJTbl', 'cell: ,1(null)')
        select('RecordDef.Record Name_Txt', 'zxzxzFLD2aaa')
        commonBits.save1(click)

        click('BasicInternalFrameTitlePane$NoFocusButton2')

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , zxzxzFLD2aaa], [, zxzxzFLD2aaa, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', '')
        select('ChildRecordsJTbl', 'cell: ,1(null)')
        select('RecordDef.Record Name_Txt', 'zxzxzFLD2asd')
        click('BasicInternalFrameTitlePane$NoFocusButton2')

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , zxzxzFLD2asd], [, zxzxzFLD2asd, , , , , ]]'
        )
        ##		select('ChildRecordsJTbl', '')
        select('ChildRecordsJTbl', 'cell: ,1(null)')
        select('RecordDef.Record Name_Txt', 'zxzxzFLD2')
        commonBits.save1(click)

        click('BasicInternalFrameTitlePane$NoFocusButton2')

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , zxzxzFLD2], [, zxzxzFLD2, , , , , ]]')
        select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1()')
        commonBits.delete2(click)
        assert_p('ChildRecordsJTbl', 'Content', '[[, zxzxzFLD1, , , , , ]]')
        select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',0()')
        commonBits.delete2(click)
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: zxzxzFLDg777')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #21
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')
)
Exemple #22
0
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', 'xx33xx')
        select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records'))

        #		select('TabbedPane', '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', 'cell:' + commonBits.fl('Child Record') +
            ',1(ams PO Download: Detail)')
        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',2()')
        select('ChildRecordsJTbl', 'ams PO Download: Header',
               commonBits.fl('Child Record') + ',2')
        select('ChildRecordsJTbl', 'ams PO Download: Detail',
               commonBits.fl('Tree Parent') + ',0')
        select('ChildRecordsJTbl', 'ams PO Download: Header',
               commonBits.fl('Tree Parent') + ',1')
        select(
            'ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') +
            ',1(ams PO Download: Header)')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ams PO Download: Header], [, ams PO Download: Header, , , , , ]]'
        )
        select(
            'ChildRecordsJTbl', 'cell:' + commonBits.fl('Tree Parent') +
            ',1(ams PO Download: Header)')
        click(commonBits.fl('Save As'))

        if window('Input'):
            select('OptionPane.textField', 'xx33xx22')
            click('OK')
        close()

        ##select('TabbedPane', 'Extras')
        ##select('TabbedPane', 'Extras')
        ##select('TabbedPane', 'Child Records')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Name') + ',1()')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Name') + ',1()')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ams PO Download: Header], [, ams PO Download: Header, , , , , ]]'
        )

        time.sleep(0.7)
        select('ChildRecordsJTbl', '', commonBits.fl('Tree Parent') + ',0')
        select('ChildRecordsJTbl', 'ams PO Download: Allocation',
               commonBits.fl('Tree Parent') + ',1')
        select('ChildRecordsJTbl', 'ams PO Download: Header',
               commonBits.fl('Tree Parent') + ',2')
        select('ChildRecordsJTbl', 'cell:' + commonBits.fl('Field') + ',1()')
        click(commonBits.fl('Save As'))

        if window('Input'):
            click('Cancel')
        close()

        commonBits.save1(click)
        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('*')
        select('RecordList.Record Name_Txt', 'xx33xx')

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

        #		select('TabbedPane', 'Child Records')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ams PO Download: Detail], [, ams PO Download: Detail, , , , , ams PO Download: Header], [, ams PO Download: Header, , , , , ]]'
        )
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: xx33xx')):
            click('Yes')
        close()

        select('RecordList.Record Name_Txt', 'xx33xx22')

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

        #		select('TabbedPane', 'Child Records')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ], [, ams PO Download: Detail, , , , , ams PO Download: Allocation], [, ams PO Download: Header, , , , , ams PO Download: Header]]'
        )
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, ams PO Download: Allocation, , , , , ], [, ams PO Download: Detail, , , , , ams PO Download: Allocation], [, ams PO Download: Header, , , , , ams PO Download: Header]]'
        )
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: xx33xx22')):
            click('Yes')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #23
0
def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_0'

	if window('Record Editor'):
		select('FileChooser', commonBits.sampleDir() + 'DTAR020.bin')
		click(commonBits.fl('Layout Wizard'))
		select('BmKeyedComboBox', commonBits.fl('Fixed Length Binary')
)
##		select('BmKeyedComboBox', '2')
		select('TextField', 'cp037')
		click('Right')
		select('TabbedPane', '')
		select('TextField', '27')
		click('Right')
		select('TabbedPane', '')
		click('Right')
		select('TabbedPane', '')
		select('Table', 'product', commonBits.fl('Field Name') + ',0')
		select('Table', 'store', commonBits.fl('Field Name') + ',1')
		select('Table', 'date', commonBits.fl('Field Name') + ',2')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',2()')
		keystroke('Table', 'Down', commonBits.fl('Field Name') + ',2')
		select('Table', 'dept', commonBits.fl('Field Name') + ',3')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',3()')
		keystroke('Table', 'Down', commonBits.fl('Field Name') + ',3')
		select('Table', 'qty', commonBits.fl('Field Name') + ',4')
		select('Table', 'price', commonBits.fl('Field Name') + ',5')
		select('Table', '2', commonBits.fl('Decimal') + ',5')
		select('Table', 'cell:' + commonBits.fl('Decimal') + ',4(0)')
		assert_p('Table1', 'Content', '[[69684558, 20, 40118, 280, 1, 19.00], [69684558, 20, 40118, 280, -1, -19.00], [69684558, 20, 40118, 280, 1, 5.01], [69694158, 20, 40118, 280, 1, 19.00], [69694158, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [63604808, 20, 40118, 170, 1, 4.87], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99], [64634429, 20, 40118, 957, 1, 3.99], [66624458, 20, 40118, 957, 1, 0.89], [63674861, 20, 40118, 957, 10, 2.70], [65674532, 20, 40118, 929, 1, 3.59], [64614401, 59, 40118, 957, 1, 1.99], [64614401, 59, 40118, 957, 1, 1.99], [61664713, 59, 40118, 335, 1, 17.99], [61664713, 59, 40118, 335, -1, -17.99], [68634752, 59, 40118, 410, 1, 8.99], [60614487, 59, 40118, 878, 1, 5.95], [63644339, 59, 40118, 878, 1, 12.65], [60694698, 59, 40118, 620, 1, 3.99], [60664659, 59, 40118, 620, 1, 3.99], [62684217, 59, 40118, 957, 1, 9.99], [67674686, 59, 40118, 929, 1, 3.99], [61684613, 59, 40118, 335, 1, 12.99], [64624770, 59, 40118, 957, 1, 2.59], [69694814, 166, 40118, 360, 1, 2.50], [69694814, 166, 40118, 360, 1, 2.50], [69644164, 166, 40118, 193, 1, 21.59], [62684907, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, 1, 13.99], [62694193, 166, 40118, 375, -1, -13.99], [62694193, 166, 40118, 375, 1, 11.99], [63654450, 166, 40118, 320, 1, 13.99], [62664576, 166, 40118, 320, 1, 9.72], [63634260, 166, 40118, 320, 1, 5.59], [64684534, 166, 40118, 440, 1, 14.99], [64674965, 166, 40118, 235, 1, 19.99], [64674965, 166, 40118, 235, -1, -19.99], [64674965, 166, 40118, 235, 1, 12.00], [60624523, 166, 40118, 261, 1, 12.00], [66624253, 166, 40118, 957, 1, 3.49], [66624253, 166, 40118, 957, 1, 3.49], [64654284, 166, 40118, 957, 1, 3.99], [60684907, 166, 40118, 805, 1, 5.50], [63624299, 166, 40118, 870, 1, 10.99], [63624367, 166, 40118, 870, 1, 11.19], [62694575, 166, 40118, 475, 1, 14.99], [69614011, 166, 40118, 905, 1, 6.99], [62634996, 166, 40118, 650, 1, 9.99], [67634503, 166, 40118, 970, 1, 24.99], [65604476, 166, 40118, 830, 1, 19.95], [62694170, 166, 40118, 851, 1, 16.99], [63684098, 166, 40118, 410, 1, 1.98], [63684098, 166, 40118, 410, 1, 1.98], [63684098, 166, 40118, 410, 1, 1.98], [64674609, 166, 40118, 485, 1, 29.99], [62614014, 166, 40118, 366, 1, 14.99], [61694741, 166, 40118, 432, 1, 9.06], [62614534, 166, 40118, 432, 1, 9.09]]')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',2(date)')
		assert_p('Table', 'Content', '[[product, 1, 8, 6, 0, true], [store, 9, 2, 31, 0, true], [date, 11, 4, 31, 0, true], [dept, 15, 2, 31, 0, true], [qty, 17, 5, 31, 0, true], [price, 22, 6, 31, 2, true]]')
		select('Table', 'cell:' + commonBits.fl('Field Name') + ',2(date)')
		click('Right')
		select('TabbedPane', '')
		select('TextField', 'Wizard_DTAR020')
		click('Right')
		select('Table', 'rows:[0,1,2,3,4,5,6,7,8],columns:[1 - 8|product,9 - 2|store]')
		select_menu(commonBits.fl('View') + '>>' + commonBits.fl('Table View #{Selected Records#}'))
##		select('Table2', 'rows:[1,2,3,4,5,6,7,8],columns:[1 - 8|product,9 - 2|store]')
		select('Table', 'cell:11 - 4|date,3(40118)')
		assert_p('Table', 'Content', '[[69684558, 20, 40118, 280, -1, -19.00], [69684558, 20, 40118, 280, 1, 5.01], [69694158, 20, 40118, 280, 1, 19.00], [69694158, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [63604808, 20, 40118, 170, 1, 4.87], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99]]')
		assert_p('Table', 'Content', '[[69684558, 20, 40118, 280, -1, -19.00], [69684558, 20, 40118, 280, 1, 5.01], [69694158, 20, 40118, 280, 1, 19.00], [69694158, 20, 40118, 280, -1, -19.00], [69694158, 20, 40118, 280, 1, 5.01], [63604808, 20, 40118, 170, 1, 4.87], [62684671, 20, 40118, 685, 1, 69.99], [62684671, 20, 40118, 685, -1, -69.99]]')
		select('Table', 'cell:11 - 4|date,3(40118)')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
#		select('Table', 'rows:[1,2,3,4,5,6,7,8],columns:[1 - 8|product,9 - 2|store]')
#		select('Table', 'rows:[1,2,3,4,5,6,7,8],columns:[1 - 8|product,9 - 2|store]')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('Open')
		select('ComboBox1', 'Mainframe')
		click(commonBits.fl('Edit') + '1')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
		select_menu(commonBits.fl('Record Layouts') + '>>' + commonBits.fl('Edit Layout'))
		select('TextField', 'Wizard_DTAR020')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Fields')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Fields')
#		click('Delete3')

		commonBits.delete3(click)

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

#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Fields')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Extras')
#		select('TabbedPane', 'Fields')
		commonBits.closeWindow(click)
		##click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
Exemple #24
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()
Exemple #25
0
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', 'zxzxFL1')
        select('RecordDef.Description_Txt', 'Test Create Layout')
        select('RecordDef.List_Chk', 'true')
        select('RecordDef.System_Txt', 'Other')
        click(commonBits.fl('Insert'))

        click(commonBits.fl('Insert'))

        click(commonBits.fl('Insert'))

        select('RecordFieldsJTbl', '1', commonBits.fl('Position') + ',0')
        select('RecordFieldsJTbl', '2', commonBits.fl('Length') + ',0')
        select('RecordFieldsJTbl', 'fld11', commonBits.fl('FieldName') + ',0')
        select('RecordFieldsJTbl', '3', commonBits.fl('Position') + ',1')
        select('RecordFieldsJTbl', '4', commonBits.fl('Length') + ',1')
        select('RecordFieldsJTbl', 'fld12', commonBits.fl('FieldName') + ',1')
        select('RecordFieldsJTbl', '7', commonBits.fl('Position') + ',2')
        select('RecordFieldsJTbl', '8', commonBits.fl('Length') + ',2')
        select('RecordFieldsJTbl', 'fld13', commonBits.fl('FieldName') + ',2')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('Description') + ',2()')
        commonBits.save1(click)
        click(commonBits.fl('Save As'))

        if window('Input'):
            select('OptionPane.textField', 'zxzxFL2')
            click('OK')
        close()

        click('BasicInternalFrameTitlePane$NoFocusButton2')
        click('*')
        select('RecordList.Record Name_Txt', 'zxzxFL1')
        select('RecordList.Description_Txt', '%')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, fld11, , 0, 0, 0, , , ], [3, 4, fld12, , 0, 0, 0, , , ], [7, 8, fld13, , 0, 0, 0, , , ]]'
        )
        assert_p('RecordDef.Description_Txt', 'Text', 'Test Create Layout')
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxFL1')
        select('RecordList.Record Name_Txt', 'zxzxFL2')
        select('RecordList.Description_Txt', '%%')
        assert_p(
            'RecordFieldsJTbl', 'Content',
            '[[1, 2, fld11, , 0, 0, 0, , , ], [3, 4, fld12, , 0, 0, 0, , , ], [7, 8, fld13, , 0, 0, 0, , , ]]'
        )
        assert_p('RecordDef.Description_Txt', 'Text', 'Test Create Layout')
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxFL2')
        commonBits.delete3(click)

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

        select('RecordList.Record Name_Txt', 'zxzxFL1')

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

        commonBits.delete3(click)

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

        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()
Exemple #27
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_17'

    if window('Record Editor'):
        select('FileChooser', commonBits.sampleDir() + 'FJ_VB_Test.bin')
        click(commonBits.fl('Layout Wizard'))
        click('Right')
        select('TabbedPane', '')
        ##		assert_p('BmKeyedComboBox', 'Text', '7')
        assert_p('BmKeyedComboBox', 'Text',
                 commonBits.fl('Fujitsu Variable Binary'))

        click('Right')
        select('TabbedPane', '')
        ##		select('Table', '')
        rightclick('Table', 'E,0')
        ##		select('Table', '')
        rightclick('Table', 'J,0')
        click('Right')
        select('TabbedPane', '')
        if commonBits.isVersion80():
            assert_p(
                'Table', 'Content',
                '[[, 1, 3, 0, 0, true], [, 4, 4, 6, 0, true], [, 8, 2, 0, 0, true], [, 10, 35, 0, 0, true], [, 45, 40, 0, 0, true], [, 85, 40, 0, 0, true], [, 125, 35, 0, 0, true], [, 160, 4, 6, 0, true], [, 164, 6, 0, 0, true], [, 170, 4, 0, 0, true]]'
            )
            assert_p(
                'Table1', 'Content',
                '[[TAR, 5015, ST, Bankstown                          , Bankstown                               , Unit 2, 39-41 Allingham Street          , Condell Park                       , 2200,       , NSWA], [TAR, 5019, ST, Penrith                            , Penrith                                 , 58 Leland Street                        , Penrith                            , 2750,       , NSWA], [TAR, 5033, ST, Blacktown                          , Marayong                                , Dock 2, 11 Melissa Place                , Marayong                           , 2148,       , NSWA], [TAR, 5035, ST, Rockdale                           , Building B,  Portside DC                , 2-8 Mc Pherson Street                   , Botany                             , 2019,       , NSWA], [TAR, 5037, ST, Miranda                            , Westfield Shoppingtown                  , Cnr. Urunga Pde & The Kingsway          , Miranda                            , 2228,       , NSWA], [TAR, 5052, ST, Eastwood                           , Marayong Offsite Reserve                , 11 Melissa Place                        , Marayong                           , 2148,       , NSWA]]'
            )
        else:
            assert_p(
                'Table', 'Content',
                '[[, 1, 3, 0, 0, true], [, 4, 4, 6, 0, true], [, 8, 2, 0, 0, true], [, 10, 35, 0, 0, true], [, 45, 10, 0, 0, true], [, 55, 3, 0, 0, true], [, 58, 1, 0, 0, true], [, 59, 1, 0, 0, true], [, 60, 2, 0, 0, true], [, 62, 1, 0, 0, true], [, 63, 1, 0, 0, true], [, 64, 1, 0, 0, true], [, 65, 20, 0, 0, true], [, 85, 1, 6, 0, true], [, 86, 4, 0, 0, true], [, 90, 13, 0, 0, true], [, 103, 1, 0, 0, true], [, 104, 3, 0, 0, true], [, 107, 18, 0, 0, true], [, 125, 4, 0, 0, true], [, 129, 1, 111, 0, true], [, 130, 30, 0, 0, true], [, 160, 4, 6, 0, true], [, 164, 6, 0, 0, true], [, 170, 4, 0, 0, true]]'
            )
            assert_p(
                'Table1', 'Content',
                '[[TAR, 5015, ST, Bankstown                          , Bankstown ,    ,  ,  ,   ,  ,  ,  ,                     , U, nit , 2, 39-41 Alli, n, gha, m Street          , Cond, e, ll Park                       , 2200,       , NSWA], [TAR, 5019, ST, Penrith                            , Penrith   ,    ,  ,  ,   ,  ,  ,  ,                     , 5, 8 Le, land Street  ,  ,    ,                   , Penr, i, th                            , 2750,       , NSWA], [TAR, 5033, ST, Blacktown                          , Marayong  ,    ,  ,  ,   ,  ,  ,  ,                     , D, ock , 2, 11 Melissa,  , Pla, ce                , Mara, y, ong                           , 2148,       , NSWA], [TAR, 5035, ST, Rockdale                           , Building B, ,  , P, o, rt, s, i, d, e DC                , 2, -8 M, c Pherson Str, e, et ,                   , Bota, n, y                             , 2019,       , NSWA], [TAR, 5037, ST, Miranda                            , Westfield , Sho, p, p, in, g, t, o, wn                  , C, nr. , Urunga Pde & , T, he , Kingsway          , Mira, n, da                            , 2228,       , NSWA], [TAR, 5052, ST, Eastwood                           , Marayong O, ffs, i, t, e , R, e, s, erve                , 1, 1 Me, lissa Place  ,  ,    ,                   , Mara, y, ong                           , 2148,       , NSWA]]'
            )
        select('Table', 'cell:' + commonBits.fl('Start') + ',1(4)')
        rightclick('Table', commonBits.fl('Start') + ',1')
        select_menu(commonBits.fl('Generate Field Names'))
        click('Right')
        select('TabbedPane', '')
        select('TextField', 'Wizard_Z_FjUnknown')
        click('Right')
        if commonBits.isVersion80():
            select('Table', 'cell:45 - 40|n4,1(Penrith)')
            assert_p(
                'Table', 'Content',
                '[[TAR, 5015, ST, Bankstown, Bankstown, Unit 2, 39-41 Allingham Street, Condell Park, 2200, , NSWA], [TAR, 5019, ST, Penrith, Penrith, 58 Leland Street, Penrith, 2750, , NSWA], [TAR, 5033, ST, Blacktown, Marayong, Dock 2, 11 Melissa Place, Marayong, 2148, , NSWA], [TAR, 5035, ST, Rockdale, Building B,  Portside DC, 2-8 Mc Pherson Street, Botany, 2019, , NSWA], [TAR, 5037, ST, Miranda, Westfield Shoppingtown, Cnr. Urunga Pde & The Kingsway, Miranda, 2228, , NSWA], [TAR, 5052, ST, Eastwood, Marayong Offsite Reserve, 11 Melissa Place, Marayong, 2148, , NSWA]]'
            )
            select('Table', 'cell:45 - 40|n4,1(Penrith)')
        else:
            select('Table', 'cell:45 - 10|n4,1(Penrith)')
            assert_p(
                'Table', 'Content',
                '[[TAR, 5015, ST, Bankstown, Bankstown, , , , , , , , , U, nit, 2, 39-41 Alli, n, gha, m Street, Cond, e, ll Park, 2200, , NSWA], [TAR, 5019, ST, Penrith, Penrith, , , , , , , , , 5, 8 Le, land Street, , , , Penr, i, th, 2750, , NSWA], [TAR, 5033, ST, Blacktown, Marayong, , , , , , , , , D, ock, 2, 11 Melissa, , Pla, ce, Mara, y, ong, 2148, , NSWA], [TAR, 5035, ST, Rockdale, Building B, ,, P, o, rt, s, i, d, e DC, 2, -8 M, c Pherson Str, e, et, , Bota, n, y, 2019, , NSWA], [TAR, 5037, ST, Miranda, Westfield, Sho, p, p, in, g, t, o, wn, C, nr., Urunga Pde &, T, he, Kingsway, Mira, n, da, 2228, , NSWA], [TAR, 5052, ST, Eastwood, Marayong O, ffs, i, t, e, R, e, s, erve, 1, 1 Me, lissa Place, , , , Mara, y, ong, 2148, , NSWA]]'
            )
            select('Table', 'cell:45 - 10|n4,1(Penrith)')
        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')

        select_menu(
            commonBits.fl('Record Layouts') + '>>' +
            commonBits.fl('Edit Layout'))
        select('TextField', 'Wizard_Z_FjUnknown')
        select('TextField1', '%')
        ##click('Delete3')
        commonBits.delete3(click)

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

        commonBits.closeWindow(click)
        ##click('BasicInternalFrameTitlePane$NoFocusButton2')

    close()
Exemple #28
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()
Exemple #29
0
def test():
    from Modules import commonBits
    java_recorded_version = '1.6.0_22'

    if window('Record Layout Definitions'):
        click('*')
        commonBits.new1(click)

        select('RecordDef.Record Name_Txt', 'zxzxzFLDg1')
        select('RecordDef.Description_Txt', 'Group Test 1')
        click(commonBits.fl('Insert'))

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',0()')
        commonBits.delete2(click)
        select('RecordDef.Record Type_Txt', commonBits.fl('Group of Records'))

        ##select('TabbedPane', 'Child Records')
        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0()')
        select('ChildRecordsJTbl', 'zxzxzFLD1',
               commonBits.fl('Child Record') + ',0')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',0(zxzxzFLD1)')
        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',1()')
        select('ChildRecordsJTbl', 'zxzxzFLD2',
               commonBits.fl('Child Record') + ',1')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',1(zxzxzFLD2)')
        click(commonBits.fl('Insert'))

        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',2()')
        select('ChildRecordsJTbl', 'zxzxzFLD3',
               commonBits.fl('Child Record') + ',2')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',2(zxzxzFLD3)')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]'
        )
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Record') + ',2(zxzxzFLD3)')
        click(commonBits.fl('Save As'))

        if window('Input'):
            select('OptionPane.textField', 'zxzxzFLDg2')
            click('OK')
        close()

        ##select('TabbedPane', 'Child Records')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]'
        )
        select('RecordDef.Description_Txt', 'Group Test 2')
        select('ChildRecordsJTbl',
               'cell:' + commonBits.fl('Child Name') + ',1()')
        commonBits.delete2(click)
        assert_p('ChildRecordsJTbl', 'Content',
                 '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD3, , , , , ]]')
        select('RecordList.Record Name_Txt', 'zxzxzFLDg1')

        #select('TabbedPane', commonBits.fl('Child Records'))
        select('RecordList.Description_Txt', '%')

        ##select('TabbedPane', 'Child Records')
        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]'
        )
        assert_p('RecordDef.Description_Txt', 'Text', 'Group Test 1')
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg1')
        select('RecordList.Record Name_Txt', 'zxzxzFLDg2')

        #select('TabbedPane', 'Child Records')
        select('RecordList.Description_Txt', '%%')

        select('TabbedPane', commonBits.fl('Child Records'))
        assert_p('ChildRecordsJTbl', 'Content',
                 '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD3, , , , , ]]')
        assert_p('RecordDef.Description_Txt', 'Text', 'Group Test 2')
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg2')
        commonBits.delete3(click)
        if window(commonBits.fl('Delete: zxzxzFLDg2')):
            click('Yes')
        close()

        select('RecordList.Record Name_Txt', 'zxzxzFLDg1')

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

        select('TabbedPane', commonBits.fl('Child Records'))

        assert_p(
            'ChildRecordsJTbl', 'Content',
            '[[, zxzxzFLD1, , , , , ], [, zxzxzFLD2, , , , , ], [, zxzxzFLD3, , , , , ]]'
        )
        assert_p('RecordDef.Record Name_Txt', 'Text', 'zxzxzFLDg1')
        click('BasicInternalFrameTitlePane$NoFocusButton2')
    close()
Exemple #30
0
def test():
    from Modules import commonBits
    if window('Record Layout Definitions'):
        click('*6')
        select('FileChooser', commonBits.cobolDir() + 'AmsLocation.cbl')
        click(commonBits.fl('Go'))

        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', '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, , 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')
        select('RecordFieldsJTbl',
               'rows:[2,3,4],columns:[' + commonBits.fl('FieldName') + ']')
        rightclick('RecordFieldsJTbl', '' + commonBits.fl('FieldName') + ',3')
        select_menu(commonBits.fl('Copy Record#{s#}'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',9(Location-Active)')
        rightclick('RecordFieldsJTbl', '' + commonBits.fl('FieldName') + ',9')
        select_menu(commonBits.fl('Paste Record#{s#}'))
        #click('WindowsScrollBarUI$WindowsArrowButton4')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',12(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '13')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',10(Location-Type)')
        ##		assert_p('RecordFieldsJTbl', 'Text', 'cell:' + commonBits.fl('FieldName') + ',10(Location-Type)')
        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',
               'cell:' + commonBits.fl('FieldName') + ',9(Location-Active)')
        ##		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], [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]]')
        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:[' + commonBits.fl('FieldName') + ']')
        rightclick('RecordFieldsJTbl', '' + commonBits.fl('FieldName') + ',10')
        select_menu(commonBits.fl('Delete Record#{s#}'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',9(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '10')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',6(Address-3)')
        ##		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], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]')
        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:[' + commonBits.fl('FieldName') + ']')
        rightclick('RecordFieldsJTbl', '' + commonBits.fl('FieldName') + ',2')
        select_menu(commonBits.fl('Cut Record#{s#}'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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, , 8, 0, 0, , , Postcode], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]')
        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:' + commonBits.fl('FieldName') + ',3(Address-3)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',5(State)')
        rightclick('RecordFieldsJTbl', '' + commonBits.fl('FieldName') + ',5')
        select_menu(commonBits.fl('Paste Record#{s#} Prior'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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, , 8, 0, 0, , , Postcode], [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], [170, 3, State, , 0, 0, 0, , , State], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]')
        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:' + commonBits.fl('FieldName') + ',5(Location-Number)')
        assert_p('RecordFieldsJTbl', 'Text', 'Location-Number',
                 commonBits.fl('FieldName') + ',5')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',6(Location-Type)')
        assert_p('RecordFieldsJTbl', 'RowCount', '10')
        select('RecordFieldsJTbl',
               'rows:[2,3,4],columns:[' + commonBits.fl('FieldName') + ']')
        click(commonBits.fl('Delete'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',1(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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, , 8, 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]]')
        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:' + commonBits.fl('FieldName') + ',2(Location-Number)')
        click(commonBits.fl('Insert'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Location-Number)')
        #keystroke('RecordFieldsJTbl', 'Ctrl+F9', '' + commonBits.fl('FieldName') + ',2')
        #click('BasicInternalFrameTitlePane$NoFocusButton9')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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, , 8, 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]]')
        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:' + commonBits.fl('FieldName') + ',5(Location-Name)')
        assert_p('RecordFieldsJTbl', 'RowCount', '8')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3()')
        click(commonBits.fl('Delete'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Location-Number)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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, , 8, 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]]')
        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:[' + commonBits.fl('FieldName') + ']')
        commonBits.cut2(click)

        select('RecordFieldsJTbl', 'cell:' + commonBits.fl('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:' + commonBits.fl('FieldName') + ',1(Location-Name)')
        assert_p('RecordFieldsJTbl', 'RowCount', '4')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(State)')
        if commonBits.isTstLanguage():
            click(commonBits.fl('Paste'))
        else:
            commonBits.paste2(click)

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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, , 8, 0, 0, , , Location-Number], [8, 2, Location-Type, , 0, 0, 0, , , Location-Type], [45, 40, Address-1, , 0, 0, 0, , , Address-1]]')
        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:' + commonBits.fl('FieldName') + ',4(Location-Number)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl',
               'rows:[3,4,5],columns:[' + commonBits.fl('FieldName') + ']')

        commonBits.cut2(click)

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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]]')
        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:' + commonBits.fl('FieldName') + ',0(Brand)')
        click(commonBits.fl('Paste Prior'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(Location-Type)')
        ##		assert_p('RecordFieldsJTbl', 'Content', '[[45, 40, Address-1, , 0, 0, 0, , , Address-1], [4, 4, Location-Number, , 8, 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]]')
        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:' + commonBits.fl('FieldName') + ',3(Brand)')
        assert_p('RecordFieldsJTbl', 'RowCount', '7')
        select('RecordFieldsJTbl',
               'rows:[1,2,3],columns:[' + commonBits.fl('FieldName') + ']')
        click(commonBits.fl('Delete'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',0(Address-1)')

        commonBits.cut2(click)

        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',2(State)')
        click(commonBits.fl('Paste Prior'))
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('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:' + commonBits.fl('FieldName') + ',2(Address-1)')
        assert_p('RecordFieldsJTbl', 'RowCount', '4')
        select('RecordFieldsJTbl',
               'cell:' + commonBits.fl('FieldName') + ',3(State)')
        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'))

##		select_menu('File>>Exit')
    close()