Qt Creator ManualTests ProjectsAndCode: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
=Qt Creator Manual Tests: Projects and Code=
[[Category:Tools::QtCreator::QualityAssurance]]


{| class="infotable line"
[toc align_right="yes" depth="2"]
|- style="background: #009900"
! Project Management
! Result
! Annotation
|-
|
Check parsing of qmake projects:


# Prepare sources of Qt and Qt Creator (see below)
= Qt Creator Manual Tests: Projects and Code =
# Select “File” -> “Open File or Project…” from Creator’s menu and open projects.pro from Qt’s sources.
# Select “File” -> “Open File or Project…” from Creator’s menu and open qtcreator.pro from Qt Creator’s sources.
# Wait until parsing finished.
# Check that the projects are completely indexed, e.g. by searching for some of [http://doc.qt.io/qt-5/classes.html Qt’s Classes] ''[qt.io]'' using the [http://doc.qt.io/qtcreator-3.2/creator-editor-locator.html Locator] ''[qt.io]''.
| automated
|
|-
|
Check parsing of qbs projects:


# Prepare sources of Qt Creator (see below)
{background:#009900}. |''. Project Management |''. Result |_. Annotation |<br />|Check parsing of qmake projects:<br /># Prepare sources of Qt and Qt Creator (see below)<br /># Select &quot;File&amp;quot; <s>&gt; &quot;Open File or Project…&quot; from Creator's menu and open projects.pro from Qt's sources.<br /># Select &quot;File&amp;quot;</s>&gt; &quot;Open File or Project…&quot; from Creator's menu and open qtcreator.pro from Qt Creator's sources.<br /># Wait until parsing finished.<br /># Check that the projects are completely indexed, e.g. by searching for some of &quot;Qt's Classes&amp;quot;:http://doc.qt.io/qt-5/classes.html using the &quot;Locator&amp;quot;:http://doc.qt.io/qtcreator-3.2/creator-editor-locator.html. | automated | |<br />|Check parsing of qbs projects:<br /># Prepare sources of Qt Creator (see below)<br /># In &quot;Help&amp;quot; <s>&gt; &quot;About Plugins…&quot;, verify that QbsProjectManager is enabled.<br /># Select &quot;File&amp;quot;</s>&gt; &quot;Open File or Project…&quot; from Creator's menu and open qtcreator.qbs from Qt Creator's sources.<br /># Wait until parsing finished.<br /># Check that the project is completely indexed, e.g. by searching for some of &quot;Qt's Classes&amp;quot;:http://doc.qt.io/qt-5/classes.html using the &quot;Locator&amp;quot;:http://doc.qt.io/qtcreator-3.2/creator-editor-locator.html. | | |<br />| Adding a build configuration:<br /># Open a project.<br /># Go to &quot;Projects&amp;quot; mode.<br /># &quot;Add a new build configuration&amp;quot;:http://doc.qt.io/qtcreator-3.2/creator-build-settings.html.<br /># The project can be built successfully with this build configuration. | | |<br />| Adding a run configuration:<br /># Open a project.<br /># Go to &quot;Projects&amp;quot; mode.<br /># &quot;Add a new run configuration&amp;quot;:http://doc.qt.io/qtcreator-3.2/creator-run-settings.html.<br /># The project can be run successfully with this run configuration. | | |<br />| Opening a project from Welcome screen:<br /># Close all open projects.<br /># Go to &quot;Welcome&amp;quot; mode.<br /># Open a previously opened project by clicking its name in the Welcome screen. | automated | |<br />| CMake project management:<br /># Have &quot;CMake&amp;quot;:http://www.cmake.org installed.<br /># Windows: Add the path to the installed cmake.exe to your system's PATH environment variable.<br /># Download &quot;SpeedCrunch's source code package&amp;quot;:http://speedcrunch.googlecode.com/files/speedcrunch-0.10.1.tar.gz.<br /># Extract the package.<br /># Select &quot;File&amp;quot; <s>&gt; &quot;Open File or Project…&quot; from Creator's menu and open src/CMakeLists.txt.<br /># Follow the instructions in the wizard.<br /># Wait until parsing finished.<br /># Check that the project is completely indexed, e.g. by expanding items of the tree structure in the &quot;Class View&amp;quot;. | semi-automated | |<br />| Creator can build and run the project from the previous test. | automated | |<br />| External changes:<br /># Open a file in Creator.<br /># Edit this file outside Creator, e.g. using some text editor.<br /># Go back to the file in Creator. Creator must report that the file was changed. | automated | |<br />| Deleted files:<br /># Open a file in Creator.<br /># Delete this file outside Creator, e.g. using some file manager.<br /># Go back to the file in Creator. Creator must report that the file was deleted. | automated | |<br />| Windows: Foreign character sets:<br /># Add a user whose name contains non-latin characters ( &amp;#1042;&amp;#1110;&amp;#1090;&amp;#1072;&amp;#1083;&amp;#1110;&amp;#1081; , &amp;#8207;&amp;#1606;&amp;#1575;&amp;#1589;&amp;#1585; , &amp;#21491;&amp;#20140; ) using Windows Control Panel.<br /># Login to this user account and run Creator.<br /># Create a session and activate this session. No warnings or error messages should appear. | | |<br />| Try to make Creator crash, be evil | | |<br />{background:#009900}. |''. C++ Support |''. Result |_. Annotation |<br />| Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks: | | |<br />| Variable declarations:<br /># Move the cursor to the usage of a variable.<br /># Press F2 or select from the menu: Tools</s>&gt; C++ <s>&gt; Follow Symbol under Cursor<br />Creator will show you the declaration of the variable. | automated | |<br />| Function definitions:<br /># Move the cursor to a function call.<br /># Press F2 or select from the menu: Tools</s>&gt; C++ <s>&gt; Follow Symbol under Cursor<br />Creator will show you the definition of the function. | automated | |<br />| Definition/declaration:<br /># Move the cursor to a function declaration<br /># Press Shift+F2 or select from menu: Tools</s>&gt; C++ <s>&gt; Switch Between Method Declaration/Definition<br />Creator should show the definition of this function<br /># Press Shift+F2 or select from menu: Tools</s>&gt; C++ <s>&gt; Switch Between Method Declaration/Definition again<br />Creator should show the declaration of the function again. | automated | |<br />| Switching between sources and headers:<br /># Open a source or header file of a source/header couple (same base name)<br /># Press F4 or select from menu: Tools</s>&gt; C++ <s>&gt; Switch Header/Source<br />Creator should show the respective other file &amp;#40;header/source&amp;amp;#41;.| | |<br />| Finding usages:<br /># Open a header or source file<br /># Move cursor to the usage of a variable or function call<br /># Press Ctrl+Shift+U or select from menu: Tools</s>&gt; C++ <s>&gt; Find Usages<br />A search result view should appear at the bottom indicating files containing usages of this variable or function.<br />When expanding the tree view-like structures, the respective lines can be seen. Double clicking on them should direct you to this file and line | | |<br />| Renaming usages:<br /># Move cursor to a variable or function call<br /># Press Ctrl+Shift+R or select from menu Tools</s>&gt; C++ -&gt; Rename Symbol Under Cursor<br />You should be able to enter another name changing every occurrence of this variable or function<br />Note: When changing variable &quot;a&amp;quot; to &quot;b&amp;quot;, other variables like &quot;a1&amp;quot; must not be changed! | automated | |<br />| When entering the first few letters of a variable or function (or: includes, keywords, function arguments, snippets, etc), Creator should automatically show possible completions. You might have to hit Ctrl+Space. | | |<br />| When hovering the mouse over some variable or function call, a tooltip should appear telling you the type of this element.<br />In case it's a Qt object (like QString, QWidget, …), you should see a picture of the F1 button in the top right corner of the tooltip, indicating that you can easily switch to the Qt documentation of this class or method by pressing F1. Pressing F1 will open the related page. | | |<br />| Try code folding. Fold and unfold classes and functions. Does everything work as expected? | | |
# In “Help” -&gt; “About Plugins…”, verify that QbsProjectManager is enabled.
# Select “File” -&gt; “Open File or Project…” from Creator’s menu and open qtcreator.qbs from Qt Creator’s sources.
# Wait until parsing finished.
# Check that the project is completely indexed, e.g. by searching for some of [http://doc.qt.io/qt-5/classes.html Qt’s Classes] ''[qt.io]'' using the [http://doc.qt.io/qtcreator-3.2/creator-editor-locator.html Locator] ''[qt.io]''.
|
|
|-
|
Adding a build configuration:


# Open a project.
== Preparing sources of Qt and Qt Creator ==
# Go to “Projects” mode.
# [http://doc.qt.io/qtcreator-3.2/creator-build-settings.html Add a new build configuration] ''[qt.io]''.
# The project can be built successfully with this build configuration.
|
|
|-
|
Adding a run configuration:


# Open a project.
This can be used for all following tests after it was done once.
# Go to “Projects” mode.
# [http://doc.qt.io/qtcreator-3.2/creator-run-settings.html Add a new run configuration] ''[qt.io]''.
# The project can be run successfully with this run configuration.
|
|
|-
|
Opening a project from Welcome screen:
 
# Close all open projects.
# Go to “Welcome” mode.
# Open a previously opened project by clicking its name in the Welcome screen.
| automated
|
|-
|
CMake project management:
 
# Have [http://www.cmake.org CMake] ''[cmake.org]'' installed.
# Windows: Add the path to the installed cmake.exe to your system’s <span class="caps">PATH</span> environment variable.
# Download [http://speedcrunch.googlecode.com/files/speedcrunch-0.10.1.tar.gz SpeedCrunch’s source code package] ''[speedcrunch.googlecode.com]''.
# Extract the package.
# Select “File” -&gt; “Open File or Project…” from Creator’s menu and open src/CMakeLists.txt.
# Follow the instructions in the wizard.
# Wait until parsing finished.
# Check that the project is completely indexed, e.g. by expanding items of the tree structure in the “Class View”.
| semi-automated
|
|-
| Creator can build and run the project from the previous test.
| automated
|
|-
|
External changes:
 
# Open a file in Creator.
# Edit this file outside Creator, e.g. using some text editor.
# Go back to the file in Creator. Creator must report that the file was changed.
| automated
|
|-
|
Deleted files:
 
# Open a file in Creator.
# Delete this file outside Creator, e.g. using some file manager.
# Go back to the file in Creator. Creator must report that the file was deleted.
| automated
|
|-
|
Windows: Foreign character sets:
 
# Add a user whose name contains non-latin characters ( Віталій , ‏ناصر , 右京 ) using Windows Control Panel.
# Login to this user account and run Creator.
# Create a session and activate this session. No warnings or error messages should appear.
|
|
|-
| Try to make Creator crash, be evil
|
|
|- style="background: #009900"
! C++ Support
! Result
! Annotation
|-
| Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator’s sources and perform the following tasks:
|
|
|-
|
Variable declarations:
 
# Move the cursor to the usage of a variable.
# Press F2 or select from the menu: Tools -&gt; C++ -&gt; Follow Symbol under Cursor<br /> Creator will show you the declaration of the variable.
| automated
|
|-
|
Function definitions:
 
# Move the cursor to a function call.
# Press F2 or select from the menu: Tools -&gt; C++ -&gt; Follow Symbol under Cursor<br /> Creator will show you the definition of the function.
| automated
|
|-
|
Definition/declaration:
 
# Move the cursor to a function declaration
# Press Shift+F2 or select from menu: Tools -&gt; C++ -&gt; Switch Between Method Declaration/Definition<br /> Creator should show the definition of this function
# Press Shift+F2 or select from menu: Tools -&gt; C++ -&gt; Switch Between Method Declaration/Definition again<br /> Creator should show the declaration of the function again.
| automated
|
|-
|
Switching between sources and headers:
 
# Open a source or header file of a source/header couple (same base name)
# Press F4 or select from menu: Tools -&gt; C++ -&gt; Switch Header/Source<br /> Creator should show the respective other file (header/source).
|
|
|-
|
Finding usages:
 
# Open a header or source file
# Move cursor to the usage of a variable or function call
# Press Ctrl+Shift+U or select from menu: Tools -&gt; C++ -&gt; Find Usages<br /> A search result view should appear at the bottom indicating files containing usages of this variable or function.<br /> When expanding the tree view-like structures, the respective lines can be seen. Double clicking on them should direct you to this file and line
|
|
|-
|
Renaming usages:
 
# Move cursor to a variable or function call
# Press Ctrl+Shift+R or select from menu Tools -&gt; C++ -&gt; Rename Symbol Under Cursor<br /> You should be able to enter another name changing every occurrence of this variable or function<br /> Note: When changing variable “a” to “b”, other variables like “a1” must not be changed!
| automated
|
|-
| When entering the first few letters of a variable or function (or: includes, keywords, function arguments, snippets, etc), Creator should automatically show possible completions. You might have to hit Ctrl+Space.
|
|
|-
| When hovering the mouse over some variable or function call, a tooltip should appear telling you the type of this element.<br /> In case it’s a Qt object (like QString, QWidget, …), you should see a picture of the F1 button in the top right corner of the tooltip, indicating that you can easily switch to the Qt documentation of this class or method by pressing F1. Pressing F1 will open the related page.
|
|
|-
| Try code folding. Fold and unfold classes and functions. Does everything work as expected?
|
|
|}
 
==Preparing sources of Qt and Qt Creator==
 
This can be used for all following tests after it was done once.<br /> Simply download sources of Qt ([http://download.qt.io/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz tar.gz] ''[download.qt.io]'' / [http://download.qt.io/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.zip zip] ''[download.qt.io]'') and Qt Creator ([http://download.qt.io/official_releases/qtcreator/2.8/2.8.1/qt-creator-2.8.1-src.tar.gz tar.gz] ''[download.qt.io]'' / [http://download.qt.io/official_releases/qtcreator/2.8/2.8.1/qt-creator-2.8.1-src.zip zip] ''[download.qt.io]'') and extract them. You have to build Qt outside of qtcreator. Otherwise qtcreator won’t be able to parse the Qt sources.
 
===Categories:===
 
* [[:Category:Tools|Tools]]
** [[:Category:Tools::QtCreator|QtCreator]]
* [[:Category:Tools::QtCreator::QualityAssurance|QualityAssurance]]

Revision as of 10:47, 24 February 2015


[toc align_right="yes&quot; depth="2&quot;]

Qt Creator Manual Tests: Projects and Code

{background:#009900}. |. Project Management |. Result |_. Annotation |
|Check parsing of qmake projects:
# Prepare sources of Qt and Qt Creator (see below)
# Select "File&quot; > "Open File or Project…" from Creator's menu and open projects.pro from Qt's sources.
# Select "File&quot;
> "Open File or Project…" from Creator's menu and open qtcreator.pro from Qt Creator's sources.
# Wait until parsing finished.
# Check that the projects are completely indexed, e.g. by searching for some of "Qt's Classes&quot;:http://doc.qt.io/qt-5/classes.html using the "Locator&quot;:http://doc.qt.io/qtcreator-3.2/creator-editor-locator.html. | automated | |
|Check parsing of qbs projects:
# Prepare sources of Qt Creator (see below)
# In "Help&quot; > "About Plugins…", verify that QbsProjectManager is enabled.
# Select "File&quot;
> "Open File or Project…" from Creator's menu and open qtcreator.qbs from Qt Creator's sources.
# Wait until parsing finished.
# Check that the project is completely indexed, e.g. by searching for some of "Qt's Classes&quot;:http://doc.qt.io/qt-5/classes.html using the "Locator&quot;:http://doc.qt.io/qtcreator-3.2/creator-editor-locator.html. | | |
| Adding a build configuration:
# Open a project.
# Go to "Projects&quot; mode.
# "Add a new build configuration&quot;:http://doc.qt.io/qtcreator-3.2/creator-build-settings.html.
# The project can be built successfully with this build configuration. | | |
| Adding a run configuration:
# Open a project.
# Go to "Projects&quot; mode.
# "Add a new run configuration&quot;:http://doc.qt.io/qtcreator-3.2/creator-run-settings.html.
# The project can be run successfully with this run configuration. | | |
| Opening a project from Welcome screen:
# Close all open projects.
# Go to "Welcome&quot; mode.
# Open a previously opened project by clicking its name in the Welcome screen. | automated | |
| CMake project management:
# Have "CMake&quot;:http://www.cmake.org installed.
# Windows: Add the path to the installed cmake.exe to your system's PATH environment variable.
# Download "SpeedCrunch's source code package&quot;:http://speedcrunch.googlecode.com/files/speedcrunch-0.10.1.tar.gz.
# Extract the package.
# Select "File&quot; > "Open File or Project…" from Creator's menu and open src/CMakeLists.txt.
# Follow the instructions in the wizard.
# Wait until parsing finished.
# Check that the project is completely indexed, e.g. by expanding items of the tree structure in the "Class View&quot;. | semi-automated | |
| Creator can build and run the project from the previous test. | automated | |
| External changes:
# Open a file in Creator.
# Edit this file outside Creator, e.g. using some text editor.
# Go back to the file in Creator. Creator must report that the file was changed. | automated | |
| Deleted files:
# Open a file in Creator.
# Delete this file outside Creator, e.g. using some file manager.
# Go back to the file in Creator. Creator must report that the file was deleted. | automated | |
| Windows: Foreign character sets:
# Add a user whose name contains non-latin characters ( &#1042;&#1110;&#1090;&#1072;&#1083;&#1110;&#1081; , &#8207;&#1606;&#1575;&#1589;&#1585; , &#21491;&#20140; ) using Windows Control Panel.
# Login to this user account and run Creator.
# Create a session and activate this session. No warnings or error messages should appear. | | |
| Try to make Creator crash, be evil | | |
{background:#009900}. |. C++ Support |. Result |_. Annotation |
| Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks: | | |
| Variable declarations:
# Move the cursor to the usage of a variable.
# Press F2 or select from the menu: Tools
> C++ > Follow Symbol under Cursor
Creator will show you the declaration of the variable. | automated | |
| Function definitions:
# Move the cursor to a function call.
# Press F2 or select from the menu: Tools
> C++ > Follow Symbol under Cursor
Creator will show you the definition of the function. | automated | |
| Definition/declaration:
# Move the cursor to a function declaration
# Press Shift+F2 or select from menu: Tools
> C++ > Switch Between Method Declaration/Definition
Creator should show the definition of this function
# Press Shift+F2 or select from menu: Tools
> C++ > Switch Between Method Declaration/Definition again
Creator should show the declaration of the function again. | automated | |
| Switching between sources and headers:
# Open a source or header file of a source/header couple (same base name)
# Press F4 or select from menu: Tools
> C++ > Switch Header/Source
Creator should show the respective other file &#40;header/source&amp;#41;.| | |
| Finding usages:
# Open a header or source file
# Move cursor to the usage of a variable or function call
# Press Ctrl+Shift+U or select from menu: Tools
> C++ > Find Usages
A search result view should appear at the bottom indicating files containing usages of this variable or function.
When expanding the tree view-like structures, the respective lines can be seen. Double clicking on them should direct you to this file and line | | |
| Renaming usages:
# Move cursor to a variable or function call
# Press Ctrl+Shift+R or select from menu Tools
> C++ -> Rename Symbol Under Cursor
You should be able to enter another name changing every occurrence of this variable or function
Note: When changing variable "a&quot; to "b&quot;, other variables like "a1&quot; must not be changed! | automated | |
| When entering the first few letters of a variable or function (or: includes, keywords, function arguments, snippets, etc), Creator should automatically show possible completions. You might have to hit Ctrl+Space. | | |
| When hovering the mouse over some variable or function call, a tooltip should appear telling you the type of this element.
In case it's a Qt object (like QString, QWidget, …), you should see a picture of the F1 button in the top right corner of the tooltip, indicating that you can easily switch to the Qt documentation of this class or method by pressing F1. Pressing F1 will open the related page. | | |
| Try code folding. Fold and unfold classes and functions. Does everything work as expected? | | |

Preparing sources of Qt and Qt Creator

This can be used for all following tests after it was done once.