Browse Source

Fix and Add functionalities to QtTesting :

Fix QtTesting tag.
Fix build Test if ctk use qtTesting.
Added XMLDescription to validat qtTesting xml before a playback.
Fix function setTestUtility() on ctkEventTranslatorPLayerWidget.
Benjamin Long 13 years ago
parent
commit
8b399aea48
100 changed files with 417 additions and 121 deletions
  1. 1 0
      CMake/ctkMacroSetupQt.cmake
  2. 1 1
      CMakeExternals/QtTesting.cmake
  3. 0 1
      Libs/QtTesting/CMake/ctkQtTesting.cmake
  4. 1 0
      Libs/QtTesting/CMakeLists.txt
  5. 35 0
      Libs/QtTesting/Resources/XML/XMLDescription.xsd
  6. 5 0
      Libs/QtTesting/Resources/ctkQtTesting.qrc
  7. 7 5
      Libs/QtTesting/ctkEventTranslatorPlayerWidget.cpp
  8. 1 1
      Libs/QtTesting/ctkXMLEventObserver.cpp
  9. 38 34
      Libs/QtTesting/ctkXMLEventSource.cpp
  10. 3 2
      Libs/QtTesting/ctkXMLEventSource.h
  11. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractMatrixWidgetEventTranslatorPlayerTest1.cpp
  12. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewEventTranslatorPlayerTest1.cpp
  13. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKChartViewEventTranslatorPlayerTest1.cpp
  14. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetArrayComboBoxEventTranslatorPlayerTest1.cpp
  15. 2 2
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetArrayComboBoxEventTranslatorPlayerTest1.xml
  16. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetModelEventTranslatorPlayerTest1.cpp
  17. 2 2
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetModelEventTranslatorPlayerTest1.xml
  18. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKMagnifyViewEventTranslatorPlayerTest1.cpp
  19. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKMatrixWidgetEventTranslatorPlayerTest1.cpp
  20. 2 2
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKMatrixWidgetEventTranslatorPlayerTest1.xml
  21. 2 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKRenderViewEventTranslatorPlayerTest1.cpp
  22. 2 2
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKRenderViewEventTranslatorPlayerTest1.xml
  23. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarBarWidgetEventTranslatorPlayerTest1.cpp
  24. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarsToColorsUtilsEventTranslatorPlayerTest1.cpp
  25. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarsToColorsViewEventTranslatorPlayerTest1.cpp
  26. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarsToColorsWidgetEventTranslatorPlayerTest1.cpp
  27. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKSliceViewEventTranslatorPlayerTest1.cpp
  28. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKSurfaceMaterialPropertyWidgetEventTranslatorPlayerTest1.cpp
  29. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKTextPropertyWidgetEventTranslatorPlayerTest1.cpp
  30. 2 2
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKTextPropertyWidgetEventTranslatorPlayerTest1.xml
  31. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThresholdWidgetEventTranslatorPlayerTest1.cpp
  32. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThumbnailViewEventTranslatorPlayerTest1.cpp
  33. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKVolumePropertyWidgetEventTranslatorPlayerTest1.cpp
  34. 5 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKWidgetsUtilsEventTranslatorPlayerTest1.cpp
  35. 1 1
      Libs/Widgets/Testing/Cpp/CMakeLists.txt
  36. 6 0
      Libs/Widgets/Testing/Cpp/ctkActionsWidgetEventTranslatorPlayerTest1.cpp
  37. 2 2
      Libs/Widgets/Testing/Cpp/ctkActionsWidgetEventTranslatorPlayerTest1.xml
  38. 5 0
      Libs/Widgets/Testing/Cpp/ctkAddRemoveComboBoxEventTranslatorPlayerTest1.cpp
  39. 2 2
      Libs/Widgets/Testing/Cpp/ctkAddRemoveComboBoxEventTranslatorPlayerTest1.xml
  40. 5 0
      Libs/Widgets/Testing/Cpp/ctkAxesWidgetEventTranslatorPlayerTest1.cpp
  41. 2 2
      Libs/Widgets/Testing/Cpp/ctkAxesWidgetEventTranslatorPlayerTest1.xml
  42. 5 0
      Libs/Widgets/Testing/Cpp/ctkBasePopupWidgetEventTranslatorPlayerTest1.cpp
  43. 5 0
      Libs/Widgets/Testing/Cpp/ctkButtonGroupEventTranslatorPlayerTest1.cpp
  44. 2 2
      Libs/Widgets/Testing/Cpp/ctkButtonGroupEventTranslatorPlayerTest1.xml
  45. 5 0
      Libs/Widgets/Testing/Cpp/ctkCheckBoxPixmapsEventTranslatorPlayerTest1.cpp
  46. 5 0
      Libs/Widgets/Testing/Cpp/ctkCheckableComboBoxEventTranslatorPlayerTest1.cpp
  47. 2 2
      Libs/Widgets/Testing/Cpp/ctkCheckableComboBoxEventTranslatorPlayerTest1.xml
  48. 2 2
      Libs/Widgets/Testing/Cpp/ctkCheckableComboBoxEventTranslatorPlayerTest2.xml
  49. 5 0
      Libs/Widgets/Testing/Cpp/ctkCheckableHeaderViewEventTranslatorPlayerTest1.cpp
  50. 2 2
      Libs/Widgets/Testing/Cpp/ctkCheckableHeaderViewEventTranslatorPlayerTest1.xml
  51. 5 0
      Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest1.cpp
  52. 2 2
      Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest1.xml
  53. 2 2
      Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest2.xml
  54. 2 2
      Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest3.xml
  55. 5 0
      Libs/Widgets/Testing/Cpp/ctkCollapsibleButtonEventTranslatorPlayerTest1.cpp
  56. 2 2
      Libs/Widgets/Testing/Cpp/ctkCollapsibleButtonEventTranslatorPlayerTest1.xml
  57. 5 0
      Libs/Widgets/Testing/Cpp/ctkCollapsibleGroupBoxEventTranslatorPlayerTest1.cpp
  58. 2 2
      Libs/Widgets/Testing/Cpp/ctkCollapsibleGroupBoxEventTranslatorPlayerTest1.xml
  59. 5 0
      Libs/Widgets/Testing/Cpp/ctkColorDialogEventTranslatorPlayerTest1.cpp
  60. 2 2
      Libs/Widgets/Testing/Cpp/ctkColorDialogEventTranslatorPlayerTest1.xml
  61. 5 0
      Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest1.cpp
  62. 2 2
      Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest1.xml
  63. 2 2
      Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest2.xml
  64. 2 2
      Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest3.xml
  65. 5 0
      Libs/Widgets/Testing/Cpp/ctkComboBoxEventTranslatorPlayerTest1.cpp
  66. 2 2
      Libs/Widgets/Testing/Cpp/ctkComboBoxEventTranslatorPlayerTest1.xml
  67. 5 0
      Libs/Widgets/Testing/Cpp/ctkCompleterEventTranslatorPlayerTest1.cpp
  68. 5 0
      Libs/Widgets/Testing/Cpp/ctkConfirmExitDialogEventTranslatorPlayerTest1.cpp
  69. 5 0
      Libs/Widgets/Testing/Cpp/ctkConsoleEventTranslatorPlayerTest1.cpp
  70. 2 2
      Libs/Widgets/Testing/Cpp/ctkConsoleEventTranslatorPlayerTest1.xml
  71. 5 0
      Libs/Widgets/Testing/Cpp/ctkCoordinatesWidgetEventTranslatorPlayerTest1.cpp
  72. 2 2
      Libs/Widgets/Testing/Cpp/ctkCoordinatesWidgetEventTranslatorPlayerTest1.xml
  73. 5 0
      Libs/Widgets/Testing/Cpp/ctkCrosshairLabelEventTranslatorPlayerTest1.cpp
  74. 5 0
      Libs/Widgets/Testing/Cpp/ctkDateRangeWidgetEventTranslatorPlayerTest1.cpp
  75. 2 2
      Libs/Widgets/Testing/Cpp/ctkDateRangeWidgetEventTranslatorPlayerTest1.xml
  76. 5 0
      Libs/Widgets/Testing/Cpp/ctkDirectoryButtonEventTranslatorPlayerTest1.cpp
  77. 2 2
      Libs/Widgets/Testing/Cpp/ctkDirectoryButtonEventTranslatorPlayerTest1.xml
  78. 5 0
      Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest1.cpp
  79. 2 2
      Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest1.xml
  80. 2 2
      Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest2.xml
  81. 2 2
      Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest3.xml
  82. 5 0
      Libs/Widgets/Testing/Cpp/ctkDoubleSliderEventTranslatorPlayerTest1.cpp
  83. 2 2
      Libs/Widgets/Testing/Cpp/ctkDoubleSliderEventTranslatorPlayerTest1.xml
  84. 2 2
      Libs/Widgets/Testing/Cpp/ctkDoubleSliderEventTranslatorPlayerTest2.xml
  85. 5 0
      Libs/Widgets/Testing/Cpp/ctkDynamicSpacerEventTranslatorPlayerTest1.cpp
  86. 5 0
      Libs/Widgets/Testing/Cpp/ctkErrorLogStatusMessageHandlerEventTranslatorPlayerTest1.cpp
  87. 5 0
      Libs/Widgets/Testing/Cpp/ctkErrorLogWidgetEventTranslatorPlayerTest1.cpp
  88. 5 0
      Libs/Widgets/Testing/Cpp/ctkExpandButtonEventTranslatorPlayerTest1.cpp
  89. 2 2
      Libs/Widgets/Testing/Cpp/ctkExpandButtonEventTranslatorPlayerTest1.xml
  90. 2 2
      Libs/Widgets/Testing/Cpp/ctkExpandButtonEventTranslatorPlayerTest2.xml
  91. 5 0
      Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest1.cpp
  92. 2 2
      Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest1.xml
  93. 2 2
      Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest2.xml
  94. 2 2
      Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest3.xml
  95. 5 0
      Libs/Widgets/Testing/Cpp/ctkFittedTextBrowserEventTranslatorPlayerTest1.cpp
  96. 5 0
      Libs/Widgets/Testing/Cpp/ctkFlowLayoutEventTranslatorPlayerTest1.cpp
  97. 5 0
      Libs/Widgets/Testing/Cpp/ctkFontButtonEventTranslatorPlayerTest1.cpp
  98. 2 2
      Libs/Widgets/Testing/Cpp/ctkFontButtonEventTranslatorPlayerTest1.xml
  99. 2 2
      Libs/Widgets/Testing/Cpp/ctkFontButtonEventTranslatorPlayerTest2.xml
  100. 0 0
      Libs/Widgets/Testing/Cpp/ctkIconEnginePluginEventTranslatorPlayerTest1.cpp

