Commit a063d010 authored by urbant's avatar urbant
Browse files

STF 521: test on IDs removed, because the mapping has been deprecated

parent dfe0654c
Loading
Loading
Loading
Loading
+0 −21
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.1.1, Verify conversion of id attribute of global element
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// The attribute id enables a unique identification of an XSD component. They 
// shall be mapped to TTCN-3 as simple type references, e.g. any component 
// mapping to a type with name typeName and an attribute id="ID" shall result in 
// an additional TTCN-3 type declaration.

module Pos_070101_id_001 {

   import from schema_Pos_070101_id_001 language "XSD" all;

   template ProductType m_base := {name := "Moby Dick", price := "$12.4"};
   template MyType m_msg := m_base;

//#TC
}
+0 −5
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ns:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="schema:Pos_070101_id_001">
<name>Moby Dick</name>
<price>$12.4</price>
</ns:MyType>
 No newline at end of file
+0 −13
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="schema:Pos_070101_id_001"
    xmlns:ns="schema:Pos_070101_id_001">
  <element name="MyType">
	 <complexType id="ProductType">
	   <sequence>
	     <element name="name" type="string"/>
	     <element name="price" type="string"/>
	   </sequence>
	 </complexType>
  </element>  
</schema>
 No newline at end of file
+0 −24
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.1.1, verify conversion of id attribute of local element
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// The attribute id enables a unique identification of an XSD component. They 
// shall be mapped to TTCN-3 as simple type references, e.g. any component 
// mapping to a type with name typeName and an attribute id="ID" shall result in 
// an additional TTCN-3 type declaration.

module Pos_070101_id_002 {

   import from schema_Pos_070101_id_002 language "XSD" all;

   template E01 m_base := "test";
   template MyType m_msg := {
       foo := m_base
   }; 

//#TC

}
+0 −4
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ns:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="schema:Pos_070101_id_002">
 <foo>test</foo>
</ns:MyType>
 No newline at end of file
Loading