Skip to content

Repository files navigation

Experimental NETN Test Suite

This repository will be used for the development of the NETN Test Suite. Currently it contains ETR test cases for SuT in tasker and task receiver roles.

NETN Badge

IVCT Compliance

The current test suite design uses the ServiceLoader interface feature of the IVCT framework. This is only available in the latest snapshot releases and not yet included in the production release.

NETN FOM

This test suite verify the NATO Education and Training Network (NETN) Federation Object Model (FOM). See also https://github.com/AMSP-04/NETN-FOM

Test Suite Structure

The test suites modules are aligned to the badge structure.

Badges

Testing with Booster or local RTI

Booster Config for PITIS-223 Test Environment:

  • crc.PITIS-223@localhost:8688

local pRTI

  • localhost:8989

These settings may be set via the SettingsDesignator setter of the test case object ("tc"), like

tc.setSettingsDesignator("crcAddress=localhost:8989");

or via the LRC.settings within the pRTI installation setup.

Testing without IVCT

There is the possiblity to run the test cases on command line with gradle. There are two test cases ETR_0001 (SuT in role task receiver) and ETR_0002 (SuT in role tasker). To run a dedicated test case TC use the following command:

./gradlew :NETN-ETR:test --tests "org.nato.netn.etr.NetnEtrTestSuiteTest.[TC]", where the method TC can be one of

TCDescription
testETR_0001atLocalhosttest case ETR_0001 with local RTI
testETR_0001atPITIS223test case ETR_0001 with PITIS connection set
testETR_0002atLocalhosttest case ETR_0002 with local RTI
testETR_0002atPITIS223test case ETR_0002 with PITIS connection

Test Case Configuration

There is one single configuration file TcParam.json in NETN-ETR/src/main/resources for both test cases:

{
"federationName" : "NETN4",
"sutFederateName" : "Pitch Actors",
"supportedActions" : ["MoveByRoute"],
"publishedTasks" : ["MoveByRoute", "MoveToLocation"],
"subscribedReports" : ["ObservationReport", "PositionStatusReport"],
"taskId" : "77e004e5-a3b3-43be-b655-0f9167ec051b",
"speed" : 88,
"route" : [{"x": 58.38580, "y" : 15.55502}, {"x" : 58.37753, "y" : 15.56698}],
"selfTest" : true,
"cancelTask" : false
}

The meaning of the parameters and which test case uses them is described in the following table:

ParameterUsed ByDescription
federationNameETR_0001,2the name of the federation
sutFederateNameETR_0001,2the name of the SuT to be tested
supportedActionsETR_0001,2the list of the actions supported by the SuT (1) or the entity to be tasked (2) according to the CS
publishedTasksETR_0002the list of tasks the tasker should have published according to the CS
subscribedReportsETR_0002the list of report types the tasker should have subscribed according to the CS
taskIdETR_0001the task Id the tasker uses for the task sent to the SuT (task receiver)
speedETR_0001the speed in m/s used for each waypoint in the WaypointStruct of the MoveByRoute task
routeETR_0001the list of waypoints used for the aypointStruct of the MoveByRoute task
selfTestETR_0001a boolean value to control a sef test mode, in case of true the SuT is simply simulated
cancelTaskETR_0001a boolean value to control the use of the Cancel task (i.e. the task will not complete instead should break after receiving this task and answer with ETR_TaskStatus(Cancelled)

LICENCE

Copyright 2025 NATO/OTAN

Licensed under the Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

8 watching

Forks

Releases

Packages

Contributors

Languages