This documentation is for SDK 5. The latest major version is SDK 6.
SDK 5 is in maintenance mode since the release of SDK 5.8.0.
Consequently, as stated in the SDK End User License Agreement (EULA), the SDK will reach the end of its life by July 2028.
Contact our support team for assistance with migrating to the new SDK, or your sales representative if you require an extension of SDK maintenance as a service.
The SDK provides the capability to test a VEE Port.
While you can create your own tests (see Create a VEE Port Testsuite),
MicroEJ provides a set of tools and pre-defined projects aimed at simplifying the steps for validating VEE Ports
in the form of the VEE Port Qualification Tools (PQT).
the Testsuite module: the project that contains test cases. Test cases are written in Junit.
When this project is built, it produces a versionned library. See Testsuite Versioning for available Testsuite modules for the most common Packs provided by MicroEJ Corp.
the Testsuite runner: the project that contains the configuration for its execution on a VEE Port.
When this project is built, it runs the Testsuite on a Device and generates the Testsuite report.
Note
Creating a VEE Port Testsuite requires SDK 5.6.0 or higher.
Right click on src/test/java, then click on New > Class. Fill Name: with the MyTest
and then click on Finish. Copy/paste the following example in MyTest.java file:
Once the test cases are implemented, you can build the module.
The next step is to create a Testsuite Runner.
The Testsuite Runner will fetch the Testsuite Module dependency.
Inside the module.ant, add the following ANT target to configure trace redirection options :
<targetname="tracefile:init"extensionOf="abstract-test:test-ready"><!-- Set the launch.test.trace.file when the testsuite.trace.ip properties is not set --><conditionproperty="microej.testsuite.properties.launch.test.trace.file"><not><issetproperty="microej.testsuite.properties.testsuite.trace.ip"/></not></condition></target>
Create the file override.module.ant at the root of the project. Add the following content to configure the load of testsuite options:
<projectname="myFoundationlib.testsuite.override"xmlns:ac="antlib:net.sf.antcontrib"><!-- Load options from 'local.properties' beside this file --><ac:if><availablefile="local.properties"type="file"/><ac:then><propertyfile="local.properties"/></ac:then></ac:if><!-- Load options from 'config.properties' beside this file --><propertyfile="config.properties"/></project>