These tests should help you test your Fosstrak Filtering & Collection environment. The tests are wide spread, to cover most of the functionallity of the Filtering and Collection middleware.
To define a subscriber to subscribe to an ECSpec, a very simple way is to start and register an Eventsink.
Basic tests with these files:
ReaderAPI
ECspecs
Test Scenario:
Define the ECSpecCurrent | |
Define a subscriber, which subscribes to ECSpecCurrent | |
Put one Tag on Shelf1 of the HALReader | Tag must appear in all Reports until Tag is removed from Shelf1 |
Remove Tag from Shelf1 of the HALReader | Tag must not appear any Report from now on |
Define the ECSpecAdditions | |
Define a subscriber, which subscribes to ECSpecAdditions | |
Put one Tag on Shelf1 of the HALReader | Tag must only appear in the first following Report |
Define the ECSpecDeletions | |
Define a subscriber, which subscribes to ECSpecDeletions | |
Put one Tag on Shelf1 of the HALReader | Tag must not appear in the Report |
Remove Tag from Shelf1 of the HALReader | Tag must only appear in the first following Report |
Define the ECSpecAdditionsAndDeletions | |
Define a subscriber, which subscribes to the mentioned ECSpec | |
Put one Tag on Shelf1 of the HALReader | Tag must only appear in the first following Report |
Remove Tag from Shelf1 of the HALReader | Tag must only appear in the first following Report |
Compatibility tests with these ReaderSimulators:
ReaderAPI:
RPReader:
RPLogRd1:
LogRd1:
LogRd2:
CompLogReader
ECSpec:
Test Scenario:
Define the ECSpec2 | |
Define a subscriber, which subscribes to ECSpec2 | |
Put one Tag on Shelf1 of the HALReader1 | Tag must appear in Report |
Put one Tag on Shelf1 of the HALReader2 | Tag must appear in Report |
Define the ECSpec1 | |
Define a subscriber, which subscribes to ECSpec1 | |
Put one Tag on Shelf1 of the HALReader1 | Tag must appear in Report |
Put one Tag on Shelf1 of the HALReader2 | Tag must not appear in Report |
LogRd1 disconnects from HALReader1 LogRd connects to HALReader2 using this update for the LRSpec of the LogRd1: newLRSpecLogRd1 | |
Put one Tag on Shelf1 of the HALReader1 | Tag must not appear in Report |
Put one Tag on Shelf1 of the HALReader2 | Tag must appear in Report |
Define the ECSpecComp | |
Define a subscriber, which subscribes to ECSpecComp | |
Put one Tag on Shelf1 of the HALReader1 | Tag must appear in Report |
Put one Tag on Shelf1 of the RPReader1 | Tag must appear in Report |
Update LRSpec of CompReader: remove LogRd1 using "removeReaders" | |
Put one Tag on Shelf1 of the HALReader1 | Tag must not appear in Report |
Put one Tag on Shelf1 of the RPReader1 | Tag must appear in Report |
Update LRSpec of CompReader: remove LogRd1 using "removeReaders" Update LRSpec of CompReader: add LogRd2 using "addReaders" | |
Put one Tag on Shelf1 of the HALReader1 | Tag must appear in Report |
Put one Tag on Shelf1 of the RPReader1 | Tag must not appear in Report |
Modification tests with these ReaderSimulators:
ReaderAPI:
LogRd1,2,3:
CompositeReader:
ECSpec:
CompECSpec:
ECSpec1:
ECSpec2:
Test Scenario:
Define the CompECSpec | |
Define a subscriber, which subscribes to CompECSpec | |
Put one Tag on Shelf1 of the HALReader1 | Tag must appear in Report |
Put one Tag on Shelf1 of the HALReader2 | Tag must appear in Report |
Put one Tag on Shelf1 of the HALReader3 | Tag must appear in Report |
Define the ECSpec1 | |
Define a subscriber, which subscribes to ECSpec1 | |
Define the ECSpec2 | |
Define a subscriber, which subscribes to ECSpec2 | |
Put one Tag on Shelf1 of the HALReader1 | Tag must only appear in Report of Subsc1 |
Put one Tag on Shelf1 of the HALReader2 | Tag must only appear in Report of Subsc2 |
LogRd1 disconnects from HALReader1 LogRd1 connects to HALReader3 using this update for the LRSpec of the LogRd1: newLRSpecLogRd1 | |
LogRd2 disconnects from HALReader2 LogRd2 connects to HALReader1 using this update for the LRSpec of the LogRd1: newLRSpecLogRd3 | |
Put one Tag on Shelf1 of the HALReader1 | Tag must only appear in Report of Subsc2 |
Put one Tag on Shelf1 of the HALReader3 | Tag must only appear in Report of Subsc1 |
Multiple Event Cycles tests with these ReaderSimulators:
ReaderAPI
EC1: ECSpecFast
EC2: ECSpecSlow
EC3: ECSpecLong
Test Scenario:
Define the EC1 | |
Define a subscriber, which subscribes to EC1 | |
Define the EC2 | |
Define a subscriber, which subscribes to EC2 | |
Define the EC3 | |
Define a subscriber, which subscribes to EC3 | |
Put one Tag on Shelf1 of the HALReader1 | all must have the Tag in their first Report EC1 must not have the Tag in the following Reports |
Define the EC1 | |
Define a subscriber, which subscribes to EC1 | |
Define the EC2 | |
Define a subscriber, which subscribes to EC2 | |
Define the EC3 | |
Define a subscriber, which subscribes to EC3 | |
Put one Tag on Shelf1 of the HALReader1 moved away from Shelf1 and back again repeadted times (either as addition or deletion in Subsc1, or as current in Subsc2,3) | all must only have one Tag once in their Report |
Performance tests with these ReaderSimulators:
PerformanceAPI contains 10 HALReader.
--> monitor processor and memory load on your system
--> monitor processor and memory load on your system