Example #1
0
findWidget('OOF2:Materials Page:Pane:Property:PropertyScroll').get_vadjustment().set_value( 9.8641975308642e+01)
findWidget('OOF2:Materials Page:Pane:Property:PropertyScroll').get_vadjustment().set_value( 1.0154320987654e+02)
findWidget('OOF2:Materials Page:Pane').set_position(272)
findWidget('OOF2:Materials Page:Pane:Property:Add').clicked()
checkpoint Materials page updated
checkpoint Materials page updated
checkpoint property selected
checkpoint Materials page updated
checkpoint OOF.Material.Add_property
findWidget('OOF2:Materials Page:Pane').set_position(272)
assert tests.currentPropertyCheck('Thermal:Conductivity:Anisotropic:Cubic:cubic_copy')
findWidget('OOF2:Materials Page:Pane:Material:Assign').clicked()
checkpoint toplevel widget mapped Dialog-Assign material another test to pixels
findWidget('Dialog-Assign material another test to pixels').resize(240, 108)
findWidget('OOF2').resize(684, 350)
assert tests.chooserCheck('Dialog-Assign material another test to pixels:pixels', ['<selection>', '<every>', 'green'])
setComboBox(findWidget('Dialog-Assign material another test to pixels:pixels'), 'green')
findWidget('Dialog-Assign material another test to pixels:gtk-ok').clicked()
checkpoint OOF.Material.Assign
findWidget('OOF2').resize(684, 350)
findMenu(findWidget('OOF2:MenuBar'), 'Windows:Graphics:New').activate()
checkpoint Move Node toolbox info updated
checkpoint toplevel widget mapped OOF2 Graphics 1
checkpoint selection info updated
checkpoint selection info updated
checkpoint selection info updated
checkpoint selection info updated
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
checkpoint contourmap info updated for Graphics_1
Example #2
0
widget_0=findWidget('OOF3D Activity Viewer')
handled_0=widget_0.event(event(gtk.gdk.DELETE,window=widget_0.window))
postpone if not handled_0: widget_0.destroy()
checkpoint OOF.ActivityViewer.File.Close
setComboBox(findWidget('OOF3D:Navigation:PageMenu'), 'FE Mesh')
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint page installed FE Mesh
assert tests.FEMeshPageInfoCheck()
assert tests.FEMeshPageCheck1()
assert tests.FEMeshPageSubproblemsCheck0()
assert tests.FEMeshPageOperationsCheck0()
assert tests.chooserCheck('OOF3D:FE Mesh Page:Microstructure', ['triangle'])
assert tests.chooserStateCheck('OOF3D:FE Mesh Page:Microstructure', 'triangle')
assert tests.chooserCheck('OOF3D:FE Mesh Page:Skeleton', ['skeleton'])
assert tests.chooserStateCheck('OOF3D:FE Mesh Page:Skeleton', 'skeleton')
findWidget('OOF3D:FE Mesh Page:Pane').set_position(304)
findWidget('OOF3D').resize(559, 364)
findWidget('OOF3D:FE Mesh Page:Pane').set_position(313)
findWidget('OOF3D').resize(566, 371)
findWidget('OOF3D:FE Mesh Page:Pane').set_position(320)
findWidget('OOF3D').resize(580, 383)
findWidget('OOF3D:FE Mesh Page:Pane').set_position(334)
findWidget('OOF3D').resize(600, 400)
findWidget('OOF3D:FE Mesh Page:Pane').set_position(354)
findWidget('OOF3D').resize(611, 409)
findWidget('OOF3D:FE Mesh Page:Pane').set_position(365)
findWidget('OOF3D').resize(623, 417)
Example #3
0
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1').resize(800, 400)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(259)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(717)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1').resize(800, 400)
setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Skeleton')
checkpoint page installed Skeleton
checkpoint skeleton page sensitized
checkpoint skeleton page sensitized
assert tests.sensitization1()
assert tests.chooserCheck('OOF2:Skeleton Page:Microstructure', ['test'])
assert tests.chooserCheck('OOF2:Skeleton Page:Skeleton', [])
findWidget('OOF2:Skeleton Page:Pane').set_position(249)
findWidget('OOF2:Skeleton Page:New').clicked()
checkpoint toplevel widget mapped Dialog-New skeleton
findWidget('Dialog-New skeleton').resize(334, 152)
findWidget('Dialog-New skeleton:y_elements').set_text('')
findWidget('Dialog-New skeleton:y_elements').set_text('6')
findWidget('Dialog-New skeleton:gtk-ok').clicked()
findWidget('OOF2 Messages 1').resize(549, 200)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
checkpoint skeleton selection page groups sensitized
checkpoint skeleton selection page groups sensitized
checkpoint skeleton selection page groups sensitized
checkpoint contourmap info updated for Graphics_1
checkpoint contourmap info updated for Graphics_1
Example #4
0
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
findWidget('OOF2:FE Mesh Page:Delete').clicked()
checkpoint toplevel widget mapped Questioner
findWidget('Questioner').resize(328, 94)
findWidget('Questioner:gtk-yes').clicked()
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
checkpoint mesh page subproblems sensitized
checkpoint mesh bdy page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint OOF.Mesh.Delete
setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Boundary Conditions')
assert tests.chooserCheck('OOF2:Boundary Conditions Page:Mesh', ['mesh'])
findWidget('OOF2').resize(550, 482)
setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'FE Mesh')
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
findWidget('OOF2:FE Mesh Page:New').clicked()
checkpoint toplevel widget mapped Dialog-Create a new mesh
findWidget('Dialog-Create a new mesh').resize(331, 188)
findWidget('Dialog-Create a new mesh:gtk-ok').clicked()
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
checkpoint mesh bdy page updated
checkpoint mesh bdy page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
Example #5
0
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(258)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(716)
findWidget('OOF2 Graphics 1:Pane0').set_position(362)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(258)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(716)
findWidget('OOF2 Graphics 1:Pane0').set_position(362)
setComboBox(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:TBChooser'), 'Mesh Info')
checkpoint Graphics_1 Mesh Info sensitized

# Mesh info toolbox selected.
assert findWidget(tbox+":Click:Element").get_active()
assert not findWidget(tbox+':Click:Node').get_active()
assert tests.gtkMultiTextCompare({'X':'','Y':''},tbox+":Click")
assert tests.sensitizationCheck({'NewDataViewer':True,'Prev':False,'Clear':False,'Next':False},tbox)
assert tests.gtkMultiTextCompare({'index':'','type':'','material':''},tbox+":ElementInfo")
assert tests.chooserCheck(tbox+':ElementInfo:NodeList',[])

findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(258)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(716)
findWidget('OOF2 Graphics 1:Pane0').set_position(362)
findMenu(findWidget('OOF2:MenuBar'), 'File:Load:Script').activate()
checkpoint toplevel widget mapped Dialog-Script
findWidget('Dialog-Script').resize(194, 71)
findWidget('Dialog-Script:gtk-cancel').clicked()
findMenu(findWidget('OOF2:MenuBar'), 'File:Load:Data').activate()
checkpoint toplevel widget mapped Dialog-Data
findWidget('Dialog-Data').resize(194, 71)
findWidget('Dialog-Data:filename').set_text('T')
findWidget('Dialog-Data:filename').set_text('TE')
findWidget('Dialog-Data:filename').set_text('TES')
findWidget('Dialog-Data:filename').set_text('TEST')
Example #6
0
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
checkpoint contourmap info updated for Graphics_1
checkpoint OOF.Windows.Graphics.New
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1').resize(800, 400)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(259)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(717)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1').resize(800, 400)
findWidget('OOF2:Navigation:Next').clicked()
assert tests.sensitization0()
assert tests.chooserCheck('OOF2:Image Page:Microstructure', ['serendipity.png'])
assert tests.chooserCheck('OOF2:Image Page:Image', ['serendipity.png'])
assert tests.chooserStateCheck('OOF2:Image Page:Image', 'serendipity.png')
findWidget('OOF2').resize(593, 350)
findWidget('OOF2:Image Page:Pane').set_position(380)
findWidget('OOF2:Image Page:Pane:OK').clicked()
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
checkpoint contourmap info updated for Graphics_1
checkpoint OOF.Image.Modify.Gray
assert tests.sensitization1()
findWidget('OOF2:Image Page:Pane:Undo').clicked()
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
checkpoint contourmap info updated for Graphics_1
checkpoint OOF.Image.Undo
assert tests.sensitization2()
setComboBox(findWidget('OOF2:Image Page:Pane:Method:Chooser'), 'Flip')
Example #7
0
checkpoint Move Node toolbox info updated
findWidget('OOF3D Graphics 1:Pane0:Pane2:ToolboxFrame').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
findWidget('OOF3D Graphics 1:Pane0:Pane2').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
findWidget('OOF3D Graphics 1:Pane0:Pane2:ToolboxFrame').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
findWidget('OOF3D Graphics 1:Pane0:Pane2').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
checkpoint toplevel widget mapped OOF3D Graphics 1
findWidget('OOF3D Graphics 1').resize(1000, 800)
findWidget('OOF3D Graphics 1:Pane0:Pane2:ToolboxFrame').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
findWidget('OOF3D Graphics 1:Pane0:Pane2').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
checkpoint OOF.Windows.Graphics.New
findWidget('OOF3D Graphics 1:Pane0:Pane2:ToolboxFrame').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
findWidget('OOF3D Graphics 1:Pane0:Pane2').size_allocate(gtk.gdk.Rectangle(0, 29, 1000, 705))
findWidget('OOF3D').resize(550, 350)
findWidget('OOF3D:Navigation:Next').clicked()
assert tests.sensitization0()
assert tests.chooserCheck('OOF3D:Image Page:Microstructure', ['5color'])
assert tests.chooserCheck('OOF3D:Image Page:Image', ['5color'])
assert tests.chooserStateCheck('OOF3D:Image Page:Image', '5color')
checkpoint page installed Image
findWidget('OOF3D').resize(601, 350)
findWidget('OOF3D:Image Page:Pane').set_position(395)
findWidget('OOF3D:Image Page:Pane:OK').clicked()
checkpoint OOF.Image.Modify.Gray
assert tests.sensitization1()
findWidget('OOF3D:Image Page:Pane:Undo').clicked()
checkpoint OOF.Image.Undo
assert tests.sensitization2()
setComboBox(findWidget('OOF3D:Image Page:Pane:Method:Chooser'), 'Flip')
findWidget('OOF3D:Image Page:Pane:OK').clicked()
checkpoint OOF.Image.Modify.Flip
assert tests.sensitization3()
Example #8
0
# Create graphics output
findWidget('OOF2:Scheduled Output Page:HPane0:HPaneL:Output:New').clicked()
checkpoint toplevel widget mapped Dialog-Define a new Output
findWidget('Dialog-Define a new Output').resize(314, 102)
findWidget('Dialog-Define a new Output:gtk-ok').clicked()
checkpoint OOF.Mesh.Scheduled_Output.New
findWidget('OOF2').resize(673, 350)
findWidget('OOF2:Scheduled Output Page:HPane0').set_position(316)
findWidget('OOF2:Scheduled Output Page:HPane0:HPaneL').set_position(25)
assert tests.sensitization2()
# Set schedule
findWidget('OOF2:Scheduled Output Page:HPane0:HPane2:Schedule:New').clicked()
checkpoint toplevel widget mapped Dialog-Set an Output Schedule
findWidget('Dialog-Set an Output Schedule').resize(306, 156)
# Check contents of schedule pull-down menu
assert tests.chooserCheck('Dialog-Set an Output Schedule:schedule:Chooser', ['Periodic', 'Geometric', 'Once', 'Specified Times'])
# Change scheduletype
setComboBox(findWidget('Dialog-Set an Output Schedule:scheduletype:Chooser'), 'Conditional')
# Check contents of schedule pull down menu
assert tests.chooserCheck('Dialog-Set an Output Schedule:schedule:Chooser', ['Every Time'])
# Change back to Absolute scheduletype and click ok
setComboBox(findWidget('Dialog-Set an Output Schedule:scheduletype:Chooser'), 'Absolute')
findWidget('Dialog-Set an Output Schedule:gtk-ok').clicked()
checkpoint OOF.Mesh.Scheduled_Output.Schedule.Set
assert tests.sensitization3()
# Add second output
findWidget('OOF2:Scheduled Output Page:HPane0:HPaneL:Output:New').clicked()
checkpoint toplevel widget mapped Dialog-Define a new Output
findWidget('Dialog-Define a new Output').resize(314, 102)
setComboBox(findWidget('Dialog-Define a new Output:output:Chooser'), 'Bulk Analysis')
findWidget('Dialog-Define a new Output').resize(472, 430)
Example #9
0
findWidget('Dialog-Create new pixel group:name:Auto').clicked()
findWidget('Dialog-Create new pixel group:name:Text').set_text('a')
findWidget('Dialog-Create new pixel group:name:Text').set_text('ab')
findWidget('Dialog-Create new pixel group:name:Text').set_text('abc')
findWidget('Dialog-Create new pixel group:name:Text').set_text('abcd')
findWidget('Dialog-Create new pixel group:name:Text').set_text('abcde')
findWidget('Dialog-Create new pixel group:gtk-ok').clicked()
findWidget('OOF2:Microstructure Page:Pane').set_position(197)
checkpoint meshable button set
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint OOF.PixelGroup.New
checkpoint microstructure page sensitized
checkpoint meshable button set
assert tests.sensitization2()
assert tests.chooserCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', ['abcde (0 pixels, meshable)'])
assert tests.chooserListStateCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', ['abcde (0 pixels, meshable)'])
assert tests.meshableButtonState() == 1
findWidget('OOF2:Microstructure Page:Pane:PixelGroups:New').clicked()
checkpoint toplevel widget mapped Dialog-Create new pixel group
findWidget('Dialog-Create new pixel group').resize(249, 72)
findWidget('Dialog-Create new pixel group:name:Text').set_text('')
findWidget('Dialog-Create new pixel group:name:Text').set_text('f')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fg')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fgh')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fghi')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fghij')
findWidget('Dialog-Create new pixel group:gtk-ok').clicked()
checkpoint meshable button set
checkpoint meshable button set
checkpoint microstructure page sensitized
Example #10
0
checkpoint Graphics_1 Skeleton Info sensitized
checkpoint contourmap info updated for Graphics_1
checkpoint OOF.Graphics_1.Toolbox.Skeleton_Info.QueryElement
findWidget('OOF2 Graphics 1:Pane0').set_position(444)

