From the user's perspective, it should be possible to access a verb by selecting the object and choosing from the Edit menu. Multiple verbs supported by the server application should be listed as submenu items of the Edit Object menu item.
11.4.1.1 Invoking Verbs for an OLE Object Test Case Cli-9
Precondition
The client application contains an embedded object.
Procedure
1.Select the object in the client application and choose Edit <Object Name>.
2.Choose different verbs supported by the server application.
Postcondition
If the server application is an MDI application, the client DLL should start it and pass the data for the embedded object. The server application will behave depending on the particular verb invoked.
If the editor for the object is already open, double-clicking the object in the client application should invoke the verb again and not start another instance of the server application. (Step 2 in the preceding procedure should not start another instance).
Similar Test Cases
Try all the verbs and verify that the behavior matches the behavior of the server application.
Choosing either Play or Edit will cause the server application to appear on the top of the window stack. If Play is chosen with the SRTEST.EXE application, SRTEST.EXE will beep ten times. If Edit is chosen, the document will appear in the top window.
If the client application allows the selection of multiple objects, try to invoke more than one embedded object in this manner from the client application.
If the test application sends ColorPalette, check the results with SRTEST.EXE or any other server application that accepts the Palette. Try with a server application that does not accept ColorPalette.
If the test application sends Printer Target Device, check the results.
11.4.1.2 Invoking Edit to Open a Linked Object in the Server Application Test Case Cli-10
Precondition
A client application with an open document containing more than one linked object.
Procedure
1.Invoke edit on the linked object.
2.Invoke edit on the linked object whose editor is already open.
Postcondition
If the server application is an SDI (Single Document Interface) application, it should start the server application with the document name. The window title in the server application should display the document name.
Any changes made to the document in the server application should be immediately visible in the client application, unless the client application created the linked object with OnCall Update. In this case, the change is not immediately visible.
Similar Test Cases
If the test application allows the selection of multiple objects, try to invoke more than one linked object this way from the client application.
Use a server application that is an SDI application and block or make busy the server application. Try to invoke edit in the client application.
Special Cases
After creating a link to a document, rename or delete the document and try to edit the object. The client application should indicate a failure and allow for a change in the link.
If the client application has a link to the document on the network, the document will be opened and the link will be established. If there is no network connection, the OLE DLL will attempt to establish a connection to the network server and, if successful, open the document. A dialog box listing available drives may facilitate the selection of the appropriate drive.