Squish: Update tst_rename_file

Change-Id: I1b7e8ef7c112e01ed2403c348234a482b050cf49
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2019-11-18 16:34:01 +01:00
parent 5c64d59d8a
commit 4a17ac7760

View File

@@ -110,6 +110,10 @@ def renameFile(projectDir, proFile, branch, oldname, newname):
"Only the filename without the extension is selected?") "Only the filename without the extension is selected?")
replaceEditorContent(replaceEdit, newname) replaceEditorContent(replaceEdit, newname)
type(replaceEdit, "<Return>") type(replaceEdit, "<Return>")
if oldname == "adding.qrc":
clickButton(waitForObject("{text='No' type='QPushButton' unnamed='1' visible='1' "
"window={type='QMessageBox' unnamed='1' visible='1' "
" windowTitle='Rename More Files?'}}"))
test.verify(waitFor("os.path.exists(newFilePath)", 1000), test.verify(waitFor("os.path.exists(newFilePath)", 1000),
"Verify that file with new name exists: %s" % newFilePath) "Verify that file with new name exists: %s" % newFilePath)
test.compare(readFile(newFilePath), oldFileText, test.compare(readFile(newFilePath), oldFileText,