11.5.2 Updating an Object - Server Application Tests

11.5.2.1 Changing and Updating an Embedded Object from the Client Application While the Server Application Is Running Test Case Svr-15

To begin the test, paste an embedded object in CLTEST.EXE and change the size of the object. When the object is updated, CLTEST.EXE will send the native data and new bounds information to the server application. If the server application accepts the bounds it will pass the new picture data (with the boundary information) to CLTEST.EXE.

Precondition

The client application document contains an embedded object from an MDI server application. Use the test application CLTEST.EXE.

The server application is running.

The embedded object is not open for editing.

Procedure

1.In CLTEST.EXE, change the size of the object.

2.In CLTEST.EXE, choose the Update Now command.

Postcondition

If the server application handles SetBounds, it will return new picture data to CLTEST.EXE.

There will not be any new document open. A new document might be opened for update in the server application momentarily, but it will be closed automatically by the client application.

All of the earlier documents opened in the server application are still open.

Similar Test Cases

Try this test with a non-MDI server application.

Try it for more than one client application object belonging to the same server application.

Special Cases

If the server application supports multiple class names, try this test for more than one embedded object, each having a different class name.

Try to update when the server application is blocked or busy. Check the object behavior as in the earlier cases.

11.5.2.2 Updating an Out-of-Date Linked Object from a Client Application Test Case Svr-16

Precondition

The client application document, CLTEST.EXE, contains a linked object.

The server application is running and the document associated with the linked object is open.

The object in the client application is not up to date with the object in the server application.

The latter two conditions indicate that the link is not open between the client application and the server application.

Procedure

In CLTEST.EXE, choose the Update Now command.

Postcondition

The server application will return new picture data to CLTEST.EXE.

All the server application documents are still open.

The connection between the linked object and the server application document is not established. Check it by changing data in the server application.

Similar Test Cases

Try this test with a non-MDI server application.

Try it for more than one client application object belonging to the same document.

Try to update when the document is not open and the client application object is older that the server application object. Make sure that no new documents are open.

Special Cases

If the server application supports multiple class names, try this test for more than one linked object and on objects belonging to different classes.

Try this test when the server application is blocked or busy.