The back-to-back test, like the regression test, is a dynamic software test procedure and describes a test execution method in which two variants of a software are compared with each other. One variant is the test object and the other variant is the reference. In back-to-back testing, the reference is the basis for the automated evaluation used to decide whether a test case is considered successful or failed.
The variants of this execution methodology can be divided into two basic types:
The basic goal of a back-to-back test is to detect the effects of software changes. This involves comparing the behavior of a changed software against another variant of the software in order to uncover errors in the implementation or generation.
It is very important that a reference in back-to-back testing is trustworthy because it is the source of truth and therefore the basis for all evaluations of the test run in back-to-back testing. Trust can be established through testing, reviews, trial or, in some exceptional cases, experience and monitoring in a production environment (“proven-in-use” approach).
A statement regarding compliance with requirements and functionality is only valid if this statement already applies to the reference and back-to-back testing has been performed with full stimulation. Insufficient stimulation can lead to errors or hidden functionalities not being detected in the reference or in the SUT.
We therefore recommend measuring the code coverage for both the reference and the SUT during back-to-back testing.
The Modified Condition Decision Coverage (MC/DC) is one of the strictest code coverage metrics and therefore very well suited for back-to-back testing. Sufficient coverage is acceptable with a value of 100% MC/DC.
Test cases not yet available for achieving 100% code coverage (MC/DC) can also be generated for a back-to-back test. The test cases do not have to be significant in terms of requirements or functionality, since the expected value is specified by the reference.
Typical application areas of back-to-back testing are:
The international automotive safety standard ISO 26262 recommends the use of back-to-back testing for highly safety critical functions, such as ASIL C and ASIL D, in software unit and software integration verification between code and models.
Back-to-back testing is very easy to set up in TPT. It can be executed with a few simple steps. The methodology is available for all levels (unit test, integration test up to product level) and platforms. You can reuse the test cases from previous tests in back-to-back testing or create test cases with our test generator at the push of a button. Using our co-simulation platform FUSION any connections can be made independently and easily.
How to set up a back-to-back test in TPT from scratch can be seen in our video Back-to-Back Testing of AUTOSAR vs. MATLAB Model.
After the test execution, a test report is automatically generated. This report contains:
All test results are stored in TPT. So the behavior can be analyzed and traced in the Signal Viewer of TPT at any time.
A test case is always considered successful if the behavior of the SUT compared to the reference is identical within the tolerances for selected inputs and outputs.
The tolerances of signals can be defined globally for a test execution. This is useful if, for example, deviations in floating point calculations are expected.
By clicking 'I Accept' you agree to the storing of first- and third-party cookies on your device to enhance site navigation, analyze site usage, and assist in Synopsys marketing efforts. For additional information, please see the Synopsys privacy policy. If you are under 16 and wish to give consent to optional services, you must ask your legal guardians for permission. You can revoke or adjust your selection at any time under Settings.
If you are under 16 and wish to give consent to optional services, you must ask your legal guardians for permission. Here you will find an overview of all cookies used. You can give your consent to whole categories or display further information and select certain cookies.