Documentation/Widget testing

From Commontk
Jump to navigationJump to search
Home < Documentation < Widget testing

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. Yes check.png
  2. Integrate QtTesting has an external projects Yes check.png
  3. Implement ctkEventTranslaterPlayerWidget Znak A-14.png
  4. Create custom translator/player if needed Znak A-14.png
  5. Implement widgets EventTranslatorTests Znak A-14.png

Player/Translators Widget Testing

CTK Widgets :


  1. ctkActionsWidgetYes check.png
  2. ctkAddRemoveComboBoxYes check.png
  3. ctkAxesWidgetYes check.png
  4. ctkBasePopupWidgetX mark.png
  5. ctkButtonGroup X mark.png
  6. ctkCheckableComboBoxX mark.png
  7. ctkCheckableHeaderViewX mark.png
  8. ctkCheckBoxPixmapsX mark.png
  9. ctkCheckablePushButtonX mark.png
  10. ctkComboBoxX mark.png
  11. ctkCompleterX mark.png
  12. ctkCollapsibleButtonX mark.png
  13. ctkCollapsibleGroupBoxX mark.png
  14. ctkColorDialogX mark.png
  15. ctkColorPickerButtonX mark.png
  16. ctkConsoleX mark.png
  17. ctkConfirmExitDialogX mark.png
  18. ctkCoordinatesWidgetX mark.png
  19. ctkCrosshairLabelX mark.png
  20. ctkDateRangeWidgetX mark.png
  21. ctkDirectoryButtonX mark.png
  22. ctkDoubleRangeSliderX mark.png
  23. ctkDoubleSliderX mark.png
  24. ctkDynamicSpacerX mark.png
  25. ctkErrorLogStatusMessageHandlerX mark.png
  26. ctkErrorLogWidgetX mark.png
  27. ctkExpandButtonX mark.png
  28. ctkFileDialogX mark.png
  29. ctkFittedTextBrowserX mark.png
  30. ctkFlowLayoutX mark.png
  31. ctkFontButtonX mark.png
  32. ctkIconEnginePluginX mark.png
  33. ctkLayoutManagerX mark.png
  34. ctkMaterialPropertyPreviewLabelX mark.png
  35. ctkMaterialPropertyWidgetX mark.png
  36. ctkMatrixWidgetX mark.png
  37. ctkMenuButtonX mark.png
  38. ctkMenuComboBoxX mark.png
  39. ctkModalityWidgetX mark.png
  40. ctkPathLineEditX mark.png
  41. ctkPixmapIconEngineX mark.png
  42. ctkPopupWidgetX mark.png
  43. ctkQImageViewX mark.png
  44. ctkRangeSliderX mark.png
  45. ctkRangeWidgetX mark.png
  46. ctkScreenshotDialogX mark.png
  47. ctkSearchBoxX mark.png
  48. ctkSettingsX mark.png
  49. ctkSettingsDialogX mark.png
  50. ctkSettingsPanelX mark.png
  51. ctkSignalMapperX mark.png
  52. ctkSimpleLayoutManagerX mark.png
  53. ctkSliderWidgetX mark.png
  54. ctkTestApplicationX mark.png
  55. ctkThumbnailListWidgetX mark.png
  56. ctkThumbnailWidgetX mark.png
  57. ctkToolTipTrapperX mark.png
  58. ctkTransferFunctionBarsItemX mark.png
  59. ctkTransferFunctionControlPointsItemX mark.png
  60. ctkTransferFunctionGradientItemX mark.png
  61. ctkTransferFunctionItemX mark.png
  62. ctkTransferFunctionSceneX mark.png
  63. ctkTransferFunctionViewX mark.png
  64. ctkTreeComboBoxX mark.png
  65. ctkWidgetsUtilsX mark.png
  66. ctkWorkflowAbstractPagedWidgetX mark.png
  67. ctkWorkflowButtonBoxWidgetX mark.png
  68. ctkWorkflowGroupBoxX mark.png
  69. ctkWorkflowStackedWidgetX mark.png
  70. ctkWorkflowTabWidgetX mark.png
  71. ctkWorkflowWidgetX mark.png
  72. ctkWorkflowWidgetStepX mark.png

Screenshots