11.6.7 Opening a Document - Client Application Test

11.6.7.1 Opening an Existing Document in a SDI Client Application Test Case Cli-17

Precondition

A SDI client application has an open document.

Procedure

1.In the client application, choose File Open to select a document. The client application will try to close the currently opened document. Follow the cases detailed in the Create a Document section.

2.In the open document, select each object and check the Edit menu for a submenu list of the verbs allowed for the object.

3.Invoke each verb on the list.

Postcondition

Check that all of the object properties are preserved; check the size of presentation.

Test that all of the verbs act as expected for the object.

Similar Test Cases

Repeat the preceding procedure for a document that has objects created from different server applications. Verify that double-clicking starts the appropriate editor.

11.6.7.2 Opening an Existing Document Containing Embedded and Linked Objects from the Same Server Application Test Case Cli-18

Precondition

The client application has a document with embedded and linked objects from one server application.

Procedure

1.In the client application, choose File Open and open the document.

2.For each linked object, select the object and choose the Edit Links command. The Edit Links dialog box should indicate the appropriate link information.

3.Double-click a linked object. This should start the server application with the object's source document. If more than one linked object has a link to the same server application document, no more than one instance of the server application should be opened.

Postcondition

Double-clicking on each embedded object may invoke a separate editor (if Edit is the default verb of the object). Double-clicking on a linked object establishes a link to its document, but not a link to another object.

Similar Test Cases

Repeat the preceding procedure when objects are linked to different documents of the same server application.

Open a client application document that has links to an object in a server application document. If the server application document is open, the link is established. If the object in the server application differs from the client object, the client application will display the latest object (provided by the server).

If the server application document is open and linked, but is blocked, the object will not be fully created until it is unblocked. If a document is opened with one or more blocked links, check how the client application responds to File New, File Close, File Open (another file or the same file).

11.6.7.3 Opening an Existing Document Containing Embedded and Linked Objects from Multiple Documents in Different Server Applications Test Case Cli-19

Precondition

A document containing a variety of embedded and linked objects from a variety of server application documents. This tests how the client application handles saving, reading, and other operations for multiple objects of different kinds.

Procedure

1.In the client application select the File Open command and open the document.

2.Check the Links dialog box. It should indicate the appropriate information for each linked object.

3.Invoke Edit on each embedded object. This should start the appropriate editor for each object.

4.Invoke Edit on a linked object. This should start the corresponding server application and the source document should be opened.

Postcondition

A separate editor is started each time the user chooses to edit an embedded object. Invoking Edit on a linked object establishes a link to its document. Check each open connection and make sure it is appropriate.

Special Cases

Try objects larger than 64K.

Some applications allow all of the changes made to a document to be discarded before rereading the document from disk. In this case, make sure that all of the old links are closed at reading time.

For linked objects, the link will be reestablished if the server application document is open. Check if the client application is calling OleRevertClientDoc; this function does not return any value now but may return some value to a link manager.

If the client application uses OleSetTargetDevice to get a different picture, make sure that the picture presentation does not change when the document is read again and the default printer is attached. Also check for proper presentation when the printer setup is changed within the client application. For example, a Microsoft Excel chart is monochrome when a plotter is the default printer, but is colored if a color printer is chosen.