f_sec_incorrect_password.inc: testcase tIncorrectPassword( filetypeID as string )
Save and load files with incorrect password
This test saves a file from each application with a password. Then the
document is closed and reloaded. When prompted an icorrect password is
entered. The document will not be loaded then, an error is displayed.
Get the workpath from configuration
Get the suffix for the current filetype
Delete the workfile (just in case it still exists from prior run)
Ensure that we have exactly one open document
Change the document so the 'save' button becomes active
Click on FileSave
Check the password-checkbox, name the file and click 'Save'
Enter a name for the file, click on "Save"
Adjust the filter if it differs from "curren"
On the password-dialog enter a password and confirm it (confirm with
incorrect password on first attempt), close warning, reenter correct pair
of passwords.
Close the document, verify that only one document remains open
Load the file again, when prompted enter incorrect password