VeroStyle - Test Procedure Template

VeroStyle - Test Procedure Template

 

VeroTrace generates XML traceability data for all test procedure filenames stored in the traceability database. 

 

VeroStyle transforms this data into a source template for the actual test procedure. 

 

The actual test software is added by the test author.  The test procedure itself contains traceability information extracted by the Verocel Test Harness that forms the traceability for the test result.

 

Below is an example of the XML data for a single test procedure generated by VeroTrace and transformed by VeroStyle, using the document stylesheet and a directive file [not shown] to produce the test procedure template as a C source file.

 

 

XML Generated by VeroTrace:

 

<testTraceability>

  <testName>tp01_04_02__02</testName>

  <date>08/08/02</date>

  <testFilename>tp01_04_02__02.c</testFilename>

  <sourceFilename>Managed_Temp.c</sourceFilename>

  <functionName>stampT</functionName>

  <visibility>Visible</visibility>

  <requirement>BR.1.4.2</requirement>

  <lowRequirement>BR.1.4.2-2</lowRequirement>

</testTraceability>

 

 

Document “Stylesheet”:

 

/* {<testFilename>} - C file for test */

 /* Copyright 2003 Verocel, Inc. */

 /*

Modification history

--------------------

01a,{<date>},  Generated

*/

 /*

  Description:

      *Filled in by test author*

*/

 /*

Traceability information - DO NOT MODIFY THIS SECTION

    <FILE_NAME>       {<testFilename>}

   <SOURCE_FILE>     {<sourceFilename>}

   <MODULE>          {<functionName>}

   <VISIBILITY>      {<visibility>}

   <HI_REQ>          {<requirement>}

   <LL_REQ>          {<lowRequirement>}

   <MAX_TEST_CASE>   *Filled in by test author*

 */

 /*******************************************************************************

*

* {<testName>}  - Brewing Software Test Procedure

*

* RETURNS: 

*/

 void {<testName>} (void) {

       /* <TEST_CASE> *tbd*) */

      verTestCase(*tbd*);

       /* <REQ_NUM> {<lowRequirement>} */

      verReqNum("{<lowRequirement>}");

       /* Test Case code filled in by test author */

       verExpected("OK");

      verCompareResult();

      /* end of case */

      verSummary();

}

 

 

Resulting Document Produced by VeroStyle:

 

/* tp01_04_02__02.c - C file for test */

 

/* Copyright 2003 Verocel, Inc. */

 

/*

Modification history

--------------------

01a,04/04/03,  Generated

*/

 

/*

  Description:

      *Filled in by test author*

*/

 

/*

Traceability information - DO NOT MODIFY THIS SECTION

 

   <FILE_NAME>       tp01_04_02__02.c

   <SOURCE_FILE>     Managed_Temp.c

   <MODULE>          stampT

   <VISIBILITY>      Visible

   <HI_REQ>          BR.1.4.2

   <LL_REQ>          BR.1.4.2-2

   <MAX_TEST_CASE>   *Filled in by test author*

 

*/

 

/*******************************************************************************

*

* tp01_04_02__02  - Brewing Software Test Procedure

*

* RETURNS: 

*/

 

void tp01_04_02__02 (void) {

 

      /* <TEST_CASE> *tbd*) */

      verTestCase(*tbd*);

 

      /* <REQ_NUM> BR.1.4.2-2 */

      verReqNum("BR.1.4.2-2");

 

      /* Test Case code filled in by test author */

 

      verExpected("OK");

 

      verCompareResult();

 

      /* end of case */

 

      verSummary();

}