示例#1
0
# Check sensitivity
assert tests.sensitization5()
# Set destination
findWidget('OOF2:Scheduled Output Page:HPane0:HPane2:Destination:Set').clicked()
checkpoint toplevel widget mapped Dialog-Set an Output Destination
findWidget('Dialog-Set an Output Destination').resize(293, 79)
setComboBox(findWidget('Dialog-Set an Output Destination:destination:Chooser'), 'Output Stream')
findWidget('Dialog-Set an Output Destination').resize(300, 129)
findWidget('Dialog-Set an Output Destination:destination:Output Stream:filename').set_text('a')
findWidget('Dialog-Set an Output Destination:destination:Output Stream:filename').set_text('ab')
findWidget('Dialog-Set an Output Destination:destination:Output Stream:filename').set_text('abc')
findWidget('Dialog-Set an Output Destination:destination:Output Stream:filename').set_text('abcd')
findWidget('Dialog-Set an Output Destination:destination:Output Stream:filename').set_text('abcde')
findWidget('Dialog-Set an Output Destination:gtk-ok').clicked()
checkpoint OOF.Mesh.Scheduled_Output.Destination.Set
assert tests.sensitization6()
# Delete schedule
findWidget('OOF2:Scheduled Output Page:HPane0:HPane2:Schedule:Delete').clicked()
checkpoint OOF.Mesh.Scheduled_Output.Schedule.Delete
assert tests.sensitization7()
# Delete destination
findWidget('OOF2:Scheduled Output Page:HPane0:HPane2:Destination:Delete').clicked()
checkpoint OOF.Mesh.Scheduled_Output.Destination.Delete
findWidget('OOF2').resize(673, 350)
findWidget('OOF2 Messages 1').resize(720, 200)
findWidget('OOF2 Activity Viewer').resize(400, 300)
assert tests.sensitization4()
# Delete output
findWidget('OOF2:Scheduled Output Page:HPane0:HPaneL:Output:Delete').clicked()
checkpoint OOF.Mesh.Scheduled_Output.Delete
assert tests.sensitization8()
示例#2
0
文件: log.py 项目: anilkunwar/OOF2
checkpoint Solver page sensitized
assert tests.sensitization5()
assert tests.selection(1)
# Add solver
findWidget('OOF2:Solver Page:VPane:Subproblems:SubproblemScroll').get_vadjustment().set_value( 6.0000000000000e+00)
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.sensitization6()
# Remove second solver
findWidget('OOF2:Solver Page:VPane:Subproblems:Remove').clicked()
checkpoint Solver page sensitized
checkpoint Field page sensitized
checkpoint mesh page subproblems sensitized
checkpoint mesh page sensitized
checkpoint OOF.Subproblem.Remove_Solver
checkpoint Solver page sensitized
assert tests.sensitization5()
# Re-add second 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 Field page sensitized