View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

Automated Testing/Eclipse

Installation and setup of Eclipse IDE

Openbravo ERP's testing code is ready to work with Eclipse's IDE projects schema, just like the ERP source code.

Please read Installation and setup of Eclipse IDE, a step-by-step guide to install and setup Eclipse Integrated Development Environment (IDE) for Openbravo ERP development.

At this moment you must have Eclipse IDE 3.4 working with Subclipse plugin. In addition, you should have configured the workbench and workspace.

Check out Openbravo ERP automation source code

The next step is to check out Openbravo ERP automation code to:

Note: if you have checked out Openbravo ERP code to your current workspace, now you should create another workspace through File > Switch Workspace > Other.... Switch among your workspaces just by selecting File > Switch Workspace.

To download Openbravo ERP tests into your empty workspace:


Debugging tests with Eclipse

Eclipse has powerful debugging capabilities that we can use while writing tests or looking for errors in them.

The first thing that has to be done in order to debug a test is to set a breakpoint before the section of code that is going to be checked.

To do this, place the cursor on the line and go to menu Run -> Toggle Breakpoint.

You can add as many breakpoints as necessary; and the execution will stop before executing them.

Now, to execute the test on debug mode, select it's java file and go to menu Run -> Debug As -> Junit test.

Retrieved from "http://wiki.openbravo.com/wiki/Automated_Testing/Eclipse"

This page has been accessed 592 times. This page was last modified 18:29, 10 March 2009. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Automated Testing ERP