11.3.6 Insert Object Command - Server Application Tests

From the user's perspective, if the server application is a single-instance application and an instance is already running, the server application will become the top window and open a new document for editing. If the server is a multi-instance application, a new instance will be started and the server application will rise to the top with the new document. At closing, the user should be prompted to update the client application. If the user chooses to update, a new object should be created in the client application using the picture data from the server application.

From the developer's perspective, the server application method, SrvrCreate, should be called. The server application should start a new document and allow the user to edit it. At closing, the server application should prompt the user to update the object.

11.3.6.1 Inserting an Embedded Object in CLTEST.EXE Test Case Svr-5

Precondition

The server application has registered its object type.

Procedure

1.Use the Insert Object command in CLTEST.EXE to display a list box showing the server applications installed in the system. Choose a server application to test.

The server application should be started and it should open an empty document for editing.

2.Edit the document in the server application and then quit the server application.

Post Conditions

The edited object with all of the changes should be inserted into the client application document.

Activating the object should invoke the server application with the object present.

Similar Cases

The client application calls OleCreate to create an embedded object in this test.

If the presentation format is not specified as a parameter, the client DLL assumes that Picture is the presentation format. However, if a format is specified, the client DLL determines if the server application supports it.

Different formats should be passed to CLTEST.EXE to determine if the server supports all formats. Also, check if the server application is able to create the object.

If the client application has started the server application using OleCreateInvisible rather than OleCreate, the application is hidden. In this test, the client application will send information to the server application, causing the server to display the picture for editing.

Special Case

Choose the Insert Object command with an older client application such as Powerpoint Version 2.x. There is a special test for server applications that have a single .EXE file but two or more class names. If such servers use the OLE DLL, they will not be started.

11.3.6.2 Inserting an Embedded Object in CLTEST.EXE from a File Test Case Svr-6

Precondition

The server application supports files with file extensions defined in the registration database.

Procedure

1.Use the Insert Template command to display a list box showing the server application editable files. Choose a file that corresponds to the server application.

The server application should be started and the selected file should be opened for editing.

2.Edit the file and then quit the server application.

Results

The edited object with all the changes should be inserted into the client application document.

Activating the object should start the server application with the object present. Note that this object has no link to its parent file; changing the file does not change the embedded object.

Similar Test cases

Try different files in different directories. Try cases where the server application is in one directory and its files are in another directories.

Also try cases where there are several different objects in a server application document.