11.6.4 Creating a New Document - Server Application Tests

From the user's perspective, if an SDI server application document is opened by a client application and the object data has been changed, the server application will prompt the user to update the changes when the File New command is chosen.

From the developer's perspective, a SDI server application should close the earlier document and register the new server application document using the functions in SHELL.DLL.

11.6.4.1 Creating a New Document from a SDI Server Application Containing an Embedded Object Test Case Svr-20

Precondition

A client application document contains an embedded object from a SDI server application.

Procedure

1.In the client application, open the embedded object for editing.

2.In the server application, modify the contents of the object and choose File New to open a new document.

The server application should ask for a decision on updating the client application object. If an update is desired, the server application should update the client application object.

3.In the client application, edit the object again.

Postcondition

A new instance of the server application should be launched to edit the object. The original instance of the server application should not be activated.

Similar Test Cases

Repeat the preceding procedure, but select No in Step 3. The object in the client application should not be updated.

Repeat the preceding procedure. Use File New and select Cancel at Step 3. The conversation between the client application and the server application should not be broken.

Repeat the preceding procedure, but choose Insert New at Step 1.

Repeat the preceding procedure, but choose Insert Template at Step 1.

If the server application is an MDI application, make sure that opening a new document does not break already established links with other open documents.

11.6.4.2 Creating a New Document in a SDI Server Application Containing a Document with a Linked Object Test Case Svr-21

Precondition

A client application containing a linked object.

Procedure

1.In the client application, open the link for editing.

2.In the server application, choose File New to open a new document.

If the server application document was changed, the server application should ask whether the document should be saved. Save the document to continue the File New operation.

The original conversation should be broken

3.In the client application, open the link again.

Postcondition

A new instance of the server application should be launched to edit the link.

Similar Test Cases

Repeat the preceding procedure, but choose Cancel in the File New operation in Step 2. The conversation between the client application and server application should not be broken.

If the server application is an MDI application, make sure that opening a new document does not break established links with other open documents.