aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_debugger/tst_build_new_project
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@nokia.com>2011-10-05 13:18:42 +0200
committerRobert Löhning <robert.loehning@nokia.com>2011-10-05 13:54:09 +0200
commit61714ec4c99357259af64b673c45810343c209aa (patch)
treed430acbb96f9ef4493cc0e90ed28a5ede2baff66 /tests/system/suite_debugger/tst_build_new_project
parent81ceeeff0dbdddd3324651f359668cfc4fc98c52 (diff)
Squish: Added test suite for debugger related tests
Change-Id: I11c114787cc3c2721147d55c86f87aaf31daec9e Reviewed-on: http://codereview.qt-project.org/5644 Reviewed-by: Christian Stenger <christian.stenger@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'tests/system/suite_debugger/tst_build_new_project')
-rw-r--r--tests/system/suite_debugger/tst_build_new_project/test.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/system/suite_debugger/tst_build_new_project/test.py b/tests/system/suite_debugger/tst_build_new_project/test.py
new file mode 100644
index 0000000000..1ace948e1a
--- /dev/null
+++ b/tests/system/suite_debugger/tst_build_new_project/test.py
@@ -0,0 +1,24 @@
+source("../../shared/qtcreator.py")
+
+projectsPath = tempDir()
+project = "SquishProject"
+
+def main():
+ startApplication("qtcreator" + SettingsPath)
+ createProject_Qt_GUI(projectsPath, project, defaultQtVersion, 1)
+ clickButton(verifyEnabled(":*Qt Creator.Run_Core::Internal::FancyToolButton"))
+ waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)")
+ playButton = verifyEnabled(":Qt Creator_QToolButton", False)
+ stopButton = verifyEnabled(":Qt Creator.Stop_QToolButton")
+ clickButton(stopButton)
+ test.verify(playButton.enabled)
+ test.compare(stopButton.enabled, False)
+ sendEvent("QCloseEvent", waitForObject(":Qt Creator_Core::Internal::MainWindow"))
+ waitForCleanShutdown()
+
+def init():
+ cleanup()
+
+def cleanup():
+ deleteDirIfExists(projectsPath + os.sep + project)
+ deleteDirIfExists(shadowBuildDir(projectsPath, project, defaultQtVersion, 1))