+ 1 - 0
CMake/ctkMacroSetupQt.cmake

@@ -35,6 +35,7 @@ macro(ctkMacroSetupQt)
     set(QT_USE_QTSQL ON)
     set(QT_USE_QTOPENGL ON)
     set(QT_USE_QTXML ON)
+    set(QT_USE_QTXMLPATTERNS ON)
     set(QT_USE_QTTEST ${BUILD_TESTING})
     include(${QT_USE_FILE})
 

+ 1 - 1
CMakeExternals/QtTesting.cmake

@@ -23,7 +23,7 @@ if(CTK_USE_QTTESTING)
 
     if(NOT DEFINED QtTesting_DIR)
 
-      set(revision_tag 3454d26f1902571caaae704bc69176454cdbb4ea)
+      set(revision_tag 4d42969ab489b2e28b8c3dc43867acf0d6548516)
       if(${proj}_REVISION_TAG)
         set(revision_tag ${${proj}_REVISION_TAG})
       endif()

+ 0 - 1
Libs/QtTesting/CMake/ctkQtTesting.cmake

@@ -8,7 +8,6 @@ macro(ctkQtTesting SRCS_OUTPUT_VAR MOC_CPP_OUTPUT_VAR UI_FORMS_OUTPUT_VAR)
     ${CTK_BINARY_DIR}/Libs/QtTesting
     )
 
-  message ("called: ${SRCS_OUTPUT_VAR}")
   list(APPEND ${SRCS_OUTPUT_VAR}
     ${CTK_SOURCE_DIR}/Libs/QtTesting/ctkEventTranslatorPlayerWidget.h
     ${CTK_SOURCE_DIR}/Libs/QtTesting/ctkEventTranslatorPlayerWidget.cpp

+ 1 - 0
Libs/QtTesting/CMakeLists.txt

@@ -147,6 +147,7 @@ set(KIT_UI_FORMS
 
 # Resources
 set(KIT_resources
+  Resources/ctkQtTesting.qrc
 )
 
 # dependencie dynamic from all the libraries with Widgets + QtTesting

+ 35 - 0
Libs/QtTesting/Resources/XML/XMLDescription.xsd

@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+    <xsd:complexType name="settings">
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
+            <xsd:element name="state"/>
+            <xsd:element name="geometry"/>
+            <xsd:element name="font"/>
+            <xsd:element name="version"/>
+            <xsd:element name="name"/>
+        </xsd:choice>
+    </xsd:complexType>
+
+    <xsd:complexType name="events">
+        <xsd:sequence>
+            <xsd:element minOccurs="0" maxOccurs="unbounded" name="event">
+                <xsd:complexType>
+                    <xsd:attribute name="widget" type="xsd:string" />
+                    <xsd:attribute name="command" type="xsd:string" />
+                    <xsd:attribute name="arguments" type="xsd:string" />
+                </xsd:complexType>
+            </xsd:element>
+        </xsd:sequence>
+    </xsd:complexType>
+
+    <xsd:element name="QtTesting">
+        <xsd:complexType>
+            <xsd:sequence>
+                <xsd:element name="settings" type="settings" minOccurs="0" maxOccurs="1"/>
+                <xsd:element name="events" type="events"/>
+            </xsd:sequence>
+      </xsd:complexType>
+    </xsd:element>
+
+</xsd:schema>

+ 5 - 0
Libs/QtTesting/Resources/ctkQtTesting.qrc

@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>XML/XMLDescription.xsd</file>
+    </qresource>
+</RCC>

+ 7 - 5
Libs/QtTesting/ctkEventTranslatorPlayerWidget.cpp

@@ -67,14 +67,14 @@ ctkEventTranslatorPlayerWidget::ctkEventTranslatorPlayerWidget()
   QObject::connect(d->TestCaseComboBox, SIGNAL(currentIndexChanged(int)),
                    this, SLOT(switchTestCase(int)));
 
-  d->TestUtility = new pqTestUtility(this);
-  d->TestUtility->addEventObserver("xml", new ctkXMLEventObserver(d->TestUtility));
-  d->TestUtility->addEventSource("xml", new ctkXMLEventSource(d->TestUtility));
+  d->TestUtility = 0;
 }
 
 //-----------------------------------------------------------------------------
 ctkEventTranslatorPlayerWidget::~ctkEventTranslatorPlayerWidget()
 {
+  Q_D(ctkEventTranslatorPlayerWidget);
+  d->TestUtility = 0;
 }
 
 //-----------------------------------------------------------------------------
@@ -128,8 +128,10 @@ void ctkEventTranslatorPlayerWidget::setTestUtility(pqTestUtility* newTestUtilit
 {
   Q_D(ctkEventTranslatorPlayerWidget);
   d->TestUtility = newTestUtility;
-  d->TestUtility->addEventObserver("xml", new ctkXMLEventObserver(this));
-  d->TestUtility->addEventSource("xml", new ctkXMLEventSource(this));
+  d->TestUtility->addEventObserver("xml", new ctkXMLEventObserver(d->TestUtility));
+  ctkXMLEventSource* eventSource = new ctkXMLEventSource(d->TestUtility);
+  eventSource->setRestoreSettingsAuto(true);
+  d->TestUtility->addEventSource("xml", eventSource);
 }
 
 //-----------------------------------------------------------------------------

+ 1 - 1
Libs/QtTesting/ctkXMLEventObserver.cpp

@@ -128,7 +128,7 @@ void ctkXMLEventObserver::setStream(QTextStream* stream)
     this->XMLStream = new QXmlStreamWriter(&this->XMLString);
     this->XMLStream->setAutoFormatting(true);
     this->XMLStream->writeStartDocument();
-    this->XMLStream->writeStartElement("xml");
+    this->XMLStream->writeStartElement("QtTesting");
     this->recordApplicationSettings();
     this->XMLStream->writeStartElement("events");
     }

+ 38 - 34
Libs/QtTesting/ctkXMLEventSource.cpp

@@ -25,6 +25,8 @@
 #include <QFile>
 #include <QMap>
 #include <QMessageBox>
+#include <QXmlSchema>
+#include <QXmlSchemaValidator>
 #include <QVariant>
 
 // CTKQtTesting includes
@@ -62,7 +64,7 @@ bool ctkXMLEventSource::restoreSettingsAuto() const
 }
 
 //-----------------------------------------------------------------------------
-bool ctkXMLEventSource::setContent(const QString& xmlfilename)
+void ctkXMLEventSource::setContent(const QString& xmlfilename)
 {
   delete this->XMLStream;
   this->XMLStream = NULL;
@@ -71,47 +73,48 @@ bool ctkXMLEventSource::setContent(const QString& xmlfilename)
   if (!xml.open(QIODevice::ReadOnly))
     {
     qDebug() << "Failed to load " << xmlfilename;
-    return false;
+    return;
     }
-  QByteArray data = xml.readAll();
-  this->XMLStream = new QXmlStreamReader(data);
-  /* This checked for valid event objects, but also caused the first event
-   * to get dropped. Commenting this out in the example. If you wish to report
-   * empty XML test files a flag indicating whether valid events were found is
-   * probably the best way to go.
-  while (!this->XMLStream->atEnd())
+
+  // Check if the xml file is valid
+  QXmlSchema xmlSchema;
+  if (!xmlSchema.load(QUrl::fromLocalFile(":/XML/XMLDescription.xsd")) ||
+      !xmlSchema.isValid())
     {
-    QXmlStreamReader::TokenType token = this->XMLStream->readNext();
-    if (token == QXmlStreamReader::StartElement)
-      {
-      if (this->XMLStream->name() == "event")
-        {
-        break;
-        }
-      }
-    } */
-  if (this->XMLStream->atEnd())
+    qDebug() << "Xml cannot be check.";
+    return;
+    }
+
+  QXmlSchemaValidator validator(xmlSchema);
+  if(!validator.validate(&xml, QUrl::fromLocalFile(xml.fileName())))
     {
-    qDebug() << "Invalid xml" << endl;
-    return false;
+    qCritical() << xmlfilename << "invalid xml file for qtTesting !";
+    return;
     }
 
