Commit fcc700f5 authored by urbant's avatar urbant
Browse files

Test cases for 7.3 (preATS version)

parent badbca60
Loading
Loading
Loading
Loading
+19 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.3, Verify conversion of global element of simple type
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// In case of XSD datatypes, and simple types defined locally as child of the 
// element, the type of the XSD element mapped to TTCN-3.

module Pos_0703_element_component_001 {

   import from schema_Pos_0703_element_component_001 language "XSD" all;

   template MyType m_msg := "abc";

//#TC

}
+2 −0
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_0703_element_component_001">abc</ns:MyType>
 No newline at end of file
+6 −0
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_0703_element_component_001"
  xmlns:ns="schema:Pos_0703_element_component_001">
  <element name="MyType" type="string" />
</schema>
+20 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.3, Verify conversion of global element of user defined type
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// In case of XSD user-defined types referenced by the type attribute of the 
// element, the TTCN-3 type generated for the referenced XSD type.

module Pos_0703_element_component_002 {

   import from schema_Pos_0703_element_component_002 language "XSD" all;

   template MyBaseType m_typeBased := 1;
   template MyType m_msg := m_typeBased;

//#TC

}
+2 −0
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_0703_element_component_002">1</ns:MyType>
 No newline at end of file
Loading