diff options
author | Christian Stenger <christian.stenger@digia.com> | 2013-04-19 13:52:38 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@digia.com> | 2013-04-22 14:12:16 +0200 |
commit | a50f4073c85ed15fafaf44b1d22cebb6ccbdef2e (patch) | |
tree | e9d895f07cfbf26d7b9b46ac8292dfb6f2c95f8c /tests | |
parent | 7076272bf5f0555a4badd8a7bcbb048c07ae6b34 (diff) | |
download | qt-creator-a50f4073c85ed15fafaf44b1d22cebb6ccbdef2e.tar.gz |
Squish: Improved QmlProfiler test
Change-Id: I2ad50fac22a02de79643eb4d8a06c8736bb8539c
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/suite_debugger/tst_simple_analyze/test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/system/suite_debugger/tst_simple_analyze/test.py b/tests/system/suite_debugger/tst_simple_analyze/test.py index 293fe1b05b..56ad572dd7 100644 --- a/tests/system/suite_debugger/tst_simple_analyze/test.py +++ b/tests/system/suite_debugger/tst_simple_analyze/test.py @@ -40,6 +40,12 @@ def main(): allowAppThroughWinFW(workingDir, projectName, False) switchViewTo(ViewConstants.ANALYZE) selectFromCombo(":Analyzer Toolbar.AnalyzerManagerToolBox_QComboBox", "QML Profiler") + recordButton = waitForObject("{container=':Qt Creator.Analyzer Toolbar_QDockWidget' " + "type='QToolButton' unnamed='1' visible='1' " + "toolTip?='*able profiling'}") + if not test.verify(recordButton.checked, "Verifying recording is enabled."): + test.log("Enabling recording for the test run") + clickButton(recordButton) clickButton(waitForObject(":Analyzer Toolbar.Start_QToolButton")) stopButton = waitForObject(":Qt Creator.Stop_QToolButton") elapsedLabel = waitForObject(":Analyzer Toolbar.Elapsed:_QLabel", 3000) |