+  xml.reset();
+  QByteArray data = xml.readAll();
+  this->XMLStream = new QXmlStreamReader(data);
+
   if(this->settingsRecorded())
     {
-    qDebug() << "settings recorded";
     this->OldSettings = this->recoverSettingsFromXML();
     if(!this->settingsUpToData())
       {
-      qDebug() << "restoring ...";
       this->restoreApplicationSettings();
       }
     }
-  return true;
+
+  return;
 }
 
 //-----------------------------------------------------------------------------
 int ctkXMLEventSource::getNextEvent(QString& widget, QString& command, QString&arguments)
 {
+  if (!this->XMLStream)
+    {
+    return EXIT_FAILURE;
+    }
   if (this->XMLStream->atEnd())
     {
     return DONE;
@@ -186,20 +189,21 @@ bool ctkXMLEventSource::restoreApplicationSettings()
       {
       return false;
       }
+    }
 
-    result = window->restoreState(
-                QByteArray::fromHex(QByteArray(this->OldSettings.value("state").toLocal8Bit().constData())));
-    result = window->restoreGeometry(
-                QByteArray::fromHex(QByteArray(this->OldSettings.value("geometry").toLocal8Bit().constData())));
+  result = window->restoreState(
+              QByteArray::fromHex(QByteArray(this->OldSettings.value("state").toLocal8Bit().constData())));
+  result = window->restoreGeometry(
+              QByteArray::fromHex(QByteArray(this->OldSettings.value("geometry").toLocal8Bit().constData())));
 
-    QMap<QObject*, QString>::iterator iter;
-    for(iter = states.begin() ; iter!=states.end() ; ++iter)
-      {
-      iter.key()->setProperty(iter.value().toLatin1(),
-                              QVariant(this->OldSettings.value(iter.value())));
-      }
+  QMap<QObject*, QString>::iterator iter;
+  for(iter = states.begin() ; iter!=states.end() ; ++iter)
+    {
+    iter.key()->setProperty(iter.value().toLatin1(),
+                            QVariant(this->OldSettings.value(iter.value())));
     }
 
+
   return result;
 }
 

+ 3 - 2
Libs/QtTesting/ctkXMLEventSource.h

@@ -47,7 +47,7 @@ public:
   ctkXMLEventSource(QObject* p);
   ~ctkXMLEventSource();
 
-  virtual bool setContent(const QString& xmlfilename);
+  virtual void setContent(const QString& xmlfilename);
   int getNextEvent(QString& widget, QString& command, QString&arguments);
 
   void setRestoreSettingsAuto(bool value);
@@ -58,9 +58,10 @@ public:
   bool restoreApplicationSettings();
   QMap<QString, QString> recoverSettingsFromXML();
 
-protected:
+private:
   QMainWindow* mainWindow();
 
