Squish: Update suite_WELP

Change-Id: Iba47a015eb87ad759933dc51bacceaf29d3da57c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Robert Loehning
2016-03-29 14:15:53 +02:00
parent db2ab92801
commit 39e8698290
2 changed files with 8 additions and 9 deletions

View File

@@ -80,11 +80,10 @@ def main():
textUrls = {'Online Community':'http://forum.qt.io',
'Blogs':'http://planet.qt.io',
'Qt Account':'https://account.qt.io',
'Qt Cloud Services':'https://developer.qtcloudservices.com',
'User Guide':'qthelp://org.qt-project.qtcreator/doc/index.html'
}
for text, url in textUrls.items():
qmlItem = getQmlItem("LinkedText", welcomePage, False, "text='%s'" % text)
qmlItem = getQmlItem("Text", welcomePage, False, "text='%s'" % text)
if test.verify(checkIfObjectExists(qmlItem),
"Verifying: Link to %s exists." % text):
itemObj = findObject(qmlItem)

View File

@@ -50,7 +50,7 @@ def main():
typePropDet = (("Button", "text='Get Started Now' id='gettingStartedButton'",
"Get Started Now button"),
("Text", "text='Sessions' id='sessionsTitle'", "Sessions section"),
("Text", "text='default' id='text'", "default session listed"),
("Text", "text='default'", "default session listed"),
("Text", "text='Recent Projects' id='recentProjectsTitle'", "Projects section"),
)
checkTypeAndProperties(typePropDet)
@@ -63,10 +63,10 @@ def main():
# go to "Welcome page" again and verify updated information
switchViewTo(ViewConstants.WELCOME)
typePropDet = (("Text", "text='Sessions' id='sessionsTitle'", "Sessions section"),
("Text", "text='default (current session)' id='text'",
("Text", "text='default (current session)'",
"default session as current listed"),
("Text", "text='Recent Projects' id='recentProjectsTitle'", "Projects section"),
("LinkedText", "text='SampleApp' id='projectNameText'",
("Text", "text='SampleApp'",
"current project listed in projects section")
)
checkTypeAndProperties(typePropDet)
@@ -80,10 +80,10 @@ def main():
"Verifying: The project is opened in 'Edit' mode after configuring.")
# go to "Welcome page" again and check if there is an information about recent projects
switchViewTo(ViewConstants.WELCOME)
test.verify(checkIfObjectExists(getQmlItem("LinkedText", welcomePage, False,
"text='propertyanimation' id='projectNameText'")) and
checkIfObjectExists(getQmlItem("LinkedText", welcomePage, False,
"text='SampleApp' id='projectNameText'")),
test.verify(checkIfObjectExists(getQmlItem("Text", welcomePage, False,
"text='propertyanimation'")) and
checkIfObjectExists(getQmlItem("Text", welcomePage, False,
"text='SampleApp'")),
"Verifying: 'Welcome page' displays information about recently created and "
"opened projects.")
# exit Qt Creator