Vectorcast™ is primarily used for software automated testing of C/c++/ada programs and is capable of running in a variety of development environments, such as Windows and Linux. Its main features include automated unit testing, integration testing, coverage analysis, regression testing, code static analysis, and test demand tracking, its greatest feature or the greatest advantage compared to other related tools, is the ability to achieve maximum automation and more suitable for the embedded environment. The following are explained separately:
Unit Test
Vectorcast The test suite is built automatically based on the code being measured and the development environment ( Test Harness , based on which users can automatically build or add test cases as needed, and flexibly configure them to achieve different test requirements. The automatically generated schemas include: The object being tested, the test drive, the pile function, and the dependency condition. As shown in.
- Automatically generate test Cases
Vectorcast enables users to automatically generate test cases in various forms of input and output parameters, without requiring the user to write test code, complete with the mouse and input Windows automatically:
- Maximum, minimum, and median values
- Binary, decimal, octal, and hexadecimal values
- Input parameter Range
- Automatic grouping and pairing of multiple parameters
- Equivalence class Partitioning
- Enter a list of values
- Expected output Value List
- Expected Fault tolerance error range
- Import test case parameters from external data sources, such as XLC, CSV, etc.
Vectorcast can analyze the program logic according to different coverage algorithms, and automatically generate test cases to meet the requirement of coverage, so as to reach the coverage requirement. For parts that could not be overwritten, the user can provide a logic analysis report based on the tool, such as the basic roadbed logic and the MC/DC equivalence class matrix, which allows the user to add a small number of test cases to 100% of coverage (see) in accordance with the parameter conditions of the analysis results hint.
- Basic path overlay-automatically generated use cases can usually automatically reach 90%~100% coverage
- MC/DC coverage-Automatically generate use case coverage depending on the actual code
2. pile functions
Other functions called by the measured function can be executed through the form, the function itself or the pile function. From all calls to the actual function to all by the pile function substitution, the user can be flexible according to their own needs to set the required piling objects. Vectorcast can support the addition of different input and output pile functions, simple such as int, float, double, char and other basic types of variables, can also support very complex structure or object variables. It is important that these pile functions are basically done with GUI operations, and generally do not need to be manually written to test code.
3. Execution of test cases
Vectorcast uses a true data-driven approach to test case Execution (Data-driven), so-called data-driven, This means that the test case data is read only when the test case is executed, not along with the test code, the pile function, the test drive, and so forth into the final execution program. The benefit is that the
1) is built and executed fast;
2) when the object under test is not changed, the test case does not need to be recompiled to modify the input and output parameters.
4. Test result validation
After the test case is executed, Vectorcast can assert the actual return value of the unit being measured, including the simple type and the overlay structure, You can also verify the result value of a variable in its dependency relationship or its member variable, and report True or false to assert the result.
5. Complexity analysis after the execution of the
test case is completed, vectorcast counts the cyclomatic complexity of the relevant program and generates reports automatically. As shown in.
6. Test report
After the test is finished, Vectorcast automatically generates detailed test reports, including all test cases, test case input and output data, assertion results, program metrics analysis results, different coverage reports, and MC /DC equivalence class analysis matrix.
Integration Test
The Vectorcast tool provided by information technology, in addition to testing a single function or unit, can also be used for module integration testing, the direct interface calls of different modules are correct. This is mainly reflected in the following:
- By integrating the test cases of different units, any combination of their execution order and execution times to achieve the purpose of integration testing multiple units
- Test cases allow multiple units to actually invoke other units to validate the execution results of each other's invocation of the interface
- Generate test cases directly from the header file, test the interface and functions of the library functions that are not visible to the source code
Cond...
Vectorcast Software Automation test Solution