Difference between revisions of "T-VEC Vector Generation System"

From T-VEC Wiki
Jump to: navigation, search
 
(Recent Changes)
 
Line 1: Line 1:
The T-VEC Vector Generation System (VGS) is the engine to supports:
+
The T-VEC Vector Generation System (VGS) is the engine that supports:
 
*Model analysis
 
*Model analysis
 
*Test vector generation
 
*Test vector generation
Line 5: Line 5:
 
*Test results analysis
 
*Test results analysis
 
*Project status and measurement
 
*Project status and measurement
 +
 +
The T-VEC VGS has a number of advanced features and reports - see [[VGS Advanced Topics|VGS Advanced Topics]].
 +
 +
==Recent Changes==
 +
<p>
 +
<b>The Test Vector Generator System (VGS) 3.6.0 is now generally available.</b>
 +
</p>
 +
<p>
 +
New and improved functionality includes:
 +
<ul>
 +
<li>New Project Explorer tab area - The Scenario View - This provides customer configuration of test vector generation on a DCP by DCP, or sets of DCPs, basis.</li>
 +
<li>Ability to specify ranges of DCP in Domain Convergence Paths options. ("DCP Numbers" and "Skip DCPs")</li>
 +
<li>Added the ability to set minimum domain boundaries for Float32 and Float64 variables</li>
 +
<li>Improved VGS to Simulink block navigation</li>
 +
<li>Improved VGS to TTM navigation</li>
 +
<li>1-Dimensional array support in test vector generator, in support of TTM</li>
 +
<li>Vector generation performance enhancements.</li>
 +
<li>Updated the Consult Subordinate Vectors vector generation heuristic to support TTM tables with structured outputs.</li>
 +
<li>Removed obsolete VGS menu items, renamed other menu items for additional clarity.</li>
 +
<li>Added new material to VGS Reference Guide in the section on VGS GUI.
 +
</li>
 +
</ul>
 +
 +
Please see the [https://www.t-vec.com/support/secure/readme.php?ID=146 Release Notes] for more details on the changes in this release.
 +
</p>
  
 
==History==
 
==History==
Line 11: Line 36:
  
 
In 1998 VGS was integrated with the original SCR tool. Since that time it has continued to evolve and support other integrations with various modeling tools such as MATRIXx and more recently Simulink/Stateflow.
 
In 1998 VGS was integrated with the original SCR tool. Since that time it has continued to evolve and support other integrations with various modeling tools such as MATRIXx and more recently Simulink/Stateflow.
 
==Capabilities==
 
  
 
==Usage==
 
==Usage==
VGS has a wide array of test vector generation options, but the default vector generation functions are accessible to user through a single menu option called '''Build''' that performs the build process based on the dependencies, much like make. This function is also provide through a command or console function to permit batch-oriented test generation.
+
VGS has a wide array of test vector generation options, but the default vector generation functions are accessible to user through a single menu option called '''Build''' that performs the build process based on the dependencies, much like make. The '''Build''' process perform a number of steps to support [[#Test Vector Generation|Test Vector Generation]].
 +
 
 +
There is a second option call '''Build with Test Drivers''' that performs both [[#Test Vector Generation|Test Vector Generation]] and [[#Test Driver Generation|Test Driver Generation]].
 +
 
 +
This function is also provide through a command or console function to permit batch-oriented test generation.
 +
 
 +
==Test Vector Generation==
 +
The test vector generation produces a set of test vectors that include the inputs, expected outputs, and requirement traceability link. These vectors are generic in that the inputs and expected outputs are based on the names from the model. Users often visualize the vectors in a html table matrix to examine and assess the values produced in the process.
 +
 
 +
The resulting vectors can be applied to unit, integration, or system testing. The applicability of the vectors to theses various layers of testing is based on the model.
 +
 
 +
==Test Driver Generation==
 +
Test drivers generation transforms generic test vectors into environment and programming language-specific test drivers.
 +
 
 +
The test driver generator and associated support tools use programmable schemas and user object mappings that relate the model variable to the implementation (or simulation) interfaces that are required to automatically execute the test driver in some target test environment.
 +
 
 +
Test drivers have been produced in many languages, such as C, C++, Java, SQL/ODBC/JDBC, XML, SOAP
 +
WinRunner, JCL, Perl, Python, Ada, Basis and VB, Custom (graphics),Assembler, shell, command languages, emulators, proprietary, more . . .
 +
 
 +
===Test Harness===
 +
A [http://en.wikipedia.org/wiki/Test_harness Test Harness] is often constructed manually to support a standard way to inject test inputs, control the execution, retrieve test output (or outcomes), and potentially to support other reporting. The Test Driver Generator produces the test harness as a byproduct of the generation process. It is based on a [[#Test Driver Schema|test driver schema]].
 +
 
 +
===Test Driver Schema===
 +
 
 +
The test driver generator processes two user-defined schemas. One specifies the format of
 +
the expected outputs file and the other specifies the format of the target-specific test driver.
 +
These are referred to as the expected outputs and test driver schemas, respectively. Once at test driver schema is created, it can be reused to produce test drivers (and the associated harness or harness interfaces) for all testing associated with a specific test environment.
 +
 
 +
==Test Execution==
 +
This is the process step where the user must cause the execution of the generated test driver against the test environment. The test driver causes the inject of test inputs and captures the actual output produced by the execution. These results are then compared with the expected outputs. VGS provides a test results comparison function to automate this activity.
 +
 
 +
In the [[Simulink Tester for T-VEC|Simulink Tester for T-VEC (SL2TVEC)]], test execution is done automatically as part of the Generate and Test function executed in the SL2TVEC GUI. Test execution is performed against the manually generated code, auto-generated code, or Matlab Simulation.
 +
 
 +
For tests derived from TTM models, these test might be executed in a variety of ways (see [[Examples|Examples]]). One handy mechanism is to use the VGS Toolbox to link to a mechanism for quickly performing the test execution.
 +
 
 +
==Code Coverage==
 +
T-VEC tools integrate with code coverage tools such as [http://www.ldra.com/tbrun_moreinfo.asp LDRA TBrun] to provide a means to assess [[Model_Coverage|test code coverage]] such as MC/DC test coverage. The T-VEC Testers for Simulink provides users selectable options to generate test drivers in the form of LDRA TBrun .tcf files. These input/output value sets are used by TBrun when it creates test driver wrappers for the code from the input and output values, and other configuration information, that make up the .tcf files. TBrun provide measurement and reports such as MC/DC test coverage achieved by the test vectors generated by T-VEC.
 +
 
 +
Similar test driver configurations have been created for test drivers generated from TTM to leverage LRDA's TBrun test coverage information, and other code-based test coverage tools.
 +
 
 +
See other [[T-VEC Tool Integrations]].
 +
 
 +
See also [[VGS_Advanced_Topics#Extended MCDC Coverage|Extended MC/DC Coverage]].
 +
 
 +
==Reports, Status and Measures==
 +
 
 +
There are various reports produced by the VGS that are also hyperlinked to reports produced by TTM. Such reports provide status information, model defect summaries, with links to the detailed reports that hyperlink back to the TTM model or Simulink model. The reports include (all reports are in HTML and/or XML format):
 +
 
 +
*Model report - representation of TTM model
 +
*Requirement report - representation of TTM requirements
 +
*Project status report - Hyperlink to all other reports, with project measures
 +
*Test vectors - representation of vectors
 +
*Coverage analysis report - model defect status, with hyperlink to model defects
 +
*Test results report - summary of test execution pass/fail for each vector
 +
*Detailed defect report - provide model defect details

Latest revision as of 08:43, 20 May 2009