© 2021 PikeTec All rights reserved
A project in ASCET consists of software modules and tasks with processes. You can test a single module or a complete module group (for integration test) from an ASCET project. You just have to select the appropriate ASCET version, an ASCET project and the tasks you want to test with TPT.
TPT loads the project and experiment necessary for testing, interacts with ASCET before and during test execution and extracts all information needed for seamless automated tests.
TPT supports two options for testing ASCET models: the “ASCET platform” and the “ASCET@FUSION platform”. These are the differences:
By using the “ASCET platform” in TPT, tests on modules with their tasks are executed directly in ASCET. In this case, ASCET is fully remote controlled by TPT.
The “ASCET@FUSION platform” is more advanced. You can even reschedule processes which requires some more initial setup, but you have more flexibility and tests run much faster.
The analysis of the ASCET interfaces is handled automatically. TPT extracts all signals and parameters that can be stimulated or observed during the test execution. The assignment of interface signals as inputs, outputs, and measurements is also determined through an analysis of the model.
As a side node, interface analysis is based directly on the A2L/DCM information from the ASCET project including the default values to be used for the implementation configuration.
TPT has been designed for signal oriented test modeling and it supports many unique techniques for modeling tests.
TPT test case design is very natural and intuitive for ASCET model testing. It is quite easy to create and easy to maintain tests for ASCET with TPT.
The test harness and test environment for ASCET testing is automatically generated by TPT. Depending on your choice between the “ASCET platform” and the “ASCET@FUSION platform” the test environment is generated either as a test project in ASCET (consisting of the original model, the TPT test driver, and the associated tasks) or directly as generated and compiled C-code. But don’t worry about the details. It’s all automatic.
Test execution is as simple as pushing a button. TPT automatically does all the work for you. TPT starts and controls the entire test execution automatically. Complex tests or test suites can be executed unattended in batch mode.
Test cases can be executed with physical ASCET models (MiL) or implementation models (SiL). Comparing the behavior between these modes is simple with TPT (for regression/back-to-back testing). Just configure two execution configurations using both simulation modes (MIL and SIL) and enable and configure the back-to-back assessment. TPT will run all tests in the desired modes and compares the results automatically.
If you want to make sure that you have at least one test case per requirement, you can link your requirements in TPT to your test cases. In this tutorial we show you how to do that.