Commit 6c2ed1ef authored by pintar's avatar pintar
Browse files

New tests for clauses 7.4.1, 7.4.2, 7.5.7

parent 4989a21e
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.4.1, Verify mapping of a globally defined attribute
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Pos_070401_attribute_element_definitions_001 {

    import from schema_Pos_070401_attribute_element_definitions_001 language "XSD" all;

    template E1 m_msg := {a1:="test", elem := "test1234"};

//#TC
}
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<e1
  xmlns="schema:Pos_070401_attribute_element_definitions_001"
a1="test">
  <elem>test1234</elem>
</e1>
+13 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="schema:Pos_070401_attribute_element_definitions_001"
    xmlns:ns="schema:Pos_070401_attribute_element_definitions_001">
  <attribute name="a1" type="string"/>
  <complexType name="c1">
        <sequence>
            <element name="elem" type="string"/>
        </sequence>
        <attribute ref="ns:a1" />
    </complexType>
  <element name="e1" type="ns:c1" />
</schema>
 No newline at end of file
+19 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:7.4.2, Verify mapping of a globally defined attribute group
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Pos_070402_attribute_group_definitions_001 {

    import from schema_Pos_070402_attribute_group_definitions_001 language "XSD" all;

    template E1 m_msg := {
        fgroup := 10.0,
        igroup := 10,
        sgroup := "text",
        elem := "text123"
    }

//#TC
}
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<e1
  xmlns="schema:Pos_070402_attribute_group_definitions_001"
fgroup="10.0" igroup="10" sgroup="text">
  <elem>test1234</elem>
</e1>
Loading