summaryrefslogtreecommitdiff
path: root/tests/system/suite_SCOM/tst_SCOM02/test.py
diff options
context:
space:
mode:
authorJan Kerekes <jan.kerekes@ixonos.com>2012-02-16 15:07:31 +0100
committerRobert Löhning <robert.loehning@nokia.com>2012-04-02 15:38:21 +0200
commit5254e3e547f1957a4bd08da432a63882d32ea66a (patch)
tree8bd6fb766fe4d7983d51ae4c10f7383ccc0dd443 /tests/system/suite_SCOM/tst_SCOM02/test.py
parent7e4e06796ea1c4c2dd0fb9f0c12b875f0c878590 (diff)
downloadqt-creator-5254e3e547f1957a4bd08da432a63882d32ea66a.tar.gz
Added new test cases/suite for simple project compilation
initial commit Change-Id: I06d211ba9878852839cd4774b930efd8cde244ae Reviewed-by: Christian Stenger <christian.stenger@nokia.com> Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
Diffstat (limited to 'tests/system/suite_SCOM/tst_SCOM02/test.py')
-rw-r--r--tests/system/suite_SCOM/tst_SCOM02/test.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/system/suite_SCOM/tst_SCOM02/test.py b/tests/system/suite_SCOM/tst_SCOM02/test.py
new file mode 100644
index 0000000000..82b94a2051
--- /dev/null
+++ b/tests/system/suite_SCOM/tst_SCOM02/test.py
@@ -0,0 +1,25 @@
+source("../../shared/qtcreator.py")
+source("../../shared/suites_qtta.py")
+
+# entry of test
+def main():
+ startApplication("qtcreator" + SettingsPath)
+ # create qt quick application
+ createNewQtQuickApplication(tempDir(), "SampleApp")
+ # create syntax error in qml file
+ doubleClickItem(":Qt Creator_Utils::NavigationTreeView", "SampleApp.QML.qml/SampleApp.main\\.qml", 5, 5, 0, Qt.LeftButton)
+ if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Text {", "SyntaxError"):
+ invokeMenuItem("File", "Exit")
+ return
+ # save all to invoke qml parsing
+ invokeMenuItem("File", "Save All")
+ # open issues list view
+ ensureChecked(waitForObject(":Qt Creator_Core::Internal::IssuesPaneToggleButton"))
+ issuesView = waitForObject(":Qt Creator.Issues_QListView")
+ # verify that error is properly reported
+ test.verify(checkSyntaxError(issuesView, ["Unexpected token"], True),
+ "Verifying QML syntax error while parsing simple qt quick application.")
+ # exit qt creator
+ invokeMenuItem("File", "Exit")
+# no cleanup needed, as whole testing directory gets properly removed after test finished
+