# Direct element selection.  Dominant pixel test skipped, because it's
# a numerically-derived name which may be prone to roundoff, and is
# tested directly in the 01200 test.
assert findWidget(tbox+":Click:Element").get_active()
assert not findWidget(tbox+":Click:Node").get_active()
assert not findWidget(tbox+":Click:Segment").get_active()
assert tests.gtkMultiFloatCompare({'X Text':22.61,'Y Text':68.47},cbox)
assert tests.gtkMultiTextCompare({'Material':'<No material>','Group':'','Index':'54','Type':'quad'},elbox)
assert tests.gtkMultiFloatCompare({'Shape':0.308000,'Homog':0.988881,'Area':287.500000},elbox)
assert tests.sensitizationCheck({'Prev':False,'Clear':True,'Next':False},tbox)
assert tests.chooserCheck(elbox+":SegmentList",["Segment 79, nodes (43, 52) (length: 12.5)","Segment 130, nodes (43, 44) (length: 18.5)","Segment 127, nodes (44, 53) (length: 15.402922)","Segment 131, nodes (52, 53) (length: 27.5)"], tolerance=1.e-6)
assert tests.chooserCheck(elbox+":NodeList",["Node 43 at (12.5, 62.5) (angle: 90)","Node 44 at (31, 62.5) (angle: 125.753887)","Node 53 at (40, 75) (angle: 54.2461127)","Node 52 at (12.5, 75) (angle: 90)"],tolerance=1.e-6)

findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:TBScroll:Skeleton Info:ElementInformation:NodeList').get_selection().select_path((1,))
findWidget('OOF2 Graphics 1:Pane0').set_position(444)

# Node peek.
checkpoint contourmap info updated for Graphics_1
assert findWidget(tbox+":Click:Element").get_active()
assert not findWidget(tbox+":Click:Node").get_active()
assert not findWidget(tbox+":Click:Segment").get_active()
assert tests.gtkMultiFloatCompare({'X Text':22.61,'Y Text':68.47},cbox)
assert tests.gtkMultiTextCompare({'Material':'<No material>','Group':'','Index':'54','Type':'quad'},elbox)
assert tests.gtkMultiFloatCompare({'Shape':0.308000,'Homog':0.988881,'Area':287.500000},elbox)
assert tests.sensitizationCheck({'Prev':False,'Clear':True,'Next':False},tbox)
assert tests.chooserCheck(elbox+":SegmentList",["Segment 79, nodes (43, 52) (length: 12.5)","Segment 130, nodes (43, 44) (length: 18.5)","Segment 127, nodes (44, 53) (length: 15.4029218)","Segment 131, nodes (52, 53) (length: 27.5)"],tolerance=1.e-6)
Example #11
0
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1').resize(800, 400)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(250)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(693)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2').set_position(259)
findWidget('OOF2 Graphics 1:Pane0:Pane1').set_position(717)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
findWidget('OOF2 Graphics 1').resize(800, 400)
setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Skeleton')
checkpoint page installed Skeleton
checkpoint skeleton page sensitized
checkpoint skeleton page sensitized
assert tests.sensitization1()
assert tests.chooserCheck('OOF2:Skeleton Page:Microstructure', ['test'])
assert tests.chooserCheck('OOF2:Skeleton Page:Skeleton', [])
findWidget('OOF2:Skeleton Page:Pane').set_position(249)
findWidget('OOF2:Skeleton Page:New').clicked()
checkpoint toplevel widget mapped Dialog-New skeleton
findWidget('Dialog-New skeleton').resize(334, 152)
findWidget('Dialog-New skeleton:y_elements').set_text('')
findWidget('Dialog-New skeleton:y_elements').set_text('6')
findWidget('Dialog-New skeleton:gtk-ok').clicked()
findWidget('OOF2 Messages 1').resize(549, 200)
findWidget('OOF2 Graphics 1:Pane0').set_position(278)
checkpoint skeleton selection page groups sensitized
checkpoint skeleton selection page groups sensitized
checkpoint skeleton selection page groups sensitized
checkpoint contourmap info updated for Graphics_1
checkpoint contourmap info updated for Graphics_1
Example #12
0
checkpoint mesh page subproblems sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint boundary page updated
checkpoint skeleton selection page selection sensitized
checkpoint skeleton selection page updated
checkpoint skeleton selection page groups sensitized
checkpoint skeleton selection page groups sensitized
checkpoint microstructure page sensitized
checkpoint OOF.Microstructure.Create_From_ImageFile

