QtUiTest Module
|
Feature | Details |
---|---|
System test API | The QtUiTest scripting language provides an API for simulating high-level interaction with applications. Tests are written using abstract concepts such as entering a value into a field with a specific label or activating a widget with particular text. This allows tests to be written which work correctly across different themes or minor user interface changes, and allows a test to be generated using a keypad device and subsequently run on a touchscreen-only device. A low-level API is also provided to directly simulate key and mouse input and compare screenshots against expected values. |
Performance test API | Timestamped log messages are used to instrument applications. QtUiTest can then be used to query the amount of time taken to perform certain actions, verifying that applications meet their performance requirements. |
Widget plugin API | QtUiTest's high-level interaction with widgets requires certain information to be provided for each type of widget. Support for Qt and Qt Extended widgets is provided with QtUiTest. If custom widgets are created, plugins can be written to expose the necessary information about new widgets to QtUiTest. For example, this allows an existing test which selects an item in a list to continue working even if the list, originally a QAbstractItemView, is replaced with a new type of widget written from scratch. |
The QtUiTest module includes the following software components:
The exact list of components included in this module can be found in $QPEDIR/src/module_qtuitest.pri.
The test plan for the QtUiTest module summarizes the Quality Assurance procedures for this module. The results of these test are available here.
The following table contains all classes and services which are part of this module:
QtUiTest::ActivateWidget | Abstract base class for all test widgets which can conceptually be "activated" by a user |
---|---|
QtUiTest::CheckWidget | Abstract base class for all test widgets which support 'checked' and 'unchecked' states |
QtUiTest::InputWidget | Abstract base class for all test widgets which allow the user to input text |
QtUiTest::LabelWidget | Abstract base class for all test widgets which are conceptually labels |
QtUiTest::ListWidget | Abstract base class for all test widgets which display a list of items to the user |
QSystemTest | Script based system test functionality for Qt |
QtUiTest | The plugin interfaces used for customizing the behaviour of QtUiTest |
QtUiTestRecorder | Interface for observing application-wide high level user actions |
QtopiaSystemTest | Script based system test functionality for Qt Extended |
QtopiaSystemTestModem | Functionality for simulating modem events from within a system test |
QtUiTest::SelectWidget | Abstract base class for all test widgets which allow the user to select from a range of items |
QtUiTest::TextWidget | Abstract base class for all test widgets which display text to the user |
QtUiTest::Widget | Abstract base class for all test widgets |
QtUiTest::WidgetFactory | Factory interface for QtUiTest widget wrapper classes |
[Previous: Qt Development Tools Module] [Qt Extended Modules]
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com