Qt Creator ManualTests Android: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Updated path to Android setting page)
(Update settings menu)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:


[[Category:Tools::QtCreator::QualityAssurance]]
[[Category:Tools::QtCreator::QualityAssurance]]
Line 5: Line 4:




You will need the tools listed [http://doc.qt.io/qt-5/androidgs.html here].
You will need the tools listed in [https://doc.qt.io/qt-6/android-getting-started.html Qt's] and [https://doc.qt.io/qtcreator/creator-developing-android.html Qt Creator's manual].


{| class="wikitable"
{| class="wikitable"
! Test  
!Test
! Result  
!Result
! Annotation  
!Annotation
|-
|-
| If you installed Creator as part of a Qt SDK, does Creator correctly detect the kits installed with itself?
|If you installed Creator as part of a Qt SDK, does Creator correctly detect the kits installed with itself?
# Remove Creator's settings from .config (Linux, Mac) or %appdata% (Windows).
 
# Start Creator.
#Start Creator using a clean settings path (command line option -settingspath <path>).
# In "Tools" -> "Options…" -> "Devices" -> "Android", set the correct paths to the Android SDK and the Android NDK.
#In "Edit" -> "Preferences…" -> "Devices" -> "Android", set the correct paths to a JDK, the Android SDK and the Android NDK.
# Click "Apply".
#Click "Apply".
# In "Tools" -> "Options…"-> "Build & Run" -> "Kits", verify that Creator shows a Kit for each Qt for Android version you installed.
#In "Edit" -> "Preferences…" -> "Kits" -> "Kits", verify that Creator shows a Kit for each Qt for Android version you installed.
# Verify that each of these Kits has a valid Debugger, Compiler and Qt Version.  
#Verify that each of these Kits has a valid Debugger, Compiler and Qt Version.
|
|
|
|
|-
|-
| If you installed Creator from a standalone package, does it add Kits when adding qmake?
|If you installed Creator from a standalone package, does it add Kits when adding qmake?
# Remove Creator's settings from .config (Linux, Mac) or %appdata% (Windows).
 
# Start Creator.
#Remove Creator's settings from .config (Linux, Mac) or %appdata% (Windows).
# In "Tools" -> "Options…"-> "Devices" -> "Android", set the correct paths to the Android SDK and the Android NDK.
#Start Creator.
# Click "Apply".
#In "Edit" -> "Preferences…"-> "Devices" -> "Android", set the correct paths to the Android SDK and the Android NDK.
# In "Tools" -> "Options…"-> "Build & Run" -> "Compilers", verify that Creator shows valid Compilers for Android.  
#Click "Apply".
# In "Tools" -> "Options…"-> "Build & Run" -> "Qt Versions", set up a qmake from a Qt for Android.
#In "Edit" -> "Preferences…" -> "Kits" -> "Compilers", verify that Creator shows valid Compilers for Android.
# Click "Apply".
#In "Edit" -> "Preferences…" -> "Kits" -> "Qt Versions", set up a qmake from a Qt for Android.
# In "Tools" -> "Options…"-> "Build & Run" -> "Kits", verify that Creator added an auto-detected kit named "Android for ..."  
#Click "Apply".
# Verify that this Kit has a valid Debugger and Compiler and uses the Qt Version you set before.  
#In "Edit" -> "Preferences…" -> "Kits" -> "Kits", verify that Creator added an auto-detected kit named "Android for ..."
|  
#Verify that this Kit has a valid Debugger and Compiler and uses the Qt Version you set before.
|  
|
|
|-
|-
| Can Creator compile an application using an Android kit? (If you didn't install Creator together with a Qt version for Android, you might have to add the path to make or mingw32-make to the PATH environment variable.)
|Can Creator compile an application using an Android kit? (If you didn't install Creator together with a Qt version for Android, you might have to add the path to make or mingw32-make to the PATH environment variable.)
|  
|
|  
|
|-
|-
| Can Creator run an application on an Android device?  
|Can Creator run an application on an Android device?
|  
|
|  
|
|-
|-
| Do the previous tasks work for Qt Widgets Applications and Qt Quick Applications?  
|Do the previous tasks work for Qt Widgets Applications and Qt Quick Applications?
|
|
|
|
|-
|-
| QML errors:
|QML errors:
# Create a hybrid QML/C++ project (Qt Quick Application).
 
# Add errors to the qml file.
#Create a hybrid QML/C++ project (Qt Quick Application).
# Save and close the file.
#Add errors to the qml file.
# Run this project on the device.
#Save and close the file.
#Run this project on the device.
 
Do error messages appear in Application Output and are these clickable when running the app? Do they open the "right" file and location in the desktop's source directory?
Do error messages appear in Application Output and are these clickable when running the app? Do they open the "right" file and location in the desktop's source directory?
|
|
|
|
|-
|-
| While an application is running on an Android device, quit the application on the device. Does Creator notice this and reflect the changed state?  
|While an application is running on an Android device, quit the application on the device. Does Creator notice this and reflect the changed state?
|  
|
|  
|
|-
|-
| While an application is running on an Android device, click the "Stop" icon in the "Application Output" view. Does Creator terminate the application on the device?  
|While an application is running on an Android device, click the "Stop" icon in the "Application Output" view. Does Creator terminate the application on the device?
|  
|
|
|
|-
|-
| Can Creator debug an application on an Android device?  
|Can Creator debug an application on an Android device?
|  
|
|  
|
|-
|-
| Set a breakpoint before debugging an application on an Android device. Does the execution of the program stop at the breakpoint?  
|Set a breakpoint before debugging an application on an Android device. Does the execution of the program stop at the breakpoint?
|
|
|
|
|-
|-
| Set a breakpoint while debugging an application on an Android device. Does the execution of the program stop at the breakpoint?  
|Set a breakpoint while debugging an application on an Android device. Does the execution of the program stop at the breakpoint?
|  
|
|  
|
|-
|-
| Do the previous tasks work for breakpoints in C++ code as well as in QML code?  
|Do the previous tasks work for breakpoints in C++ code as well as in QML code?
|
|
|
|
|-
|-
| When stopped at a breakpoint, does Creator show valid data for Locals and Expressions?  
|When stopped at a breakpoint, does Creator show valid data for Locals and Expressions?
|  
|
|  
|
|-
|-
| When stopped at a breakpoint, does Creator show a valid stacktrace?  
|When stopped at a breakpoint, does Creator show a valid stack trace?
|  
|
|  
|
|-
|-
|Does the Debugger Log View show qDebug output from an Android device when debugging?  
|Does the Debugger Log View show qDebug output from an Android device when debugging?
|  
|
|  
|
|-
|-
| Try the QML Profiler in the Analyze mode for an app on the device. Does it collect data and does that data look sane?
|Try the QML Profiler in the Debug mode for an app on the device. Does it collect data and does that data look sane?
|  
|
|  
|
|-
|-
|Does Creator handle disconnecting properly? Disconnect the Android device while:
|Does Creator handle disconnecting properly? Disconnect the Android device while:
* Running an application on the device
 
* Debugging an application on the device
*Running an application on the device
* Having stopped at a breakpoint on the device
*Debugging an application on the device
*Having stopped at a breakpoint on the device
 
Please verify that Creator neither crashes nor freezes. It can still be used locally and after reconnecting it can use the device again.
Please verify that Creator neither crashes nor freezes. It can still be used locally and after reconnecting it can use the device again.
|
|
|
|
|}
|}

Latest revision as of 13:51, 21 June 2022



You will need the tools listed in Qt's and Qt Creator's manual.

Test Result Annotation
If you installed Creator as part of a Qt SDK, does Creator correctly detect the kits installed with itself?
  1. Start Creator using a clean settings path (command line option -settingspath <path>).
  2. In "Edit" -> "Preferences…" -> "Devices" -> "Android", set the correct paths to a JDK, the Android SDK and the Android NDK.
  3. Click "Apply".
  4. In "Edit" -> "Preferences…" -> "Kits" -> "Kits", verify that Creator shows a Kit for each Qt for Android version you installed.
  5. Verify that each of these Kits has a valid Debugger, Compiler and Qt Version.
If you installed Creator from a standalone package, does it add Kits when adding qmake?
  1. Remove Creator's settings from .config (Linux, Mac) or %appdata% (Windows).
  2. Start Creator.
  3. In "Edit" -> "Preferences…"-> "Devices" -> "Android", set the correct paths to the Android SDK and the Android NDK.
  4. Click "Apply".
  5. In "Edit" -> "Preferences…" -> "Kits" -> "Compilers", verify that Creator shows valid Compilers for Android.
  6. In "Edit" -> "Preferences…" -> "Kits" -> "Qt Versions", set up a qmake from a Qt for Android.
  7. Click "Apply".
  8. In "Edit" -> "Preferences…" -> "Kits" -> "Kits", verify that Creator added an auto-detected kit named "Android for ..."
  9. Verify that this Kit has a valid Debugger and Compiler and uses the Qt Version you set before.
Can Creator compile an application using an Android kit? (If you didn't install Creator together with a Qt version for Android, you might have to add the path to make or mingw32-make to the PATH environment variable.)
Can Creator run an application on an Android device?
Do the previous tasks work for Qt Widgets Applications and Qt Quick Applications?
QML errors:
  1. Create a hybrid QML/C++ project (Qt Quick Application).
  2. Add errors to the qml file.
  3. Save and close the file.
  4. Run this project on the device.

Do error messages appear in Application Output and are these clickable when running the app? Do they open the "right" file and location in the desktop's source directory?

While an application is running on an Android device, quit the application on the device. Does Creator notice this and reflect the changed state?
While an application is running on an Android device, click the "Stop" icon in the "Application Output" view. Does Creator terminate the application on the device?
Can Creator debug an application on an Android device?
Set a breakpoint before debugging an application on an Android device. Does the execution of the program stop at the breakpoint?
Set a breakpoint while debugging an application on an Android device. Does the execution of the program stop at the breakpoint?
Do the previous tasks work for breakpoints in C++ code as well as in QML code?
When stopped at a breakpoint, does Creator show valid data for Locals and Expressions?
When stopped at a breakpoint, does Creator show a valid stack trace?
Does the Debugger Log View show qDebug output from an Android device when debugging?
Try the QML Profiler in the Debug mode for an app on the device. Does it collect data and does that data look sane?
Does Creator handle disconnecting properly? Disconnect the Android device while:
  • Running an application on the device
  • Debugging an application on the device
  • Having stopped at a breakpoint on the device

Please verify that Creator neither crashes nor freezes. It can still be used locally and after reconnecting it can use the device again.