Use QFETCH() to fetch the data in the actual test. To populate the column with values, newRow() can be used. dummy is a workaround for buggy compilers and can be ignored. Use this mode when it doesn't make sense to execute the test any further after the expected failure.Ĭontinues execution of the test after the expected failure.įunction Documentation void QTest:: addColumn ( const char * name, T * dummy = 0 )Īdds a column with type T to the current test data. ConstantĪborts the execution of the test. This enum describes the modes for handling an expected failure of the QVERIFY() or QCOMPARE() macros. Skips all the entries in the test table the test won't be executed further. Skips the current entry in the test table continues execution of all the other entries in the table. This enum describes the modes for skipping tests during execution of the test data. See also QTest::benchmarkMetricName() and QTest::benchmarkMetricUnit(). This enum was introduced or modified in Qt 4.7. This enum lists all the things that can be benchmarked. ConstantĪ mouse button is clicked (pressed and released).Ī mouse button is double clicked (pressed and released twice). This enum describes possible actions for mouse handling. The enum specifies the kinds of test log messages. The key is clicked (pressed and released). This enum describes possible actions for key handling. Type Documentation enum QTest:: AttributeIndex QEXPECT_FAIL ( dataIndex, comment, mode ) TouchEvent ( QWidget * widget = 0, QTouchEvent::DeviceType deviceType = QTouchEvent::TouchScreen ) ToString ( const QLatin1String & string ) ToHexRepresentation ( const char * ba, int length ) SetBenchmarkResult ( qreal result, QBenchmarkMetric metric ) QExec ( QObject * testObject, const QStringList & arguments ) QExec ( QObject * testObject, int argc = 0, char ** argv = 0 ) MouseRelease ( QWidget * widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1 ) MousePress ( QWidget * widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1 ) MouseMove ( QWidget * widget, QPoint pos = QPoint(), int delay = -1 ) MouseDClick ( QWidget * widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1 ) MouseClick ( QWidget * widget, Qt::MouseButton button, Qt::KeyboardModifiers modifier = 0, QPoint pos = QPoint(), int delay = -1 ) KeyRelease ( QWidget * widget, char key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) KeyRelease ( QWidget * widget, Qt::Key key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) KeyPress ( QWidget * widget, char key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) KeyPress ( QWidget * widget, Qt::Key key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) KeyEvent ( KeyAction action, QWidget * widget, char ascii, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) KeyEvent ( KeyAction action, QWidget * widget, Qt::Key key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) Ke圜licks ( QWidget * widget, const QString & sequence, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) Ke圜lick ( QWidget * widget, char key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) Ke圜lick ( QWidget * widget, Qt::Key key, Qt::KeyboardModifiers modifier = Qt::NoModifier, int delay = -1 ) IgnoreMessage ( QtMsgType type, const char * message ) #include ĪttributeIndex ĪddColumn ( const char * name, T * dummy = 0 )īenchmarkMetricName ( QBenchmarkMetric metric )īenchmarkMetricUnit ( QBenchmarkMetric metric ) The QTest namespace contains all the functions and declarations that are related to the QTestLib tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |