Commit ea854413 authored by Sebastian Müller's avatar Sebastian Müller
Browse files

example TP added

parent 79a63b68
Loading
Loading
Loading
Loading

.project

0 → 100644
+18 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>NG112</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.sirius.nature.modelingproject</nature>
		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
	</natures>
</projectDescription>

model.tdl

0 → 100644
+10 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ASCII"?>
<tdl:Package xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tdl="http://www.etsi.org/spec/TDL/1.4.0" xmi:id="_-rolcD2IEei4B7a1koB26w" name="Model">
  <packagedElement xsi:type="tdl:SimpleDataType" xmi:id="_-rpMgD2IEei4B7a1koB26w" name="String"/>
  <packagedElement xsi:type="tdl:SimpleDataType" xmi:id="_-rpMgT2IEei4B7a1koB26w" name="Boolean"/>
  <packagedElement xsi:type="tdl:SimpleDataType" xmi:id="_-rpMgj2IEei4B7a1koB26w" name="Integer"/>
  <packagedElement xsi:type="tdl:SimpleDataType" xmi:id="_-rpMgz2IEei4B7a1koB26w" name="Verdict"/>
  <packagedElement xsi:type="tdl:SimpleDataInstance" xmi:id="_-rqaoD2IEei4B7a1koB26w" name="pass" dataType="_-rpMgz2IEei4B7a1koB26w"/>
  <packagedElement xsi:type="tdl:SimpleDataInstance" xmi:id="_-rqaoT2IEei4B7a1koB26w" name="fail" dataType="_-rpMgz2IEei4B7a1koB26w"/>
  <packagedElement xsi:type="tdl:SimpleDataInstance" xmi:id="_-rqaoj2IEei4B7a1koB26w" name="inconclusive" dataType="_-rpMgz2IEei4B7a1koB26w"/>
</tdl:Package>

representations.aird

0 → 100644
+7 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<viewpoint:DAnalysis xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description" xmi:id="_9-UMcD2IEei4B7a1koB26w" selectedViews="_-3AvAD2IEei4B7a1koB26w" version="12.1.0.201708031200">
  <semanticResources>model.tdl</semanticResources>
  <ownedViews xmi:type="viewpoint:DView" xmi:id="_-3AvAD2IEei4B7a1koB26w">
    <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.etsi.mts.tdl.graphical.viewpoint/description/TDL.odesign#//@ownedViewpoints[name='org.etsi.mts.tdl']"/>
  </ownedViews>
</viewpoint:DAnalysis>
+51 −0
Original line number Diff line number Diff line
/* ETSI Software License

As long as the hereunder conditions are respected, non-exclusive permission is hereby granted, free of charge, to use, reproduce and modify this software source code, under the following conditions:
    This source code is provided “AS IS” with no warranties, express or implied, including but not limited to, the warranties of merchantability, fitness for a particular purpose and warranties for non-infringement of intellectual property rights. ETSI shall not be held liable in any event for any direct or indirect damages whatsoever (including, without limitation, damages for loss of profits, business interruption, loss of information, or any other pecuniary loss) arising out of or related to the use of or inability to use the source code.
    This permission is granted to facilitate the implementation of the related ETSI standard, provided that ETSI is given the right to use, reproduce and amend the modified source code under the same conditions as the present permission.
    This permission does not apply to any documentation associated with this source code for which ETSI keeps all rights reserved.
    The present ETSI Source Code license shall be included in all copies of whole or part of this source code and shall not imply any sub-license right.
 (c) ETSI 2018
 */
 

Package tplan_example {
		Domain {
			pics:
				- my_pic;
			entities:
				- my_component;
			events:
				- receives
				- sends;
		}
	
		Test Purpose {
		    TP Id just_an_example_id
				
			Test objective 
		 			"Query operation returns a list of descriptors" 
			
			Reference 
				"My specification, Section a.b.c", 
				"http://www.etsi.org/deliver/some_dummy_specification_url.pdf"
			PICS Selection my_pic
		
			Initial conditions with {
				the my_component entity receives the "message" 
			}
		
			Expected behaviour
			ensure that {
				when {
					the my_component entity receives an http_get_request containing 
						uri indicating value "all/descriptors";
				}
				then {
					the my_component entity sends a http_response message containing 
						response_code indicating value 200,
						response_body indicating value "[]";					
				}
			}
	}
}
 No newline at end of file