1.1     TC1250 “External files”

1.1.1      Purpose

The purpose of TC1250 is to check the capability of referencing external files from XHTML, like images and Microsoft Office files.

1.1.2      Description of Reference Test Data

1.1.2.1       ReqIFHeader

The ReqIF header contains all data that is mandatory according to the ReqIF XML schema.

1.1.2.2       ReqIFToolExtension

No ReqIF Tool Extensions are contained in the ReqIF file

1.1.2.3       ReqIFContent

ReqIF element name

Multiplicity

Description

SpecObjectType

1

one SpecObjectType with 1 attribute

SpecificationType

1

one SpecificationType with no additional attributes

Specification

1

one Specification for all SpecObjects

SpecHierarchy

*

One SpecHierarchy per SpecObject, Specification is structured as a flat list

SpecObject

7

1 SpecObject for an image

2 SpecObjects for Microsoft Word (.doc, .docx)

2 SpecObjects for Microsoft Excel (.xls, .xlsx)

2 SpecObjects for Microsoft Powerpoint (.ppt, .pptx)

AttributeDefinition/

AttributeValue/ DatatypeDefinition

See chapter SpecObjectType (for Attribute Definitions). See chapter SpecObjects (with attribute values) for Attribute Values

 

1.1.2.4       SpecObjectType

Attribute Name

ReqIF Attribute Type (AttributeDefinition)

Properties

Description

ReqIF.Text

XHTML

 

The XHTML attribute value that references external files.

 


 

1.1.2.5       SpecObjects (with attribute values)

The following ZIP-Archive contains a HTML file (TC1250.html) that describes the SpecObjects and their attribute values :

Each table cell represents a value of the ReqIF.Text attribute. For example, the first value references an external image with the following XHTML elements:

<div>START -- <b>Image (.png)</b> -- START</div>
<object data="files/rmf-logo-300.png" type="image/png" width="600" height="300"></object>
<div>END -- <b>Image (.png)</b> -- END</div>

 

The files that are referenced are contained in a folder named files.

1.1.3      Expected result of first export (Step 20a)

In ReqIF.coreContent the data is identical to the data in the Reference Test Input File, with the following exceptions:

a)    If tool doesn’t fully support XHTML then

·         AttributeValueXHTML.theValue contains the simplified XhtmlContent.

·         AttributeValueXHTML.isSimplified is set to true.