예제 #1
0
# create a voxels group
findWidget('OOF3D:Microstructure Page:Pane:VoxelGroups:New').clicked()
checkpoint toplevel widget mapped Dialog-Create new voxel group
findWidget('Dialog-Create new voxel group').resize(246, 67)
findWidget('Dialog-Create new voxel group:gtk-ok').clicked()
findWidget('OOF3D:Microstructure Page:Pane').set_position(225)
checkpoint meshable button set
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint skeleton selection page groups sensitized
checkpoint OOF.PixelGroup.New
checkpoint microstructure page sensitized
checkpoint meshable button set

# A group has been created in micro, but no voxels have been added
assert tests.sensitization3()
assert tests.meshableCheck(1)
assert tests.voxelGroupListCheck('pixelgroup (0 voxels, meshable)')
assert tests.selectedGroupCheck('pixelgroup (0 voxels, meshable)')

# create another voxels group
findWidget('OOF3D:Microstructure Page:Pane:VoxelGroups:New').clicked()
checkpoint toplevel widget mapped Dialog-Create new voxel group
findWidget('Dialog-Create new voxel group').resize(246, 67)
findWidget('Dialog-Create new voxel group:gtk-ok').clicked()
checkpoint meshable button set
checkpoint meshable button set
checkpoint microstructure page sensitized
checkpoint skeleton selection page groups sensitized
checkpoint OOF.PixelGroup.New
예제 #2
0
파일: log.py 프로젝트: anilkunwar/OOF2
findWidget('Dialog-Create a new subproblem:name:Text').set_text('su')
findWidget('Dialog-Create a new subproblem:name:Text').set_text('sub')
findWidget('Dialog-Create a new subproblem:name:Text').set_text('subp')
findWidget('Dialog-Create a new subproblem:name:Text').set_text('subpr')
findWidget('Dialog-Create a new subproblem:name:Text').set_text('subpro')
findWidget('Dialog-Create a new subproblem:name:Text').set_text('subprob')
findWidget('Dialog-Create a new subproblem:name:Text').set_text('subprob2')
findWidget('Dialog-Create a new subproblem:gtk-ok').clicked()
checkpoint mesh page subproblems sensitized
checkpoint OOF.Subproblem.New
checkpoint Solver page sensitized
findWidget('OOF2:Navigation:NextHist').clicked()
checkpoint page installed Solver
checkpoint Solver page sensitized
assert tests.listCheck("default", "subprob2")
assert tests.sensitization3()
assert tests.selection(0)
# Add Solver
findWidget('OOF2:Solver Page:VPane:Subproblems:Set').clicked()
checkpoint toplevel widget mapped Dialog-Specify Solver
findWidget('Dialog-Specify Solver').resize(441, 218)
findWidget('Dialog-Specify Solver:gtk-ok').clicked()
checkpoint Solver page sensitized
checkpoint Field page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint OOF.Subproblem.Set_Solver
checkpoint Solver page sensitized
assert tests.sensitization4()
# Select second subproblem
findWidget('OOF2:Solver Page:VPane:Subproblems:SubproblemScroll:SubproblemList').get_selection().select_path((1,))