# check the microstructures state
assert tests.sensitization4()
assert tests.chooserCheck('OOF3D:Microstructure Page:Microstructure', ['test', '5color'])
assert tests.chooserStateCheck('OOF3D:Microstructure Page:Microstructure', '5color')
assert tests.chooserCheck('OOF3D:Microstructure Page:Pane:VoxelGroups:GroupListScroll:GroupList', [])
assert tests.chooserListStateCheck('OOF3D:Microstructure Page:Pane:VoxelGroups:GroupListScroll:GroupList', [])

# select the microstructure test
setComboBox(findWidget('OOF3D:Microstructure Page:Microstructure'), 'test')
findWidget('OOF3D:Microstructure Page:Pane').set_position(225)
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint meshable button set
checkpoint microstructure page sensitized

# check the current microstructure voxels selection groups
assert tests.sensitization5()
assert tests.chooserCheck('OOF3D:Microstructure Page:Pane:VoxelGroups:GroupListScroll:GroupList', ['a (0 voxels, meshable)', 'pixelgroup (0 voxels, meshable)', 'pixelgroup<2> (0 voxels, meshable)'])
Example #13
0
findWidget('Dialog-Create new pixel group:name:Auto').clicked()
findWidget('Dialog-Create new pixel group:name:Text').set_text('a')
findWidget('Dialog-Create new pixel group:name:Text').set_text('ab')
findWidget('Dialog-Create new pixel group:name:Text').set_text('abc')
findWidget('Dialog-Create new pixel group:name:Text').set_text('abcd')
findWidget('Dialog-Create new pixel group:name:Text').set_text('abcde')
findWidget('Dialog-Create new pixel group:gtk-ok').clicked()
findWidget('OOF2:Microstructure Page:Pane').set_position(197)
checkpoint meshable button set
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint OOF.PixelGroup.New
checkpoint microstructure page sensitized
checkpoint meshable button set
assert tests.sensitization2()
assert tests.chooserCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', ['abcde (0 pixels, meshable)'])
assert tests.chooserListStateCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', ['abcde (0 pixels, meshable)'])
assert tests.meshableButtonState() == 1
findWidget('OOF2:Microstructure Page:Pane:PixelGroups:New').clicked()
checkpoint toplevel widget mapped Dialog-Create new pixel group
findWidget('Dialog-Create new pixel group').resize(249, 72)
findWidget('Dialog-Create new pixel group:name:Text').set_text('')
findWidget('Dialog-Create new pixel group:name:Text').set_text('f')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fg')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fgh')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fghi')
findWidget('Dialog-Create new pixel group:name:Text').set_text('fghij')
findWidget('Dialog-Create new pixel group:gtk-ok').clicked()
checkpoint meshable button set
checkpoint meshable button set
checkpoint microstructure page sensitized
Example #14
0
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
findWidget('OOF2:FE Mesh Page:Delete').clicked()
checkpoint toplevel widget mapped Questioner
findWidget('Questioner').resize(328, 94)
findWidget('Questioner:gtk-yes').clicked()
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
checkpoint mesh page subproblems sensitized
checkpoint mesh bdy page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint OOF.Mesh.Delete
setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Boundary Conditions')
assert tests.chooserCheck('OOF2:Boundary Conditions Page:Mesh', ['mesh'])
findWidget('OOF2').resize(550, 482)
setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'FE Mesh')
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
findWidget('OOF2:FE Mesh Page:New').clicked()
checkpoint toplevel widget mapped Dialog-Create a new mesh
findWidget('Dialog-Create a new mesh').resize(331, 188)
findWidget('Dialog-Create a new mesh:gtk-ok').clicked()
findWidget('OOF2:FE Mesh Page:Pane').set_position(131)
checkpoint mesh bdy page updated
checkpoint mesh bdy page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
Example #15
0
checkpoint Field page sensitized
checkpoint Materials page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint boundary page updated
checkpoint skeleton selection page grouplist
checkpoint skeleton selection page selection sensitized
checkpoint skeleton selection page updated
checkpoint microstructure page sensitized
checkpoint OOF.Microstructure.Create_From_ImageFile
assert tests.sensitization4()
assert tests.chooserCheck('OOF2:Microstructure Page:Microstructure', ['test', 'small.ppm'])
assert tests.chooserStateCheck('OOF2:Microstructure Page:Microstructure', 'small.ppm')
assert tests.chooserCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', [])
assert tests.chooserListStateCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', [])
setComboBox(findWidget('OOF2:Microstructure Page:Microstructure'), 'test')
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint meshable button set
checkpoint microstructure page sensitized
assert tests.sensitization5()
assert tests.chooserCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', ['a (0 pixels, meshable)', 'pixelgroup (0 pixels, meshable)', 'pixelgroup<2> (0 pixels)'])
assert tests.chooserListStateCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', [])
findWidget('OOF2:Microstructure Page:Pane').set_position(212)
setComboBox(findWidget('OOF2:Microstructure Page:Microstructure'), 'small.ppm')
findWidget('OOF2:Microstructure Page:Pane').set_position(165)
findWidget('OOF2:Microstructure Page:NewFromImage').clicked()
Example #16
0
File: log.py Project: song2001/OOF2
findWidget('OOF2:Pin Nodes Page:Pane').set_position(276)
checkpoint skeleton selection page selection sensitized
checkpoint Graphics_1 Element sensitized
checkpoint skeleton selection page updated
checkpoint selection info updated
checkpoint Graphics_1 Element sensitized
checkpoint selection info updated
checkpoint mesh bdy page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint OOF.Skeleton.New
assert tests.chooserStateCheck('OOF2:Pin Nodes Page:Skeleton', 'skeleton')
assert tests.chooserCheck('OOF2:Pin Nodes Page:Skeleton', ['skeleton', 'skeleton<2>'])
setComboBox(findWidget('OOF2:Pin Nodes Page:Skeleton'), 'skeleton<2>')
assert tests.sensitization1()
setComboBox(findWidget('OOF2:Pin Nodes Page:Skeleton'), 'skeleton')
findWidget('OOF2:Pin Nodes Page:Pane').set_position(276)
setComboBox(findWidget('OOF2:Pin Nodes Page:Skeleton'), 'skeleton<2>')
findWidget('OOF2:Pin Nodes Page:Pane').set_position(276)
findWidget('OOF2:Navigation:Prev').clicked()
findWidget('OOF2:Skeleton Page:Pane').set_position(249)
findWidget('OOF2:Skeleton Page:Delete').clicked()
checkpoint toplevel widget mapped Questioner
findWidget('Questioner').resize(220, 94)
findWidget('Questioner:gtk-ok').clicked()
checkpoint skeleton page sensitized
checkpoint skeleton page sensitized
checkpoint Graphics_1 Pixel Info updated
Example #17
0
checkpoint Field page sensitized
checkpoint Materials page updated
checkpoint mesh page subproblems sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint boundary page updated
checkpoint skeleton selection page grouplist
checkpoint skeleton selection page selection sensitized
checkpoint skeleton selection page updated
checkpoint microstructure page sensitized
checkpoint OOF.Microstructure.Create_From_ImageFile
assert tests.sensitization4()
assert tests.chooserCheck('OOF2:Microstructure Page:Microstructure', ['test', 'small.ppm'])
assert tests.chooserStateCheck('OOF2:Microstructure Page:Microstructure', 'small.ppm')
assert tests.chooserCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', [])
assert tests.chooserListStateCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', [])
setComboBox(findWidget('OOF2:Microstructure Page:Microstructure'), 'test')
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint meshable button set
checkpoint microstructure page sensitized
assert tests.sensitization5()
assert tests.chooserCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', ['a (0 pixels, meshable)', 'pixelgroup (0 pixels, meshable)', 'pixelgroup<2> (0 pixels)'])
assert tests.chooserListStateCheck('OOF2:Microstructure Page:Pane:PixelGroups:GroupListScroll:GroupList', [])
findWidget('OOF2:Microstructure Page:Pane').set_position(212)
setComboBox(findWidget('OOF2:Microstructure Page:Microstructure'), 'small.ppm')
findWidget('OOF2:Microstructure Page:Pane').set_position(165)
findWidget('OOF2:Microstructure Page:NewFromImage').clicked()
Example #18
0
checkpoint skeleton page sensitized
checkpoint skeleton page info updated
checkpoint skeleton page info updated
checkpoint skeleton page sensitized
setComboBox(findWidget('OOF3D:Navigation:PageMenu'), 'FE Mesh')
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint page installed FE Mesh
assert tests.FEMeshPageInfoCheck()
assert tests.FEMeshPageCheck1()
assert tests.FEMeshPageSubproblemsCheck0()
assert tests.FEMeshPageOperationsCheck0()
assert tests.chooserCheck('OOF3D:FE Mesh Page:Microstructure', ['triangle'])
assert tests.chooserStateCheck('OOF3D:FE Mesh Page:Microstructure', 'triangle')
assert tests.chooserCheck('OOF3D:FE Mesh Page:Skeleton', ['skeleton'])
assert tests.chooserStateCheck('OOF3D:FE Mesh Page:Skeleton', 'skeleton')
findWidget('OOF3D:FE Mesh Page:Pane').set_position(355)
findWidget('OOF3D:FE Mesh Page:New').clicked()
assert tests.MeshNewDialogCheck0()
checkpoint toplevel widget mapped Dialog-Create a new mesh
findWidget('Dialog-Create a new mesh').resize(373, 237)
findWidget('Dialog-Create a new mesh:gtk-ok').clicked()
checkpoint Graphics_1 Voxel Info updated
checkpoint Graphics_1 Pin Nodes updated
checkpoint Field page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
Example #19
0
findWidget('Dialog-Save Material "material test":filename').set_text('materia')
findWidget('Dialog-Save Material "material test":filename').set_text('material')
findWidget('Dialog-Save Material "material test":filename').set_text('material.')
findWidget('Dialog-Save Material "material test":filename').set_text('material.d')
findWidget('Dialog-Save Material "material test":filename').set_text('material.da')
findWidget('Dialog-Save Material "material test":filename').set_text('material.dat')
findWidget('Dialog-Save Material "material test"').resize(198, 123)
findWidget('Dialog-Save Material "material test":gtk-ok').clicked()
checkpoint OOF.File.Save.Materials
setComboBox(findWidget('OOF3D:Navigation:PageMenu'), 'Microstructure')
checkpoint page installed Microstructure
findWidget('OOF3D:Microstructure Page:Pane').set_position(284)
setComboBox(findWidget('OOF3D:Navigation:PageMenu'), 'Materials')
checkpoint page installed Materials
assert tests.sensitization0()
assert tests.chooserCheck('OOF3D:Materials Page:Pane:Material:MaterialList', ['material test', 'copy'])
findWidget('OOF3D:Materials Page:Pane:Material:Delete').clicked()
checkpoint toplevel widget mapped Questioner
findWidget('Questioner').resize(231, 91)
findWidget('Questioner:gtk-ok').clicked()
checkpoint Materials page updated
checkpoint Materials page updated
checkpoint Materials page updated
checkpoint Materials page updated
checkpoint OOF.Material.Delete
assert tests.sensitization0()
assert tests.chooserCheck('OOF3D:Materials Page:Pane:Material:MaterialList', ['copy'])
assert tests.checkTBMaterial()
findWidget('OOF3D:Materials Page:Pane:Material:Delete').clicked()
checkpoint toplevel widget mapped Questioner
findWidget('Questioner').resize(190, 91)
Example #20
0
setComboBox(findWidget('OOF2:Analysis Page:bottom:Sampling:Sampling:Chooser'), 'Pixels')
assert tests.goSensitive(1)
assert tests.samplingParams('Pixels', [])
findWidget('OOF2:Analysis Page:Destination:New').clicked()
checkpoint toplevel widget mapped Dialog-Add a data destination
findWidget('Dialog-Add a data destination').resize(194, 72)
findWidget('Dialog-Add a data destination:filename').set_text('m')
findWidget('Dialog-Add a data destination:filename').set_text('ms')
findWidget('Dialog-Add a data destination:filename').set_text('msg')
findWidget('Dialog-Add a data destination:filename').set_text('msg.')
findWidget('Dialog-Add a data destination:filename').set_text('msg.d')
findWidget('Dialog-Add a data destination:filename').set_text('msg.da')
findWidget('Dialog-Add a data destination:filename').set_text('msg.dat')
findWidget('Dialog-Add a data destination:filename').set_text('msg.data')
findWidget('Dialog-Add a data destination:gtk-ok').clicked()
assert tests.chooserCheck('OOF2:Analysis Page:Destination:Chooser', ['<Message Window>', 'msg.data'])
setComboBox(findWidget('OOF2:Analysis Page:bottom:Operation:OperationRCF:Chooser'), 'Direct Output')
findWidget('OOF2:Analysis Page:Go').clicked()
checkpoint OOF.Mesh.Analyze.Direct_Output
assert tests.filediff('msg.data')
findWidget('OOF2:Analysis Page:Destination:Clear').clicked()
assert tests.chooserCheck('OOF2:Analysis Page:Destination:Chooser', ['<Message Window>'])
setComboBox(findWidget('OOF2:Analysis Page:bottom:Operation:OperationRCF:Chooser'), 'Average')
assert tests.samplingParams('Pixels', [])
findWidget('OOF2:Analysis Page:Go').clicked()
checkpoint OOF.Mesh.Analyze.Average
assert tests.msgTextTail('# 1. time\n# 2. average of Displacement[x]\n0.0, 0.0')
findWidget('OOF2').resize(561, 543)
findWidget('OOF2:Navigation:Prev').clicked()
#findWidget('OOF2:Solver Page:Solve').clicked()
findWidget('OOF2:Solver Page:VPane:Subproblems:SubproblemScroll:SubproblemList').get_selection().select_path((0,))
Example #21
0
checkpoint Graphics_1 Skeleton Info sensitized
checkpoint contourmap info updated for Graphics_1
checkpoint OOF.Graphics_1.Toolbox.Skeleton_Info.QueryElement
findWidget('OOF2 Graphics 1:Pane0').set_position(444)

