Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Sequoyah/unit test"
(→Setting up) |
|||
Line 5: | Line 5: | ||
==Setting up== | ==Setting up== | ||
− | Set up a new SVN connection, using the following URL: http://dev.eclipse.org/svnroot/ | + | Set up a new SVN connection, using the following URL: http://dev.eclipse.org/svnroot/tools/org.eclipse.sequoyah/trunk/ |
==Components== | ==Components== |
Latest revision as of 14:06, 11 March 2011
Contents
Sequoyah Unit Tests
Currently we have 2 components being covered with unit tests: Device Framework and VNC Viewer.
Setting up
Set up a new SVN connection, using the following URL: http://dev.eclipse.org/svnroot/tools/org.eclipse.sequoyah/trunk/
Components
Device Framework
This unit test creates a new QEmuArm device and evaluate this action.
Method being tested: InstanceManager.createInstance
Check out the following plug-ins:
org.eclipse.sequoyah.device/ plugins/ org.eclipse.sequoyah.device.common.utilities org.eclipse.sequoyah.device.framework org.eclipse.sequoyah.device.framework.ui org.eclipse.sequoyah.device.qemu org.eclipse.sequoyah.device.qemuarm org.eclipse.sequoyah.device.service.start org.eclipse.sequoyah.device.service.stop tests/ org.eclipse.sequoyah.device.junit
VNC Viewer
This test verifies a connection with a VNC Server. Before running it, start a new VNC Server in the port 5900 at the same machine that is running the test (localhost).
Method being tested: PluginProtocolActionDelegate.requestStartProtocolAsClient
Check out the following plug-ins:
org.eclipse.sequoyah.vnc/ plugins/ org.eclipse.sequoyah.vnc.protocol org.eclipse.sequoyah.vnc.vncviewer tests/ org.eclipse.sequoyah.vnc.vncviewer.junit
org.eclipse.sequoyah.device/ plugins/ org.eclipse.sequoyah.device.common.utilities
How to run the tests
Steps:
- In Eclipse, create a new JUnit Plug-in Test Run Configuration using org.eclipse.sequoyah.device.junit as the Project, and org.eclipse.sequoyah.device.framework.junit.TestDevice as the class for the test.
- Run the Test
- Verify the results in the JUnit View (maybe you will have to switch to the Java perspective)