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"
< Sequoyah
Line 4: | Line 4: | ||
− | + | ==Setting up== | |
Set up a new SVN connection, using the following URL: http://dev.eclipse.org/svnroot/dsdp/org.eclipse.sequoyah/trunk/ | Set up a new SVN connection, using the following URL: http://dev.eclipse.org/svnroot/dsdp/org.eclipse.sequoyah/trunk/ | ||
+ | |||
+ | ==Components== | ||
===Device Framework=== | ===Device Framework=== |
Revision as of 14:35, 18 May 2010
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/dsdp/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 change to the Java perspective)