# Direct element selection.  Dominant pixel test skipped, because it's
# a numerically-derived name which may be prone to roundoff, and is
# tested directly in the 01200 test.
assert findWidget(tbox+":Click:Element").get_active()
assert not findWidget(tbox+":Click:Node").get_active()
assert not findWidget(tbox+":Click:Segment").get_active()
assert tests.gtkMultiFloatCompare({'X Text':22.61,'Y Text':68.47},cbox)
assert tests.gtkMultiTextCompare({'Material':'<No material>','Group':'','Index':'54','Type':'quad'},elbox)
assert tests.gtkMultiFloatCompare({'Shape':0.308000,'Homog':0.988881,'Area':287.500000},elbox)
assert tests.sensitizationCheck({'Prev':False,'Clear':True,'Next':False},tbox)
assert tests.chooserCheck(elbox+":SegmentList",["Segment 79, nodes (43, 52) (length: 12.5)","Segment 130, nodes (43, 44) (length: 18.5)","Segment 127, nodes (44, 53) (length: 15.402922)","Segment 131, nodes (52, 53) (length: 27.5)"], tolerance=1.e-6)
assert tests.chooserCheck(elbox+":NodeList",["Node 43 at (12.5, 62.5) (angle: 90)","Node 44 at (31, 62.5) (angle: 125.753887)","Node 53 at (40, 75) (angle: 54.2461127)","Node 52 at (12.5, 75) (angle: 90)"],tolerance=1.e-6)

findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:TBScroll:Skeleton Info:ElementInformation:NodeList').get_selection().select_path((1,))
findWidget('OOF2 Graphics 1:Pane0').set_position(444)

# Node peek.
checkpoint contourmap info updated for Graphics_1
assert findWidget(tbox+":Click:Element").get_active()
assert not findWidget(tbox+":Click:Node").get_active()
assert not findWidget(tbox+":Click:Segment").get_active()
assert tests.gtkMultiFloatCompare({'X Text':22.61,'Y Text':68.47},cbox)
assert tests.gtkMultiTextCompare({'Material':'<No material>','Group':'','Index':'54','Type':'quad'},elbox)
assert tests.gtkMultiFloatCompare({'Shape':0.308000,'Homog':0.988881,'Area':287.500000},elbox)
assert tests.sensitizationCheck({'Prev':False,'Clear':True,'Next':False},tbox)
assert tests.chooserCheck(elbox+":SegmentList",["Segment 79, nodes (43, 52) (length: 12.5)","Segment 130, nodes (43, 44) (length: 18.5)","Segment 127, nodes (44, 53) (length: 15.4029218)","Segment 131, nodes (52, 53) (length: 27.5)"],tolerance=1.e-6)