Axaptapedia is now maintained by AgileCadence For more information please click here.
AxUnit2
From Axaptapedia
Primitive UnitTesting framework for Ax3 | download (4K) |
Example[edit]
<xpp> class Test_Simple extends AxUnitTestCase { } void testTrivial() {
this.assertEquals(2*2, 4);
} </xpp>
Installation[edit]
- import axUnit2.xpo
- recompile all
- if you have a tabax place action_axunittestrunner.bmp in the '<application>\Share\Include\tabax\plugs' folder
- run install job
usage[edit]
- create a class extending AxUnitTestCase
- add a method named testXXX
- use assertXXX methods to test various conditions
- in you want a common environment (fixture) in multiple tests, add instance variables to the class and setup them an the setup method, ad finalize tham in the tearDown method if nessesary
- run tests via addins menu (right click on the AOT node containing tests - Addins - AxUnit - run tests)