forked from qt-creator/qt-creator
Squish: Added test for command line output
Change-Id: I4a25f971d41acd5e349e753602d4ae3aaafb4e32 Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
3fd55ef09b
commit
7dbc6014e3
@@ -221,3 +221,10 @@ def addHelpDocumentationFromSDK():
|
||||
clickButton(waitForObject("{type='QPushButton' name='addButton' visible='1' text='Add...'}"))
|
||||
selectFromFileDialog("%s/Documentation/qt.qch" % sdkPath)
|
||||
clickButton(waitForObject(":Options.OK_QPushButton"))
|
||||
|
||||
def verifyOutput(string, substring, outputFrom, outputIn):
|
||||
index = string.find(substring)
|
||||
if (index == -1):
|
||||
test.fail("Output from " + outputFrom + " could not be found in " + outputIn)
|
||||
else:
|
||||
test.passes("Output from " + outputFrom + " found at position " + str(index) + " of " + outputIn)
|
||||
|
||||
Reference in New Issue
Block a user