Play now
播放视频
Play now
播放视频
Requirements-based Testing for Simulink, TargetLink, EmbeddedCoder and handwritten code
Requirements-based testing (sometimes also called functional testing) is a test methodology that ensures a system-under-test (e.g. a software unit) correctly implements its requirements. Test cases and test objectives are derived from the requirements and implemented in a language that allows their execution on the system-under-test.
Requirements-based testing is typically a very time consuming task. Not only because of the manual effort required to create the test cases, but more importantly because result traceability, coverage analysis and creating a test harness are real challenges which often require a hodgepodge of poorly-integrated tools.
BTC EmbeddedTester BASE provides a tight integration with Simulink, dSPACE TargetLink, and Mathworks Embedded Coder, making it the perfect tool for testing models and production code. For projects working with handwritten C code, a test project that includes features like stub code generation and automatic call-graph analysis can be easily created. For larger models, sub-functions can be tested independently without the need for modifying the model.
Features like flexible test authoring, built-in connection to requirements management tools and the integrated coverage analysis make BTC EmbeddedTester BASE a one-stop solution for requirements-based testing of models and production code.
In our experience, test cases are too often written in languages which were not designed for that purpose. Examples are scripting languages like Matlab or Python, Excel tables or even C code.
With BTC TestComposer we provide a powerful editor for functional test cases directly within BTC EmbeddedTester BASE. BTC TestComposer knows all details about the test architecture and protects users against invalid data entry. If enumerations are used, a drop-down menu is provided and allows to directly select the desired values.
Further features include a signal generator, a graphical viewer, flexible tolerance handling and a formula editor, allowing us to calculate the value of a certain signal based on other variables. “Test Macros” and “Calibration Sets” can be used to specify and store reusable sequences, and can be instantiated in multiple test cases. This makes it possible to execute test cases directly within the editor and immediately visualize the results.
The requirements coverage report shows, if all requirements are covered by test cases and if the linked test cases are passed on the different execution levels MIL, SIL and PIL
The model coverage report documents the achieved coverage of a Simulink/Stateflow models. If test cases exist on different subsystem levels of a larger models, the coverage metrics are automatically aggregated for the higher hierarchy levels
Code coverage is automatically calculated and updated in the background. Create, change, import, or delete a test case? The code coverage report has already been updated to reflect these changes.
As modern model-based development projects grow in complexity, the task of debugging failed test cases becomes increasingly challenging and time consuming. Even more challenges emerge in situations when the function development and testing are separated and performed by different people or different teams. This leads us to an important question: What is the most efficient way for the test engineer provide his test scenario to the developer?
BTC EmbeddedTester BASE includes a unique debugging approach by generating self-contained sandboxes. These sandboxes contain a copy of the system-under-test as well as the test case incl. the corresponding calibration values. Depending on the use case, this sandbox can either be a Simulink model, a Microsoft Visual Studio project file or a generic code-based sandbox for other IDEs. These sandboxes can be easily shared with colleagues or customers and make it easy to try out modifications without harming the original files.
您有任何问题或希望看到我们的工具在实际项目中运行吗?如果是这样,请使用下面的链接安排会议,我们的工程团队成员将很乐意向您展示功能和用例,并直接回答您可能遇到的任何问题。
Nabile Khoury
Paris, France
Wolfgang Meincke
Stuttgart, Germany
Requirements-based Testing for Simulink, TargetLink, Embedded Coder and handwritten code.
Copyright © 2024 BTC Embedded Systems