Qt Creator ManualTests QtQuick: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Don't test Qt Quick 1 files in designer (unsupported) or Select mode (out of scope)) |
||
Line 92: | Line 92: | ||
! Annotation | ! Annotation | ||
|+ | |+ | ||
| Open all files in | | Open all files in $CREATORDIR/tests/manual/qml/testfiles_quick2/testfiles_quick2.qmlproject and check whether: | ||
* previews look sane | * previews look sane | ||
* the Properties editor works for different item types | * the Properties editor works for different item types | ||
Line 103: | Line 103: | ||
| | | | ||
|+ | |+ | ||
| Open project $CREATORDIR/tests/manual/qml/testprojects/plugins/plugins.qmlproject and see whether the Designer treats MyComponent and MyComponent2 correctly | | Open project $CREATORDIR/tests/manual/qml/testprojects/plugins/plugins.qmlproject and see whether the Designer treats MyComponent and MyComponent2 correctly. | ||
* Are they listed in "Library" view? | |||
* Can you drag them onto the canvas? | |||
* Do they show a correct preview then? | |||
| | | | ||
| | | | ||
Line 177: | Line 180: | ||
# Set a breakpoint in Tile.qml (minehunt) respectively GameArea.qml (samegame), onClicked handler of MouseArea. Is it hit? Is the right file opened in the editor? Click continue | # Set a breakpoint in Tile.qml (minehunt) respectively GameArea.qml (samegame), onClicked handler of MouseArea. Is it hit? Is the right file opened in the editor? Click continue | ||
# While the program is running, use the "Locals and Expressions" view to navigate in the object tree. Are the right files opened in the editor? | # While the program is running, use the "Locals and Expressions" view to navigate in the object tree. Are the right files opened in the editor? | ||
| | | | ||
| | | |
Revision as of 11:32, 23 July 2015
Test | Result | Annotation |
---|---|---|
Open Qml files, make them invalid & again valid, check that errors are underlined | ||
Indent a big Qml file via "Ctrl-I" | automated | |
Hover over elements, properties, expressions | automated | |
Rename an ID via context menu | automated | |
Trigger Find Usages on an id and property | automated |
Test | Result | Annotation |
---|---|---|
Navigate to elements / properties by clicking on the item in the outline | ||
Change qml in text, check that Outline updates | automated: tst_qml_outline | |
Drag&Drop elements around in outline, check that text updates | ||
Check/Uncheck 'Show all Bindings' in the Filter, outline should update accordingly |
Test | Result | Annotation |
---|---|---|
Create new "Qt Quick Application" through wizard, run application | automated | |
Create new "Qt Quick UI" through wizard, run application | automated | |
Generate "Qt Quick 1/2 Extension Plugin", compile | automated |
Test | Result | Annotation |
---|---|---|
QML errors:
Are the error messages in Application Output clickable when running the app? Do they open the "right", file (not in shadow build)? |
Test | Result | Annotation |
---|---|---|
Open all files in $CREATORDIR/tests/manual/qml/testfiles_quick2/testfiles_quick2.qmlproject and check whether:
|
||
Create & Rename & Delete states | ||
Open project $CREATORDIR/tests/manual/qml/testprojects/plugins/plugins.qmlproject and see whether the Designer treats MyComponent and MyComponent2 correctly.
|
||
Test whether F1 works |
Test | Result | Annotation |
---|---|---|
Preparation:
|
||
Check that first breakpoint is hit when clicking on "New game" , and that the breakpoint looses it's 'hour glass' when hit | ||
Step through startNewGame() function. Check Locals and Watchers update. Also try adding watchers, and change content in locals & watchers. (Needs Qt >= 5.4) | ||
Add breakpoint while debugging QML. Does the breakpoint interrupt the program? | ||
Add breakpoint before starting QML Debugger. Does the breakpoint interrupt the program? | ||
While interrupted in a javascript method (with more than one line), step over. Does it go to the next line? | ||
While interrupted in a javascript method that calls another javascript method, step into. Does it enter that method's definition? | ||
While interrupted in a javascript method, step out. Does execution resume again (or does debugger go back in context)? |
Test | Result | Annotation |
---|---|---|
Breakpoints:
Are breakpoints being hit? Do they open the right (non-shadow-build) file? |
||
Breakpoints in bigger project:
|
Test | Result | Annotation |
---|---|---|
Can you record some profiling data (see below)? | ||
Do all tabs show well-formed data/information for the shown events? | ||
Can you turn on and off the tabs by using the context menu and do all (re-)shown tabs still show well-formed data according to the last profiling? | ||
With and without an already profiled app disable profiling by hitting the record button and start running again. Does the widget 's content still hold the data of the former profiling (or none if there wasn't any)? | ||
Start the application and test the record button. It should show the collected data when disabled, and collect new data on already running application when enabled. | ||
According to the time-line:
(Note: The little blue titled subwindows in the timeline are called "tool tip" below, even though they don't behave like normal tooltips.)
|
||
According to the Callees/Caller/Events tab:
Note: The "Events" tab intentionally doesn't show anonymous events. |
Recording Profiling Data
Create or open a Qt Quick Application AND a Qml Project ($QTDIR/demos/declarative/minehunt/minehunt.pro and $QTDIR/demos/declarative/samegame/samegame.qmlproject should be adequate). Do the following for each of the projects:
- Enable QML debugging on the Projects view (might require rebuilding the app)
- Switch to Analyzer view and press the "Start" button at the QML Profiler widget
- Generate some events by playing around
- Press “Stop” at the QML Profiler widget