+protected:
   bool                    Automatic;
   QXmlStreamReader*       XMLStream;
   pqTestUtility*          TestUtility;

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractMatrixWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKAbstractMatrixWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKAbstractMatrixWidgetEventTranslatorPlayerTest1(int argc, char * argv [
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKAbstractMatrixWidget* widget = new ctkVTKAbstractMatrixWidget();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKAbstractViewEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKAbstractView.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKAbstractViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKAbstractView* widget = new ctkVTKAbstractView();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKChartViewEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKChartView.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKChartViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKChartView* widget = new ctkVTKChartView();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetArrayComboBoxEventTranslatorPlayerTest1.cpp

@@ -42,6 +42,9 @@
 #include "ctkVTKDataSetArrayComboBox.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -68,6 +71,8 @@ int ctkVTKDataSetArrayComboBoxEventTranslatorPlayerTest1(int argc, char * argv [
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   vtkSmartPointer<vtkPolyData> dataSet =

+ 2 - 2
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetArrayComboBoxEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKDataSetArrayComboBox0" command="set_string" arguments="Floats"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKDataSetArrayComboBox0" command="set_string" arguments="Ints"/>
@@ -7,4 +7,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKDataSetArrayComboBox0" command="set_string" arguments="Ints"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKDataSetArrayComboBox0" command="set_string" arguments="Floats"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetModelEventTranslatorPlayerTest1.cpp

@@ -43,6 +43,9 @@
 #include "ctkVTKDataSetModel.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -69,6 +72,8 @@ int ctkVTKDataSetModelEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   vtkSmartPointer<vtkPolyData> dataSet =

+ 2 - 2
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKDataSetModelEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QComboBox0" command="set_string" arguments="Floats"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QComboBox0" command="set_string" arguments="Ints"/>
@@ -7,4 +7,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QComboBox0" command="set_string" arguments="Ints"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QComboBox0" command="set_string" arguments="Floats"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKMagnifyViewEventTranslatorPlayerTest1.cpp

@@ -33,6 +33,9 @@
 #include "ctkVTKMagnifyView.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // VTK includes
 #include <QVTKWidget.h>
 
@@ -65,6 +68,8 @@ int ctkVTKMagnifyViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKMagnifyView* widget = new ctkVTKMagnifyView();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKMatrixWidgetEventTranslatorPlayerTest1.cpp

@@ -33,6 +33,9 @@
 #include "ctkCallback.h"
 #include "ctkConfig.h"
 #include "ctkEventTranslatorPlayerWidget.h"
+
+// QtTesting includes
+#include "pqTestUtility.h"
 #include "ctkMatrixWidgetEventPlayer.h"
 #include "ctkMatrixWidgetEventTranslator.h"
 #include "ctkVTKMatrixWidget.h"
@@ -63,6 +66,8 @@ int ctkVTKMatrixWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventTranslator(new ctkMatrixWidgetEventTranslator);
   etpWidget.addWidgetEventPlayer(new ctkMatrixWidgetEventPlayer);
 

+ 2 - 2
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKMatrixWidgetEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKMatrixWidget0" command="set_values" arguments="1 0 0 0 2 1 0 0 0 0 1 0 0 0 0 1"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget" command="mousePress" arguments="1,1,0,379,117"/>
@@ -7,4 +7,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKMatrixWidget0" command="set_values" arguments="1 0 0 0 2 1 0 0 -0.14 0 1 0 0 0 0 1"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKMatrixWidget0" command="set_values" arguments="1 0 0 5 2 1 0 0 -0.14 0 1 0 0 0 0 1"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKRenderViewEventTranslatorPlayerTest1.cpp

@@ -102,6 +102,8 @@ int ctkVTKRenderViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventTranslator(new ctkVTKRenderViewEventTranslator("QVTKWidget"));
   etpWidget.addWidgetEventPlayer(new ctkVTKRenderViewEventPlayer("QVTKWidget"));
 

+ 2 - 2
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKRenderViewEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -840,4 +840,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKRenderView0/1QVTKWidget0" command="mouseMove" arguments="(0.450628,-0.422886,0,1,0)"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkVTKRenderView0/1QVTKWidget0" command="mouseRelease" arguments="(0.450628,-0.422886,1,0,0)"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarBarWidgetEventTranslatorPlayerTest1.cpp

@@ -36,6 +36,9 @@
 #include "ctkVTKScalarBarWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -63,6 +66,8 @@ int ctkVTKScalarBarWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   vtkSmartPointer<vtkScalarBarWidget> scalarBar =

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarsToColorsUtilsEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKScalarsToColorsUtils.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKScalarsToColorsUtilsEventTranslatorPlayerTest1(int argc, char * argv [
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKScalarsToColorsUtils* widget = new ctkVTKScalarsToColorsUtils();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarsToColorsViewEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKScalarsToColorsView.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKScalarsToColorsViewEventTranslatorPlayerTest1(int argc, char * argv []
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKScalarsToColorsView* widget = new ctkVTKScalarsToColorsView();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKScalarsToColorsWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKScalarsToColorsWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKScalarsToColorsWidgetEventTranslatorPlayerTest1(int argc, char * argv
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKScalarsToColorsWidget* widget = new ctkVTKScalarsToColorsWidget();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKSliceViewEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKSliceView.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKSliceViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKSliceView* widget = new ctkVTKSliceView();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKSurfaceMaterialPropertyWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKSurfaceMaterialPropertyWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKSurfaceMaterialPropertyWidgetEventTranslatorPlayerTest1(int argc, char
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKSurfaceMaterialPropertyWidget* widget = new ctkVTKSurfaceMaterialPropertyWidget();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKTextPropertyWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKTextPropertyWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -59,6 +62,8 @@ int ctkVTKTextPropertyWidgetEventTranslatorPlayerTest1(int argc, char * argv []
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKTextPropertyWidget* widget = new ctkVTKTextPropertyWidget(0);

+ 2 - 2
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKTextPropertyWidgetEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -45,4 +45,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/ctkVTKTextPropertyWidget/ItalicCheckBox" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/ctkVTKTextPropertyWidget/BoldCheckBox" command="set_boolean" arguments="true"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThresholdWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKThresholdWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKThresholdWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKThresholdWidget* widget = new ctkVTKThresholdWidget();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKThumbnailViewEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKThumbnailView.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKThumbnailViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKThumbnailView* widget = new ctkVTKThumbnailView();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKVolumePropertyWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKVolumePropertyWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKVolumePropertyWidgetEventTranslatorPlayerTest1(int argc, char * argv [
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKVolumePropertyWidget* widget = new ctkVTKVolumePropertyWidget();

+ 5 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/ctkVTKWidgetsUtilsEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkVTKWidgetsUtils.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkVTKWidgetsUtilsEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkVTKWidgetsUtils* widget = new ctkVTKWidgetsUtils();

+ 1 - 1
Libs/Widgets/Testing/Cpp/CMakeLists.txt

@@ -164,7 +164,7 @@ set(Tests_MOC_SRCS
   )
 
 if(CTK_USE_QTTESTING)
-  ctkQtTesting(Tests_SRCS Tests_MOC_CPP Tests_UI_FORMS)
+  ctkQtTesting(Tests_SRCS Tests_MOC_SRCS Tests_UI_FORMS)
 endif()
 
 set(Tests_MOC_CPP)

+ 6 - 0
Libs/Widgets/Testing/Cpp/ctkActionsWidgetEventTranslatorPlayerTest1.cpp

@@ -31,8 +31,12 @@
 #include <ctkCallback.h>
 #include <ctkConfig.h>
 #include "ctkEventTranslatorPlayerWidget.h"
+
 #include "ctkSetName.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -57,6 +61,8 @@ int ctkActionsWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkActionsWidget* widget = new ctkActionsWidget() << ctkSetName("actionsWidget");

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkActionsWidgetEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -39,4 +39,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/actionsWidget/1QTreeView0" command="collapse" arguments="0.0"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/actionsWidget/1QTreeView0" command="expand" arguments="0.0"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkAddRemoveComboBoxEventTranslatorPlayerTest1.cpp

@@ -29,6 +29,9 @@
 #include <ctkConfig.h>
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -53,6 +56,8 @@ int ctkAddRemoveComboBoxEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkAddRemoveComboBox* widget = new ctkAddRemoveComboBox();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkAddRemoveComboBoxEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/ctkAddRemoveComboBox/ComboBox" command="set_string" arguments="Item2"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/ctkAddRemoveComboBox/ComboBox" command="set_string" arguments="Item3"/>
@@ -11,4 +11,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/ctkAddRemoveComboBox/EditPushButton" command="activate" arguments=""/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/ctkAddRemoveComboBox/ComboBox" command="set_string" arguments="Item2"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkAxesWidgetEventTranslatorPlayerTest1.cpp

@@ -31,6 +31,9 @@
 #include <ctkConfig.h>
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -62,6 +65,8 @@ int ctkAxesWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventPlayer(new ctkAxesWidgetEventPlayer);
   etpWidget.addWidgetEventTranslator(new ctkAxesWidgetEventTranslator);
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkAxesWidgetEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkAxesWidget0" command="mousePress" arguments="(0.615385,0.512111,1,1,0)"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkAxesWidget0" command="mouseRelease" arguments="(0.615385,0.512111,1,0,0)"/>
@@ -18,4 +18,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkAxesWidget0" command="mousePress" arguments="(0.653846,0.487889,1,1,0)"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkAxesWidget0" command="mouseRelease" arguments="(0.653846,0.487889,1,0,0)"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkBasePopupWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkBasePopupWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -56,6 +59,8 @@ int ctkBasePopupWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkBasePopupWidget* widget = new ctkBasePopupWidget();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkButtonGroupEventTranslatorPlayerTest1.cpp

@@ -35,6 +35,9 @@
 #include "ctkButtonGroup.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -73,6 +76,8 @@ int ctkButtonGroupEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   QWidget widget(0);

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkButtonGroupEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1QPushButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1QPushButton2" command="activate" arguments=""/>
@@ -11,4 +11,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1QPushButton1" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1QPushButton0" command="set_boolean" arguments="true"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCheckBoxPixmapsEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkCheckBoxPixmaps.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkCheckBoxPixmapsEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkCheckBoxPixmaps* widget = new ctkCheckBoxPixmaps();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCheckableComboBoxEventTranslatorPlayerTest1.cpp

@@ -36,6 +36,9 @@
 #include "ctkCheckableComboBoxEventTranslator.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -81,6 +84,8 @@ int ctkCheckableComboBoxEventTranslatorPlayerTest1(int argc, char * argv [])
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventTranslator(new ctkCheckableComboBoxEventTranslator);
   etpWidget.addWidgetEventPlayer(new ctkCheckableComboBoxEventPlayer);
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCheckableComboBoxEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckableComboBox0" command="check_indexes" arguments="0"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckableComboBox0" command="check_indexes" arguments="0 1"/>
@@ -17,4 +17,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckableComboBox0" command="uncheck_indexes" arguments="1 2"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckableComboBox0" command="check_indexes" arguments="0 2 3"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCheckableComboBoxEventTranslatorPlayerTest2.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckableComboBox0" command="uncheck_indexes" arguments="0 2 3"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckableComboBox0" command="check_indexes" arguments="1 2"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCheckableHeaderViewEventTranslatorPlayerTest1.cpp

@@ -36,6 +36,9 @@
 #include "ctkCheckableHeaderViewEventTranslator.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -71,6 +74,8 @@ int ctkCheckableHeaderViewEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventTranslator(new ctkCheckableHeaderViewEventTranslator);
   etpWidget.addWidgetEventPlayer(new ctkCheckableHeaderViewEventPlayer);
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCheckableHeaderViewEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QTableView0/1ctkCheckableHeaderView0" command="mousePress" arguments="1,1,0,0,0,0"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QTableView0/1ctkCheckableHeaderView0" command="mouseRelease" arguments="1,0,0,0,0,0"/>
@@ -44,4 +44,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QTableView0/1ctkCheckableHeaderView0" command="set_section_unchecked" arguments="1"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QTableView0/1ctkCheckableHeaderView0" command="set_section_unchecked" arguments="1"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest1.cpp

@@ -35,6 +35,9 @@
 #include "ctkCheckablePushButton.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -90,6 +93,8 @@ int ctkCheckablePushButtonEventTranslatorPlayerTest1(int argc, char * argv [])
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkCheckablePushButton* widget = new ctkCheckablePushButton();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckablePushButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckablePushButton0" command="set_boolean" arguments="false"/>
@@ -7,4 +7,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckablePushButton0" command="set_boolean" arguments="false"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCheckablePushButton0" command="set_boolean" arguments="true"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton0" command="set_boolean" arguments="false"/>
@@ -7,4 +7,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton0" command="set_boolean" arguments="false"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton0" command="set_boolean" arguments="true"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCheckablePushButtonEventTranslatorPlayerTest3.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton1" command="set_boolean" arguments="true"/>
@@ -11,4 +11,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton1" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCheckablePushButton1" command="set_boolean" arguments="false"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCollapsibleButtonEventTranslatorPlayerTest1.cpp

@@ -35,6 +35,9 @@
 #include "ctkCollapsibleButton.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -62,6 +65,8 @@ int ctkCollapsibleButtonEventTranslatorPlayerTest1(int argc, char * argv [])
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkCollapsibleButton* widget = new ctkCollapsibleButton();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCollapsibleButtonEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCollapsibleButton0/1ctkCollapsibleButton1" command="set_boolean" arguments="false"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCollapsibleButton0/1ctkCollapsibleButton1" command="set_boolean" arguments="true"/>
@@ -9,4 +9,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCollapsibleButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCollapsibleButton0" command="set_boolean" arguments="false"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCollapsibleGroupBoxEventTranslatorPlayerTest1.cpp

@@ -36,6 +36,9 @@
 #include "ctkCollapsibleGroupBox.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -73,6 +76,8 @@ int ctkCollapsibleGroupBoxEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   QWidget widget(0);

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCollapsibleGroupBoxEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCollapsibleGroupBox0/1ctkCollapsibleGroupBox0" command="mousePress" arguments="1,1,0,13,8"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCollapsibleGroupBox0/1ctkCollapsibleGroupBox0" command="mouseRelease" arguments="1,0,0,13,8"/>
@@ -17,4 +17,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCollapsibleGroupBox0/1ctkCollapsibleGroupBox0" command="mousePress" arguments="1,1,0,14,6"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkCollapsibleGroupBox0/1ctkCollapsibleGroupBox0" command="mouseRelease" arguments="1,0,0,14,6"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkColorDialogEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkColorDialog.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -58,6 +61,8 @@ int ctkColorDialogEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkColorDialog* widget = new ctkColorDialog();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkColorDialogEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -22,4 +22,4 @@
         <event widget="1ctkColorDialog0/1QColorPicker0" command="mouseRelease" arguments="1,0,0,160,48"/>
         <event widget="1ctkColorDialog0/1QDialogButtonBox0/1QPushButton0" command="activate" arguments=""/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest1.cpp

@@ -33,6 +33,9 @@
 #include "ctkColorPickerButton.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -89,6 +92,8 @@ int ctkColorPickerButtonEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkColorPickerButton* widget = new ctkColorPickerButton("Select a color");

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -23,4 +23,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkColorPickerButton0/1QColorDialog0/1QColorShower0/1QSpinBox5" command="set_int" arguments="80"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkColorPickerButton0/1QColorDialog0/1QDialogButtonBox0/1QPushButton0" command="activate" arguments=""/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -15,4 +15,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkColorPickerButton0/1QColorDialog0/1QWellArray0" command="mouseRelease" arguments="1,0,0,96,87"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkColorPickerButton0/1QColorDialog0/1QDialogButtonBox0/1QPushButton0" command="activate" arguments=""/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkColorPickerButtonEventTranslatorPlayerTest3.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -21,4 +21,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkColorPickerButton1/1QColorDialog0/1QColorPicker0" command="mouseRelease" arguments="1,0,0,85,64"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkColorPickerButton1/1QColorDialog0/1QDialogButtonBox0/1QPushButton0" command="activate" arguments=""/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkComboBoxEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkComboBox.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -56,6 +59,8 @@ int ctkComboBoxEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkComboBox* widget = new ctkComboBox();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkComboBoxEventTranslatorPlayerTest1.xml

@@ -1,9 +1,9 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkComboBox0" command="set_string" arguments="item 2"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkComboBox0" command="set_string" arguments="item 3"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkComboBox0" command="set_string" arguments="item 4"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkComboBox0" command="set_string" arguments="item 5"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCompleterEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkCompleter.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkCompleterEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkCompleter* widget = new ctkCompleter();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkConfirmExitDialogEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkConfirmExitDialog.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkConfirmExitDialogEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkConfirmExitDialog* widget = new ctkConfirmExitDialog();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkConsoleEventTranslatorPlayerTest1.cpp

@@ -34,6 +34,9 @@
 #include "ctkConsoleEventTranslator.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -57,6 +60,8 @@ int ctkConsoleEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventTranslator(new ctkConsoleEventTranslator());
   etpWidget.addWidgetEventPlayer(new ctkConsoleEventPlayer());
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkConsoleEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -13,4 +13,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkConsole0" command="command" arguments=""/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkConsole0" command="command" arguments="test"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCoordinatesWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkCoordinatesWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -58,6 +61,8 @@ int ctkCoordinatesWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkCoordinatesWidget* widget = new ctkCoordinatesWidget();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkCoordinatesWidgetEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCoordinatesWidget0/1QDoubleSpinBox0" command="spin" arguments="up"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCoordinatesWidget0/1QDoubleSpinBox0" command="spin" arguments="up"/>
@@ -13,4 +13,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCoordinatesWidget0/1QDoubleSpinBox0" command="spin" arguments="down"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkCoordinatesWidget0/1QDoubleSpinBox0" command="spin" arguments="down"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkCrosshairLabelEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkCrosshairLabelDDDD.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkCrosshairLabelDDDDEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkCrosshairLabelDDDD* widget = new ctkCrosshairLabelDDDD();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkDateRangeWidgetEventTranslatorPlayerTest1.cpp

@@ -33,6 +33,9 @@
 #include "ctkEventTranslatorPlayerWidget.h"
 #include "ctkSetName.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -58,6 +61,8 @@ int ctkDateRangeWidgetEventTranslatorPlayerTest1(int argc, char * argv [])
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkDateRangeWidget* widget = new ctkDateRangeWidget() << ctkSetName("dateRangeWidget");

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDateRangeWidgetEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/dateRangeWidget/TodayRadioButton" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/dateRangeWidget/YesterdayRadioButton" command="set_boolean" arguments="true"/>
@@ -31,4 +31,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/dateRangeWidget/DateRangeWidget/EndDate/qt_datetimedit_calendar/1QCalendarWidget0/qt_calendar_calendarview" command="mousePress" arguments="1,1,0,17,10,/2:4"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/dateRangeWidget/DateRangeWidget/EndDate/qt_datetimedit_calendar/1QCalendarWidget0/qt_calendar_calendarview" command="mouseRelease" arguments="1,0,0,17,10,/2:4"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkDirectoryButtonEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkDirectoryButton.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -56,6 +59,8 @@ int ctkDirectoryButtonEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkDirectoryButton* widget = new ctkDirectoryButton();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDirectoryButtonEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDirectoryButton0/1QPushButton0" command="activate" arguments=""/>
         <event widget="ctkDirectoryButtonEventTranslatorPlayerTest1-app" command="DirOpen" arguments="/home/benjaminlong/work"/>
@@ -8,4 +8,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDirectoryButton0/1QPushButton0" command="activate" arguments=""/>
         <event widget="ctkDirectoryButtonEventTranslatorPlayerTest1-app" command="DirOpen" arguments="/home/benjaminlong"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest1.cpp

@@ -35,6 +35,9 @@
 #include "ctkEventTranslatorPlayerWidget.h"
 #include "ctkSetName.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -74,6 +77,8 @@ int ctkDoubleRangeSliderEventTranslatorPlayerTest1(int argc, char * argv [])
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventTranslator(new ctkDoubleRangeSliderEventTranslator);
   etpWidget.addWidgetEventPlayer(new ctkDoubleRangeSliderEventPlayer);
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider1" command="set_max_double" arguments="98"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider1" command="set_max_double" arguments="97"/>
@@ -100,4 +100,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider1" command="set_min_double" arguments="20"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider1" command="set_min_double" arguments="19"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider2" command="set_max_double" arguments="98"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider2" command="set_max_double" arguments="97"/>
@@ -104,4 +104,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider2" command="set_min_double" arguments="18"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/doubleRangeSlider2" command="set_min_double" arguments="17"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDoubleRangeSliderEventTranslatorPlayerTest3.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleRangeSlider0" command="set_max_double" arguments="9.11"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleRangeSlider0" command="set_max_double" arguments="8.22"/>
@@ -75,4 +75,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleRangeSlider0" command="set_min_double" arguments="-48.9"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleRangeSlider0" command="set_min_double" arguments="-49.79"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkDoubleSliderEventTranslatorPlayerTest1.cpp

@@ -29,6 +29,9 @@
 #include <ctkConfig.h>
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -59,6 +62,8 @@ int ctkDoubleSliderEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkDoubleSlider* widget = new ctkDoubleSlider();

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDoubleSliderEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="1"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="2"/>
@@ -140,4 +140,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="61"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="60"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkDoubleSliderEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="-44"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="-43"/>
@@ -105,4 +105,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="-30"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkDoubleSlider0/1QSlider0" command="set_int" arguments="-31"/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkDynamicSpacerEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkDynamicSpacer.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkDirectoryButtonEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkDynamicSpacer* widget = new ctkDynamicSpacer();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkErrorLogStatusMessageHandlerEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkErrorLogStatusMessageHandler.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkErrorLogStatusMessageHandlerEventTranslatorPlayerTest1(int argc, char * a
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkErrorLogStatusMessageHandler* widget = new ctkErrorLogStatusMessageHandler();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkErrorLogWidgetEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkErrorLogWidget.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkErrorLogWidgetEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkErrorLogWidget* widget = new ctkErrorLogWidget();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkExpandButtonEventTranslatorPlayerTest1.cpp

@@ -34,6 +34,9 @@
 #include "ctkExpandButton.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -66,6 +69,8 @@ int ctkExpandButtonEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   QWidget* widget = new QWidget(0);

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkExpandButtonEventTranslatorPlayerTest1.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkExpandButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkExpandButton0" command="set_boolean" arguments="false"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkExpandButton0" command="set_boolean" arguments="true"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkExpandButtonEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkExpandButton0" command="set_boolean" arguments="true"/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1ctkExpandButton0" command="set_boolean" arguments="false"/>
@@ -7,4 +7,4 @@
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1QPushButton1" command="activate" arguments=""/>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1QWidget0/1QPushButton0" command="activate" arguments=""/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest1.cpp

@@ -36,6 +36,9 @@
 #include "ctkFileDialogEventTranslator.h"
 #include "ctkSetName.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -96,6 +99,8 @@ int ctkFileDialogEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventPlayer(new ctkFileDialogEventPlayer(etpWidget.testUtility()));
   etpWidget.addWidgetEventTranslator(new ctkFileDialogEventTranslator(etpWidget.testUtility()));
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -14,4 +14,4 @@
         <event widget="fileDialog1/checkBox1" command="set_boolean" arguments="true"/>
         <event widget="fileDialog1" command="newFile" arguments="/home/benjaminlong/Documents/ctk-QtTesting-renderView/ctkVTKRenderViewEventTranslatorPlayerTest1Screenshot.png#/home/benjaminlong/Documents/ctk-QtTesting-renderView/ctkVTKRenderViewEventTranslatorPlayerTest1ScreenshotTest.png"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -16,4 +16,4 @@
         <event widget="fileDialog2/checkBox2" command="set_boolean" arguments="true"/>
         <event widget="fileDialog2" command="newFile" arguments="/home/benjaminlong/GroupBox.png"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkFileDialogEventTranslatorPlayerTest3.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -17,4 +17,4 @@
         <event widget="fileDialog3/checkBox3" command="set_boolean" arguments="true"/>
         <event widget="fileDialog3" command="rejected" arguments=""/>
     </events>
-</xml>
+</QtTesting>

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkFittedTextBrowserEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkFittedTextBrowser.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkFittedTextBrowserEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkFittedTextBrowser* widget = new ctkFittedTextBrowser();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkFlowLayoutEventTranslatorPlayerTest1.cpp

@@ -32,6 +32,9 @@
 #include "ctkFlowLayout.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -55,6 +58,8 @@ int ctkFlowLayoutEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
 
   // Test case 1
   ctkFlowLayout* widget = new ctkFlowLayout();

+ 5 - 0
Libs/Widgets/Testing/Cpp/ctkFontButtonEventTranslatorPlayerTest1.cpp

@@ -34,6 +34,9 @@
 #include "ctkFontButtonEventTranslator.h"
 #include "ctkEventTranslatorPlayerWidget.h"
 
+// QtTesting includes
+#include "pqTestUtility.h"
+
 // STD includes
 #include <cstdlib>
 #include <iostream>
@@ -73,6 +76,8 @@ int ctkFontButtonEventTranslatorPlayerTest1(int argc, char * argv [] )
 
   // ------------------------
   ctkEventTranslatorPlayerWidget etpWidget;
+  pqTestUtility* testUtility = new pqTestUtility(&etpWidget);
+  etpWidget.setTestUtility(testUtility);
   etpWidget.addWidgetEventPlayer(new ctkFontButtonEventPlayer);
   etpWidget.addWidgetEventTranslator(new ctkFontButtonEventTranslator);
 

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkFontButtonEventTranslatorPlayerTest1.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -10,4 +10,4 @@
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkFontButton0" command="newFont" arguments="Lohit Bengali,9,-1,5,50,2,1,0,0,0"/>
     </events>
-</xml>
+</QtTesting>

+ 2 - 2
Libs/Widgets/Testing/Cpp/ctkFontButtonEventTranslatorPlayerTest2.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xml>
+<QtTesting>
     <settings>
         <name widget="qApp" command="applicationName" arguments=""/>
         <version widget="qApp" command="applicationVersion" arguments=""/>
@@ -10,4 +10,4 @@
     <events>
         <event widget="ctkEventTranslatorPlayerWidget/centralwidget/stackedWidget/1ctkFontButton0" command="newFont" arguments="Ubuntu,36,-1,5,50,1,1,1,0,0"/>
     </events>
-</xml>
+</QtTesting>

+ 0 - 0
Libs/Widgets/Testing/Cpp/ctkIconEnginePluginEventTranslatorPlayerTest1.cpp


Some files were not shown because too many files changed in this diff