11.6.2 Closing a Document - Server Application Tests

From the user's perspective, if the server opened the document to be closed in order to edit an object embedded in a client application, the server application should prompt to Update the client application object with the new data (if the object data has changed). If an update is requested, the server application should send the new object data to the client application.

11.6.2.1 Closing an Embedded Object from CLTEST.EXE Test Case Svr-17

Precondition

CLTEST.EXE contains an embedded object from an MDI server application.

The embedded object is open for editing in the server application.

Procedure

In CLTEST.EXE, choose Close.

Postcondition

The embedded object (document) in the server application will close.

The server application does not display a message box prompting the user to update changes before closing; therefore, all the changes made in server application document are lost.

If there is no other document open in the server application and the server application was started from a client application, the server application will close.

Similar Test Cases

Try this test with a non-MDI server application.

Try this test for a linked object, in which case the server application should not close; however, the link should be broken.

11.6.2.2 Closing a Server Application Document Containing an Embedded Object Test Case Svr-18

Precondition

The server application is running with an embedded object (document).

Procedure

1.Edit the object in the server application document.

2.Choose File Close in the server application. Respond with Yes when prompted whether to update the object.

Postcondition

The object in the client application should be updated to show the changes.

Similar Test Cases

Try the above procedure with a linked document. The server application should not cause any changes to the object in the client application.

Repeat the preceding procedure, but select No when prompted to update the object. That is, the client application should not be updated.

Repeat the preceding procedure, but select Cancel when asked whether to update the object. The conversation between the client application and the server application should not be broken.

Start the server application by choosing Insert New and repeat the preceding procedure.

Start the server application by choosing Insert Template and repeat the preceding procedure.

11.6.2.3 Closing a Single-Instance MDI Server Application Document Test Case Svr-19

Precondition

A server application has multiple documents open. At least one document has an open embedded object.

Procedure

1.Close the document that has the open embedded object. Select Yes when prompted for a decision whether to update.

2.Close the document that does not have open objects.

Postcondition

The client application containing a document with an open object should prompt the user to update the object when the document is closed.

Closing the document without open objects should not break links to the other open objects.

Similar Test Cases

Try this test with a server application where some of the documents were opened by invoking Edit from the client application and where others were opened directly by choosing File Open in the server application.

Try different cases where the server application is started from the client application and when it is started from the Program Manager.

Repeat the preceding procedure, but select No at Step 1. The client application document should not be updated.

Repeat the preceding procedure, but select Cancel at Step 1. The conversation should not be broken.

Make sure that Closed (not Save) notification is sent to the client application when the document is closed.