11.6.10 Saving a File - Server Application Tests

From the user's perspective, saving a file will cause the server application to save the document. If the document to be saved is a currently embedded document opened from the client application, the server application will update the object in the client application and break the connection.

From the developer's perspective, if the document to be saved is an embedded document opened from the client application, the server application should send a saved notification message to the client application callback (or use OleSavedServerDoc). If, during the save operation, the document name is changed, the OleRenameServerDoc should be called which will break the connection for the embedded document.

11.6.10.1 Saving an Existing Server Application Document when a Linked Client Application Object Is Open Test Case Svr-24

Precondition

A client application contains a linked object. There is a server application document with an open link to the linked object. This test verifies that the link is preserved by the server application after a File Save operation.

Procedure

Choose File Save in the server application.

Postcondition

The link should remain intact. Changing the object in the server application should update the object in the client application.

Similar Test Cases

Open links in the following ways:

Choose Edit Copy in the server application and Edit Paste Link in the client application. This creates a new linked object.

Start the server application by double-clicking the linked object in the client application.

11.6.10.2 Saving an Existing Server Application Document when a Client Application Linked Object Is Open with Update on Save Test Case Svr-25

Precondition

The server application is open with a saved document. This test checks to see if the server application sends a save notification to the client when it saves the file.

Procedure

1.In the server application, choose Edit Paste Link in CLTEST.EXE. Choose Edit Properties to display the Link Properties dialog box.

2.Select the Update OnSave option and press OK.

3.Make changes to the document in the server application and save the document in the server application.

Postcondition

The linked object in CLTEST.EXE should be updated.

The link should be kept. The conversation should not be broken.

11.6.10.3 Replacing the File Save Command with the File Update Command Test Case Svr-26

When a server application is acting as an editor for an embedded object, File Save should be replaced by File Update.