# with its operation, modification and maintenance. However, to # facilitate maintenance we ask that before distributing modified # versions of this software, you first contact the authors at # [email protected]. ## Test the sensitization of the Solve button as a problem is ## constructed. import tests setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Solver') checkpoint page installed Solver findWidget('OOF2').resize(550, 484) findWidget('OOF2:Solver Page:VPane').set_position(152) # Sensitization check. Nothing defined. assert tests.sensitive(False) setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Microstructure') checkpoint page installed Microstructure findWidget('OOF2').resize(577, 484) findWidget('OOF2:Microstructure Page:Pane').set_position(159) findWidget('OOF2:Microstructure Page:New').clicked() checkpoint toplevel widget mapped Dialog-Create Microstructure findWidget('Dialog-Create Microstructure').resize(315, 163) findWidget('Dialog-Create Microstructure:gtk-ok').clicked() findWidget('OOF2:Microstructure Page:Pane').set_position(164) checkpoint meshable button set checkpoint meshable button set checkpoint microstructure page sensitized checkpoint pixel page updated checkpoint active area status updated checkpoint microstructure page sensitized
# Set a Solver for the first Microstructure setComboBox(findWidget('OOF2:Navigation:PageMenu'), 'Solver') checkpoint Solver page sensitized checkpoint page installed Solver findWidget('OOF2:Solver Page:VPane:Subproblems:SubproblemScroll:SubproblemList').get_selection().select_path((0,)) checkpoint Solver page sensitized findWidget('OOF2:Solver Page:VPane:Subproblems:Set').clicked() checkpoint toplevel widget mapped Dialog-Specify Solver findWidget('Dialog-Specify Solver').resize(423, 212) findWidget('Dialog-Specify Solver:gtk-ok').clicked() checkpoint Solver page sensitized checkpoint Field page sensitized checkpoint Solver page sensitized checkpoint OOF.Subproblem.Set_Solver assert tests.sensitive(1) # Solve the first Microstructure findWidget('OOF2:Solver Page:end').set_text('0') checkpoint Solver page sensitized findWidget('OOF2:Solver Page:solve').clicked() checkpoint Solver page sensitized checkpoint Field page sensitized checkpoint Solver page sensitized checkpoint Field page sensitized checkpoint Solver page sensitized checkpoint Solver page sensitized checkpoint Solver page sensitized checkpoint Solver page sensitized checkpoint OOF.Mesh.Solve assert tests.sensitive(1)