Documentation/Widget testing

From Commontk
Jump to navigationJump to search

Back to CTK Documentation

Overview

Testing of both CTK widgets and application built on top of CTK could leverage the capabilities offered by the QtTesting library developed by Paraview folks.


If the option CTK_USE_QTTESTING is enabled, the build system will:

  • Download external project QtTesting
  • Include the event translator and player required for custom CTK widgets. (Located in the same folder as their associated widget sources)
  • Include the class ctkEventTranslaterPlayerWidget into CTKWidgets library
  • If BUILD_TESTING is enabled: CTK widgets EventTranslatorTests will be compiled. These tests will use ctkEventTranslaterPlayerWidget and ensure that events associated with CTK widgets can be properly recorded and played.


Note Note: Option CTK_USE_QTTESTING will be automatically enabled if BUILD_TESTING is ON

Milestones

  1. Integration: What and where.
  2. Integrate QtTesting has an external projects
  3. Implement ctkEventTranslaterPlayerWidget
  4. Create custom translator/player if needed
  5. Implement widgets EventTranslatorTests

Player/Translators Widget Testing

CTK Widgets :


  1. ctkModalityWidget
  2. ctkPathLineEdit
  3. ctkPixmapIconEngine
  4. ctkPopupWidget
  5. ctkQImageView
  6. ctkRangeSlider
  7. ctkRangeWidget
  8. ctkScreenshotDialog
  9. ctkSearchBox
  10. ctkSettings
  11. ctkSettingsDialog
  12. ctkSettingsPanel
  13. ctkSignalMapper
  14. ctkSimpleLayoutManager
  15. ctkSliderWidget
  16. ctkTestApplication
  17. ctkThumbnailListWidget
  18. ctkThumbnailWidget
  19. ctkToolTipTrapper
  20. ctkTransferFunctionBarsItem
  21. ctkTransferFunctionControlPointsItem
  22. ctkTransferFunctionGradientItem
  23. ctkTransferFunctionItem
  24. ctkTransferFunctionScene
  25. ctkTransferFunctionView
  26. ctkTreeComboBox
  27. ctkWidgetsUtils
  28. ctkWorkflowAbstractPagedWidget
  29. ctkWorkflowButtonBoxWidget
  30. ctkWorkflowGroupBox
  31. ctkWorkflowStackedWidget
  32. ctkWorkflowTabWidget
  33. ctkWorkflowWidget
  34. ctkWorkflowWidgetStep
Titre du tableau
Widgets States Notes Widgets States Notes
ctkActionsWidget
ctkAddRemoveComboBox
ctkAxesWidget
ctkBasePopupWidget
ctkButtonGroup
ctkCheckableComboBox
ctkCheckableHeaderView
ctkCheckBoxPixmaps
ctkCheckablePushButton
ctkComboBox
ctkCompleter
ctkCollapsibleButton
ctkCollapsibleGroupBox
ctkColorDialog
ctkColorPickerButton
ctkConsole
ctkConfirmExitDialog
ctkCoordinatesWidget
ctkCrosshairLabel
ctkDateRangeWidget
ctkDirectoryButton
ctkDoubleRangeSlider
ctkDoubleSlider
ctkDynamicSpacer
ctkErrorLogStatusMessageHandler
ctkErrorLogWidget
ctkExpandButton
ctkFileDialog
ctkFittedTextBrowser
ctkFlowLayout
ctkFontButton
ctkIconEnginePlugin
ctkLayoutManager
ctkMaterialPropertyPreviewLabel
ctkMaterialPropertyWidget
ctkMatrixWidget
ctkMenuButton
ctkMenuComboBox

Screenshots