Eclipse.org Eclipse.org - Device Kit

Gpio Profile Validation Test

Profile validation test agent projects

TypeBundle project
Abstract Profile Test Agentorg.eclipse.soda.dk.gpio.profile.test.agent
Test Agentorg.eclipse.soda.dk.gpio.profile.test.agent
Bundle activatororg.eclipse.soda.dk.gpio.profile.test.agent.bundle
Factory activatororg.eclipse.soda.dk.gpio.profile.test.agent.factory
Managed activatororg.eclipse.soda.dk.gpio.profile.test.agent.managed

Example launch configuration and test script per device

An example launch configuration and test script is included for the following supported device and profile combinations:

DeviceBundle projectExample launch config and script
Alien ALR org.eclipse.soda.dk.alien.alr.gpio.profile.testalien.alr.gpio.profile.test.launch
alien.alr.gpio.profile.test.xml
org.eclipse.soda.dk.alien.alr.gpio.profile.test.bundlealien.alr.gpio.profile.test.bundle.launch
alien.alr.gpio.profile.test.bundle.xml
org.eclipse.soda.dk.alien.alr.gpio.profile.test.factoryalien.alr.gpio.profile.test.factory.launch
alien.alr.gpio.profile.test.factory.xml
org.eclipse.soda.dk.alien.alr.gpio.profile.test.managedalien.alr.gpio.profile.test.managed.launch
alien.alr.gpio.profile.test.managed.xml
RFID Intermec Basic Reader Interface (BRI) org.eclipse.soda.dk.intermec.bri.gpio.profile.testintermec.bri.gpio.profile.test.launch
intermec.bri.gpio.profile.test.xml
org.eclipse.soda.dk.intermec.bri.gpio.profile.test.bundleintermec.bri.gpio.profile.test.bundle.launch
intermec.bri.gpio.profile.test.bundle.xml
org.eclipse.soda.dk.intermec.bri.gpio.profile.test.factoryintermec.bri.gpio.profile.test.factory.launch
intermec.bri.gpio.profile.test.factory.xml
org.eclipse.soda.dk.intermec.bri.gpio.profile.test.managedintermec.bri.gpio.profile.test.managed.launch
intermec.bri.gpio.profile.test.managed.xml
RFID SAMSys Comprehensive Heuristic Unified Messaging Protocol (CHUMP) org.eclipse.soda.dk.samsys.chump.gpio.profile.testsamsys.chump.gpio.profile.test.launch
samsys.chump.gpio.profile.test.xml
org.eclipse.soda.dk.samsys.chump.gpio.profile.test.bundlesamsys.chump.gpio.profile.test.bundle.launch
samsys.chump.gpio.profile.test.bundle.xml
org.eclipse.soda.dk.samsys.chump.gpio.profile.test.factorysamsys.chump.gpio.profile.test.factory.launch
samsys.chump.gpio.profile.test.factory.xml
org.eclipse.soda.dk.samsys.chump.gpio.profile.test.managedsamsys.chump.gpio.profile.test.managed.launch
samsys.chump.gpio.profile.test.managed.xml
RFID Symbol Byte Stream Protocol (BSP) org.eclipse.soda.dk.symbol.bsp.gpio.profile.testsymbol.bsp.gpio.profile.test.launch
symbol.bsp.gpio.profile.test.xml
org.eclipse.soda.dk.symbol.bsp.gpio.profile.test.bundlesymbol.bsp.gpio.profile.test.bundle.launch
symbol.bsp.gpio.profile.test.bundle.xml
org.eclipse.soda.dk.symbol.bsp.gpio.profile.test.factorysymbol.bsp.gpio.profile.test.factory.launch
symbol.bsp.gpio.profile.test.factory.xml
org.eclipse.soda.dk.symbol.bsp.gpio.profile.test.managedsymbol.bsp.gpio.profile.test.managed.launch
symbol.bsp.gpio.profile.test.managed.xml

To run, for example, the managed-factory service activator configuration of the Gpio Profile validation test against an Intermec BRI device, perform the following steps:

  1. Run the New Example>Device Kit Samples wizard in Eclipse and create sample project org.eclipse.soda.dk.intermec.bri.gpio.profile.test.factory.
  2. Review the test script file samsys.chump.gpio.profile.test.factory.xml in the sample project and change test properties as needed.
  3. Run the intermec.bri.gpio.profile.test.factory.launch launch configuration that has been added to the workspace by creating the sample project.
  4. Open the Test Manager wizard at http://localhost/testmanager in a browser.
  5. Select test script file samsys.chump.gpio.profile.test.factory.xml from the sample project to run the validation test script.

Note: when running the standard Java launch configuration, like for example intermec.bri.gpio.profile.test.launch, it is not necessary to open the test manager and specify the test script file. The correct default test script is defined in the esc.properties file in the project of the launch configuration, and the Test Manager runs on the console.

Specific Profile Validation Test Properties

The following test properties are specific to the Gpio profile validation test:

PropertyDescriptionDefault
expected.input.count.valueNumber of digital inputs supported by the device under test.4
expected.output.count.valueNumber of digital outputs supported by the device under test.4

Test Cases

The RfidInventory profile validation test runs the following test cases:

Test CaseDescription
GpioProfileInputCountTestCaseVerify the number of inputs returned.
GpioProfileOutputCountTestCaseVerify the number of outputs returned.
GpioProfileInputTestCaseTest all inputs.
GpioProfileOutputTestCaseTest all outputs.
GpioProfileOutputExpressionTestCaseTest setting output from expressions.
GpioProfileMeasurementErrorsTestCaseTest for correct error responses for invalid settings of measurements.
GpioProfileDisconnectTestCaseTest detection and recovery of disconnect and reconnect of the device.