[Smtk-developers] Reshape edge test failure
Haocheng Liu
haocheng.liu at kitware.com
Tue Sep 19 16:27:56 EDT 2017
Hi David,
On Tue, Sep 19, 2017 at 4:13 PM, David Thompson <david.thompson at kitware.com>
wrote:
> Hi Bob,
>
> The reshape edge test in CMB that you mentioned today appears to be
> failing because of an unrecorded button press in the XML test script. The
> test attempts to run "Edge - Split" after the reshape but because the
> "Split Edges" button in the operator view is never pressed, the mouse
> clicks have no effect.
>
> I am fine with (1) updating the baseline and removing the "Edge - Split"
> stuff from the XML or (2) adding the missing button click — assuming we
> can find some XML to simulate it — so that the split operation gets tested.
> Do you have a preference?
>
> I just played with it, adding
```xml
--- a/Source/Applications/ModelBuilder/Testing/XML/PolygonReshapeEdge.xml
+++ b/Source/Applications/ModelBuilder/Testing/XML/PolygonReshapeEdge.xml
@@ -27,6 +27,10 @@
<pqevent object="qtCMBMainWindow/Viewport" command="mouseRelease"
arguments="(0.15,0.173333,1,0,0)" />
<pqevent object="qtCMBMainWindow/operatorsDockWidget/
scrollArea/qt_scrollarea_viewport/modelOperationWidget/
1QSplitter0/1QWidget0/1QFrame0/topLevelScrollArea/qt_scrollarea_viewport/
1QFrame0/smtkArcWidget/Finished" command="activate" arguments="" />
<pqevent object="qtCMBMainWindow/operatorsDockWidget/
scrollArea/qt_scrollarea_viewport/modelOperationWidget/
1QSplitter0/1QWidget0/1QComboBox0" command="activated" arguments="Edge -
Split" />
+ <pqevent object="qtCMBMainWindow/operatorsDockWidget"
command="mousePress" arguments="1,1,0,338,20" />
+ <pqevent object="qtCMBMainWindow/operatorsDockWidget"
command="mouseMove" arguments="1,0,0,328,10" />
+ <pqevent object="qtCMBMainWindow/operatorsDockWidget"
command="mouseRelease" arguments="1,0,0,328,10" />
+ <pqevent object="qtCMBMainWindow/operatorsDockWidget/
scrollArea/qt_scrollarea_viewport/modelOperationWidget/
1QSplitter0/1QWidget0/1QFrame0/topLevelScrollArea/qt_scrollarea_viewport/
1QFrame0/pqSplitEdgeWidget/1QToolButton0" command="set_boolean"
arguments="true" />
<pqevent object="qtCMBMainWindow/Viewport" command="mousePress"
arguments="(0.18,0.833333,1,1,0)" />
<pqevent object="qtCMBMainWindow/Viewport" command="mouseMove"
arguments="(0.18,0.833333,1,0,0)" />
<pqevent object="qtCMBMainWindow/Viewport" command="mouseRelease"
arguments="(0.18,0.833333,1,0,0)" />
diff --git a/ThirdParty/SMTK b/ThirdParty/SMTK
```
seems able to trigger the missing button click. Would you mind give it a
try :) ? A patch file is attached.
> David
>
> https://open.cdash.org/testDetails.php?test=583994406&build=5067897
> _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org
> http://public.kitware.com/mailman/listinfo/smtk-developers
>
--
Best regards
Haocheng
Haocheng LIU
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4421 <(518)%20881-4421>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20170919/bfe1279b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape.patch
Type: text/x-patch
Size: 2029 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20170919/bfe1279b/attachment.bin>
More information about the Smtk-developers
mailing list