The Cytoscape Test Plan
The purpose of this document is to describe testing procedures to ensure that new releases of Cytoscape do not break existing functionality. The release is broken down into two general sections: Coverage Testing and Workflow Testing.
Coverage Testing
This section describes tests for Cytoscape that must be run by hand.
Tool Bar
Open Session File
Procedure
- Start Cytoscape.
- Click the "Open Session File" icon on the Toolbar.
- Open a session file.
Expected Results
- The "Open a Session File" dialog should appear.
- The network contained in the session file should be visible in Cytoscape.
Save Current Session As
Procedure
- Start Cytoscape.
- Click the "Save Current Session As" icon on the Toolbar.
Expected Results
- A "Saving Cytoscape Session" status window should appear.
Zoom out / Zoom in
Procedure
- Start Cytoscape.
- Load a network.
- Click the "Zoom Out" icon on the Toolbar.
- Click the "Zoom In" icon on the Toolbar.
Expected Results
- Clicking "Zoom Out" should result in the view of the network being more zoomed out and less detailed.
- Clicking "Zoom In" should result in the view of the network being more zoomed in and more detailed.
Zoom to display all of current network
Procedure
- Start Cytoscape.
- Load a network.
- Click the "Zoom to display all of current network" icon on the Toolbar.
Expected Results
- The view of the network should zoom in or out to fit the entire network in the main window at the highest possible zoom factor.
Help
Procedure
- Start Cytoscape.
- Click the "Help" icon on the Toolbar.
Expected Results
- The Cytoscape Users Manual should open.
Open VizMapper
Procedure
- Start Cytoscape.
Click the "Open VizMapper" icon on the Toolbar.
Expected Results
The VizMapper interface should open in Control Panel.
Use Filters
Procedure
- Start Cytoscape.
- Click the "Use Filters" icon on the Toolbar.
Expected Results
- The Filters interface should open in Control Panel.
Search
Procedure
- Start Cytoscape.
- Load a network.
- Type a search term in the "Search" field in the Toolbar. For example, search for the ID of one of the nodes in the network.
Expected Results
- If you searched for a node that is in the currently loaded network, the node will become highlighted.
File MenuMike File -> New through File -> Save As
File -> New -> Session
Procedure
- Start Cytoscape.
Click File -> New -> Session
- Load a network.
Click File -> New -> Session
- Click yes.
- Repeat, Click no.
Expected Results
- Nothing should happen because no networks have been loaded, there is no session yet.
- You should be prompted with a dialog that reminds you that your current session will be lost.
- If you click yes, you should get a new session with no networks in the network manager.
- When you click no, you should see your existing session without any changes.
File -> New -> Network -> Empty Network
Procedure
- Start Cytoscape.
Click File -> New -> Network -> Empty Network
Expected Results
- An empty network and view should be created. The Control Panel should be changed to the Editor Tab.
File -> New -> Network -> Construct network using cPath...
Procedure
- Start Cytoscape.
Click File -> New -> Network -> Construct network using cPath...
- Type the example "p53" into the cPath dialog.
- Change the species drop-down menu to "Homo Sapiens"
- Click Help then close the Help dialog.
- Click About the close the About dialog.
- Click Search.
- Click the "X" in the dialog frame to close the cPath dialog.
Expected Results
- The cPath dialog should appear.
- Another dialog should be displayed with text describing the features of the cPath dialog.
- Another dialog should be displayed with text describing the authors of the software.
- A network should be loaded with more than one node.
- The dialog should close.
File -> New -> Network -> Clone current network
Procedure
- Start Cytoscape.
- Load a network.
- Lay the network out in something other than a grid.
- Change the visual style to something other than default.
Click File -> New -> Network -> Clone current network.
Expected Results
- You should see a new network with the same name as the previous network, but with the word " Copy" appended to it. This view should have the exact same node layout and visual style as the original network.
File -> New -> Network -> From selected nodes, all edges
Procedure
- Start Cytoscape.
- Load Network.
- Make sure that NO nodes or edges are selected (i.e. click on the view somewhere other than on a node or edge).
Click File -> New -> Network -> From selected nodes, all edges.
- Select some nodes and edges in the view.
Click File -> New -> Network -> From selected nodes, all edges.
Expected Results
- You shouldn't be able to click this option because it should be grayed out. This is because no nodes or edges are currently selected.
- A new network and view should be created. The nodes should have the same layout as the parent network.
File -> New -> Network -> From selected nodes, selected edges
Procedure
- Start Cytoscape.
- Load Network.
- Make sure that NO nodes or edges are selected (i.e. click on the view somewhere other than on a node or edge).
Click File -> New -> Network -> From selected nodes, selected edges.
Click Select -> Mouse Drag Selects -> Nodes Only.
- Select some nodes in the view.
Click File -> New -> Network -> From selected nodes, selected edges.
Expected Results
- You shouldn't be able to click this option because it should be grayed out. This is because no nodes or edges are currently selected.
- A new network and view should be created. This network should only include the selected nodes and no edges. This network will be laid out in the default grid layout.
Edit Menu
View Menu
Piet
Select Menu
Piet
Layout Menu
Plugins Menu
Plugins -> Manage Plugins -> Install
Procedure
- Start Cytoscape
Click Plugins -> Manage Plugins.
- In the Manage Plugins window, expand the "Currently Installed" folder by double-clicking the folder icon, then expand the Core folder by clicking on the arrow symbol next to it.
- Select any of the plugins listed by clicking on it.
- Expand the "Available for Install" folder.
- Select any plugin that is not already installed. Click the Install button.
Expected Results
- The Manage Plugins window should open with folder "Currently Installed" and "Available for Install" in the left panel. The first time Manage Plugins is selected in an instance of Cytoscape, a connection status window should open before the Manage Plugins window appears.
- Under "Currently Installed" and "Available for Install" there should be subfolders listing individual plugins.
- When clicking on a plugin, information about the plugin should appear in the right panel.
- During plugin installation, you should get an installation progress window. When installation is complete, a message in red is displayed under the left panel stating that the installation is complete.
- The newly installed plugin should be visible under "Currently Installed" folder.
Plugins -> Manage Plugins -> Change Download Site
Procedure
In the Plugin Manager window, click the "Change Download Site" button.
- In the drop-down menu, change the download site to Test and then click the Ok button.
- In the Manage Plugin main window, click the "Change Download Site" button again.
- In the Plugin Download Sites window, click the "Add Site" button.
- Click the "Add" button.
- Type in a name and a URL (any) and click OK.
- Click OK to exit the Bookmark Manager. Click OK in the Plugin Download Sites window to get back to the Plugin Manager main window. Click the Close button to exit the Plugin Manager and close Cytoscape.
Expected Results
- A Plugin Download Sites window will appear with a drop-down menu for selecting download site.
- A progress bar should appear. When the download site has been switched, you should see a different folder structure under Available for Install.
- When selecting the Add Site button in the Plugin Download Sites window, a Bookmark manager window will appear.
- When clicking Add in the Bookmark manager, an Add new bookmark window will appear.
- After adding a new site, the new download site will appear in the list of Bookmarks.
Plugins -> Update Plugins
Procedure
- Start Cytoscape
Click Plugins -> Update Plugins
Expected Results
- A progress window will appear informing you of the status of updates. If no updates are available for installed plugins, a message will appear telling you that no updates where available.
Plugins -> Merge networks
Procedure
- Start Cytoscape
- Load two or more networks.
Click Plugins -> Merge networks.
- To select networks, click on the network and then click the right arrow. Select two or more networks from the list.
- Select an operation in the Operation drop-down menu.
- Click OK to merge the networks.
Expected Results
- A Merge Networks dialog should appear with the loaded networks listed under Available Networks.
- A new network view will open with the results of the merge.
Help Menu
Control Panel - Network
Control Panel - VizMapper
Control Panel - Editor
There are multiple tests for the Cytoscape Editor:
Control Panel - Editor -> add a simple interaction
Procedure
Click File -> New -> Network -> Empty Network to bring up a new network and the editor palette.
click on a node in the editor Palette and drag/drop it onto the network view to form node0.
repeat step 2 to add a second node to the network view (node1).
click on an edge in the editor palette, drag/drop it onto onto node0.
move the mouse to drag the rubberband line from node0 to node1.
release mouse when over node1.
Expected Results
You should see a network of two nodes, node0 and node1, connected by a single edge.
Control Panel - Editor -> keyboard accelerators
Procedure
Click File -> New -> Network -> Empty Network to bring up a new network and the editor palette.
- control-click on an empty space on the canvas to add a node to the network view.
- repeat step 2 to add a second node to the network view
control click on one of the two added nodes to begin an edge. This will be source node.
move the mouse to drag the rubberband line from source node to the other node (target node).
release mouse when over target node.
Expected Results
You should see a network of two nodes, source node and target node, connected by a single edge.
Control Panel - Editor -> connect selected nodes
Procedure
Click File -> New -> Network -> Empty Network to bring up a new network and the editor palette.
- control-click on an empty space on the canvas to add a node to the network view.
repeat step 2 several times to add other nodes to the network view '
- select all the nodes by clicking on an empty space on the canvas, then dragging a rubberband rectangle around all the nodes (or use Control-A keyboard accelerator)
select Edit -> Connect Selected Nodes menu item.
Expected Results
- You should see a clique, i.e. there is an edge connecting every pair of nodes
Control Panel - Filters
Data Panel - Node, Edge, and Attribute Browser
Workflow Testing
The goal of this section is to verify that the various [:Workflows:workflows] described for Cytoscape do actually work. In addition to the workflows described, we will also verify that each [:Presentations:tutorial] also works. The output of these tests will be different than simply a checklist. The goal is to capture the steps in the workflow in a screencapture movie. The movie should capture the screen as a user follows each step in the workflow or tutorial. Audio commentary is preferred since this allows to both see and hear the steps being followed.