QtTesting issueshttps://gitlab.kitware.com/paraview/qttesting/-/issues2023-12-12T04:31:23-05:00https://gitlab.kitware.com/paraview/qttesting/-/issues/33Setup a CI2023-12-12T04:31:23-05:00Nicolas VuailleSetup a CIIt should be nice to improve our testing suite, starting by having some CI jobs.
* [x] linux !75
* [ ] windows
* [ ] macosIt should be nice to improve our testing suite, starting by having some CI jobs.
* [x] linux !75
* [ ] windows
* [ ] macoshttps://gitlab.kitware.com/paraview/qttesting/-/issues/31License/Copyright should be updated2023-11-24T03:58:55-05:00Mathieu Westphal (Kitware)License/Copyright should be updatedParaView updated license and copyright style, QtTesting should update as well.ParaView updated license and copyright style, QtTesting should update as well.https://gitlab.kitware.com/paraview/qttesting/-/issues/30Non determinist behavior with radio button2023-05-04T05:20:39-04:00Nicolas VuailleNon determinist behavior with radio buttonThe ParaView test https://gitlab.kitware.com/paraview/paraview/-/blob/ad24005bfcf94d89b7b636d063317763c5ee5785/Clients/ParaView/Testing/XML/TimeKeeper.xml#L39 is flaky.
At the pointed line, a QRadioButton is toggled with `set_boolean` c...The ParaView test https://gitlab.kitware.com/paraview/paraview/-/blob/ad24005bfcf94d89b7b636d063317763c5ee5785/Clients/ParaView/Testing/XML/TimeKeeper.xml#L39 is flaky.
At the pointed line, a QRadioButton is toggled with `set_boolean` command. Very often (50% of time), the UI is not correctly updated and test fails:
- button state is not changed (but a `pqcheck` command does not fail ...)
- the `tableView` that should be updated from `toggled` signal is not, so further indices are wrong on replay.
```
critical: ERROR: Abstract Item view must have changed. Indices recorded in the test are no longer valid. Cannot playback.
```https://gitlab.kitware.com/paraview/qttesting/-/issues/29Top level menu accesses are not recorded on macOS2022-06-21T04:06:09-04:00Cory Quammencory.quammen@kitware.comTop level menu accesses are not recorded on macOSWhen recording a test, top-level menu accesses are not recorded on macOS.When recording a test, top-level menu accesses are not recorded on macOS.https://gitlab.kitware.com/paraview/qttesting/-/issues/28Menu and modal widgets should be closed at the end of the test2022-06-21T04:02:16-04:00Lucas GivordMenu and modal widgets should be closed at the end of the testIt seems that QtTesting play event doesn't close QToolButton menu at the end of the test, letting the application wait for an interaction to close it or for the test timeout to be reached.
How to reproduce :
* Create a xml test on 'Tog...It seems that QtTesting play event doesn't close QToolButton menu at the end of the test, letting the application wait for an interaction to close it or for the test timeout to be reached.
How to reproduce :
* Create a xml test on 'Toggle column visibility' in spreadSheet
![Screenshot_from_2022-01-17_11-06-06](https://gitlab.kitware.com/paraview/paraview/uploads/bf39ccfe87e4d63411c91276d4a89dec/Screenshot_from_2022-01-17_11-06-06.png)
* play this test or used ctest, the test will not end until the user clicks somewhere or the timeout is reached.https://gitlab.kitware.com/paraview/qttesting/-/issues/26Port to `find_package(Python)`2020-12-10T22:06:32-05:00Kitware RobotPort to `find_package(Python)`**This issue was created automatically from an original [Mantis Issue](http://paraview.org/Bug/view.php?id=15108). Further discussion may take place here.**
---
The deprecated PYTHON_INCLUDE_PATH variable is found in ThirdParty/QtTesti...**This issue was created automatically from an original [Mantis Issue](http://paraview.org/Bug/view.php?id=15108). Further discussion may take place here.**
---
The deprecated PYTHON_INCLUDE_PATH variable is found in ThirdParty/QtTesting/vtkqttesting/CMakeLists.txt. Shouldn't it actually be PYTHON_INCLUDE_DIR?https://gitlab.kitware.com/paraview/qttesting/-/issues/25Record and play back render-window pick events.2020-02-07T08:49:29-05:00David ThompsonRecord and play back render-window pick events.While the testing framework records keypresses corresponding to pick events, their playback does not result in picks. This prevents us from testing that 3-D widgets respond to point picking and snapping.While the testing framework records keypresses corresponding to pick events, their playback does not result in picks. This prevents us from testing that 3-D widgets respond to point picking and snapping.https://gitlab.kitware.com/paraview/qttesting/-/issues/23ParaView/VTK active view is not tracked by playback2019-10-07T15:09:20-04:00Aron HelserParaView/VTK active view is not tracked by playbackWhile working on #22 , found that the active view is not tracked, unless the view records a mouse-click. SpreadSheet views record higher level events, like `setCurrent`. That means when replaying a recorded test, there is no way to activ...While working on #22 , found that the active view is not tracked, unless the view records a mouse-click. SpreadSheet views record higher level events, like `setCurrent`. That means when replaying a recorded test, there is no way to activate the spreadsheet view again once a render view has been clicked on.
In particular, if the spreadsheet is not active, this causes the multi-select events not to replay correctly.
`pqMultiViewWidget::eventFilter` sets the active view based on `MouseButtonPress`. I see two approaches:
* Detect that the `setCurrent` event should activate a view, and recorded an `activateView` event, or a `MouseButtonPress` event
* Install an observer to record `activateView`, like `pqDataInformationWidget` does:
```
QObject::connect(&pqActiveObjects::instance(), SIGNAL(viewChanged(pqView*)), this->Model,
SLOT(setActiveView(pqView*)));
```https://gitlab.kitware.com/paraview/qttesting/-/issues/21QLineEdit does not record well events2020-11-23T16:17:21-05:00Edern HaumontQLineEdit does not record well eventsQLineEdit (and maybe other edit fields) should choose between
- [high-level] only recording "text edited" events
- [low-level] recording all key events and cursor move events
At the moment both are mixed, pressing a key that adds a char...QLineEdit (and maybe other edit fields) should choose between
- [high-level] only recording "text edited" events
- [low-level] recording all key events and cursor move events
At the moment both are mixed, pressing a key that adds a character records a "set_string" command, while pressing any other key records a "key" event. Moreover if these key depend on the cursor position, they may not be replayed correctly.
Example:
```xml
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="key" arguments="16777219" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/SearchBox/SearchLineEdit" command="set_string" arguments="a" />
```
Line 1 : What is the new text ? Which character was deleted ? etc.https://gitlab.kitware.com/paraview/qttesting/-/issues/20Backspace key event translates to an invalid character2019-03-21T08:57:54-04:00Edern HaumontBackspace key event translates to an invalid characterWhen pressing the backspace key (for instance in the central widget frame's viewport) a keyEvent is created. Its argument contains an invalid character (for XML) that is ASCII code 8 (BS).
Replaced here with literal BS to be visible.
``...When pressing the backspace key (for instance in the central widget frame's viewport) a keyEvent is created. Its argument contains an invalid character (for XML) that is ASCII code 8 (BS).
Replaced here with literal BS to be visible.
```xml
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport" command="keyEvent" arguments="6:16777219:0:BS:0:1" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0 CentralWidgetFrame/Viewport" command="keyEvent" arguments="7:16777219:0:BS:0:1" />
```https://gitlab.kitware.com/paraview/qttesting/-/issues/19Missing license file2023-11-24T03:57:45-05:00Ben BoeckelMissing license fileThe copyright comments in the files are copy/pasted from ParaView. We should add the `License_v1.2.txt` file with the right information.
Cc: @utkarsh.ayachitThe copyright comments in the files are copy/pasted from ParaView. We should add the `License_v1.2.txt` file with the right information.
Cc: @utkarsh.ayachithttps://gitlab.kitware.com/paraview/qttesting/-/issues/18OpenGL Check Overlay does not work with QVTKOpenGLWidget2018-07-31T08:47:13-04:00Mathieu Westphal (Kitware)OpenGL Check Overlay does not work with QVTKOpenGLWidgetOpenGL Check Overlay does not work with QVTKOpenGLWidget, it needs to be redesigned.OpenGL Check Overlay does not work with QVTKOpenGLWidget, it needs to be redesigned.https://gitlab.kitware.com/paraview/qttesting/-/issues/17Handle double click events that are non-edit triggers on QTreeView2017-05-10T22:49:17-04:00Utkarsh AyachitHandle double click events that are non-edit triggers on QTreeViewNeed this for testing double-click controls for changing color/opacity in **Multi Block Inspector** in ParaView.
See paraview/paraview!1621Need this for testing double-click controls for changing color/opacity in **Multi Block Inspector** in ParaView.
See paraview/paraview!1621https://gitlab.kitware.com/paraview/qttesting/-/issues/16Test pqDoubleSpinBoxEventTranslatorTest broken2017-05-06T13:01:35-04:00Jean-Christophe Fillion-RobinTest pqDoubleSpinBoxEventTranslatorTest brokenThis test started to fail after introducing commit 61d8448 (Using isPrint() instead of isLetterOrNumber())
Here is an example of failure:
* Actual (this->EventObserver->Text):
`doubleSpinBoxTest, set_double, 3#doubleSpinBoxTes...This test started to fail after introducing commit 61d8448 (Using isPrint() instead of isLetterOrNumber())
Here is an example of failure:
* Actual (this->EventObserver->Text):
`doubleSpinBoxTest, set_double, 3#doubleSpinBoxTest, set_double, 3#doubleSpinBoxTest, set_double, 33#doubleSpinBoxTest, set_double, 33#doubleSpinBoxTest, set_double, 33#doubleSpinBoxTest, set_double, 33.5#doubleSpinBoxTest, set_double, 33.5#
`
* Expected (recordEmitted):
`doubleSpinBoxTest, set_double, 3#doubleSpinBoxTest, set_double, 3#doubleSpinBoxTest, set_double, 33#doubleSpinBoxTest, set_double, 33#doubleSpinBoxTest, key, 46#doubleSpinBoxTest, set_double, 33.5#doubleSpinBoxTest, set_double, 33.5#
`https://gitlab.kitware.com/paraview/qttesting/-/issues/14Selection events recorded from `QListView` are recorded by index and not text2018-01-01T22:25:42-05:00Cory Quammencory.quammen@kitware.comSelection events recorded from `QListView` are recorded by index and not textSelection events from `QListView` are recorded by index instead of list view widget text. This is problematic for tests where the items in the `QListView` may change based on changes in the build configuration, for example, the list of r...Selection events from `QListView` are recorded by index instead of list view widget text. This is problematic for tests where the items in the `QListView` may change based on changes in the build configuration, for example, the list of readers available in the reader selection dialog.
Steps to reproduce:
* Launch ParaView
* Tools -> Record Test... Save to `tmp.xml`
* Load `$PARAVIEW_BUILD/ExternalData/Testing/viscoplastic-ring.h5`. Select the `TRUCHAS dataset` option.
* Stop recording
* Look at `tmp.xml` It will contain events from the reader selection dialog like
```
<pqevent object="pqClientMainWindow/pqSelectReaderDialog/listWidget" command="setCurrent" arguments="4.0" />
<pqevent object="pqClientMainWindow/pqSelectReaderDialog/listWidget" command="setCheckState" arguments="4.0,0" />
```
These events should instead be recorded as
```
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/viscoplastic-ring.h5" />
```https://gitlab.kitware.com/paraview/qttesting/-/issues/12Spinbox translator record too much event2018-01-01T22:25:42-05:00Mathieu Westphal (Kitware)Spinbox translator record too much eventThe spinbox translator listen to onValueChaged on KeyPressed
so pressing a key on a spinbox will record two events.
The spinbox translator listen to onValueChaged on KeyPressed
so pressing a key on a spinbox will record two events.
https://gitlab.kitware.com/paraview/qttesting/-/issues/11Precision Feature2018-01-01T22:25:42-05:00Mathieu Westphal (Kitware)Precision FeatureIt would be nice to be able to specify a precision/threshold parameter while checking.It would be nice to be able to specify a precision/threshold parameter while checking.https://gitlab.kitware.com/paraview/qttesting/-/issues/10Arguments map redesign2018-01-01T22:25:42-05:00Mathieu Westphal (Kitware)Arguments map redesignInstead of storing arguments in a formatted string, using a map would be better and more easy to support, expand and add different kind of events.Instead of storing arguments in a formatted string, using a map would be better and more easy to support, expand and add different kind of events.https://gitlab.kitware.com/paraview/qttesting/-/issues/9OpenGL Widget Check Overlay overlap2018-01-01T22:25:42-05:00Mathieu Westphal (Kitware)OpenGL Widget Check Overlay overlapThe overlay of an openGL WIdget overlaps over other window, it is only a cosmetic issue.The overlay of an openGL WIdget overlaps over other window, it is only a cosmetic issue.https://gitlab.kitware.com/paraview/qttesting/-/issues/8OpenGL Windget Check Overlay transparency2018-01-01T22:25:43-05:00Mathieu Westphal (Kitware)OpenGL Windget Check Overlay transparencyThe overlay of an oepnGL WIdget overlaps is slightly transclucid, when it should not.The overlay of an oepnGL WIdget overlaps is slightly transclucid, when it should not.