Loading ttcn/LibEmcom/LibNg112/ttcn/LibNg112_Functions.ttcn 0 → 100644 +56 −0 Original line number Diff line number Diff line module LibNg112_Functions { // Libcommon import from LibCommon_Time all; import from LibCommon_VerdictControl all; import from LibCommon_Sync all; // LibHttp import from LibItsHttp_TestSystem all; // LibNg112 import from LibNg112_TypesAndValues all; import from LibNg112_TestSystem all; group preambles { function f_cf_01_http_up() runs on HttpComponent { // Map ports map(self:httpPort, system:httpPort); // Connect f_connect4SelfOrClientSync(); activate(a_cf_01_http_down()); } // End of function f_cf_01_http_up /** * @desc Default handling cf01 de-initialisation. */ altstep a_cf_01_http_down() runs on HttpComponent { [] a_shutdown() { f_cf_01_http_down(); log("*** a_cf_01_http_down: INFO: TEST COMPONENT NOW STOPPING ITSELF! ***"); stop; } } // End of altstep a_cf_01_http_down } // End of group preambles group postambles { function f_cf_01_http_down() runs on HttpComponent { // Unmap ports unmap(self:httpPort, system:httpPort); // Disconnect ports f_disconnect4SelfOrClientSync(); } // End of function f_cf_01_http_down } // End of group postambles } // End of module LibNg112_Functions ttcn/LibEmcom/LibNg112/ttcn/LibNg112_Pics.ttcn 0 → 100644 +18 −0 Original line number Diff line number Diff line module LibNg112_Pics { /** * @desc */ modulepar boolean PICS_HTTP_POST_REQUEST := true; /** * @desc */ modulepar boolean PICS_LOCATION_HELD := true; /** * @desc */ modulepar charstring PICS_LISP_URI := "http://www.lisp.com"; } // End of module LibNg112_Pics ttcn/LibEmcom/LibNg112/ttcn/LibNg112_Templates.ttcn 0 → 100644 +24 −0 Original line number Diff line number Diff line module LibNg112_Templates { // RFC5985 Held import from XSD all; import from urn_ietf_params_xml_ns_geopriv_held language "XSD" all with { extension "File:./RFC5985_held.xsd"; } // LibNg112 group rfc5985_held { template LocationResponseType mw_locationResponse_dummy( template ReturnLocationType p_locationUriSet := *, template LocationResponseType.elem_list p_elem_list := * ) := { locationUriSet := p_locationUriSet, elem_list := p_elem_list } // End of template mw_locationResponse_dummy } // End of group rfc5985_held } // End of module LibNg112_Templates ttcn/LibEmcom/LibNg112/ttcn/LibNg112_TestSystem.ttcn 0 → 100644 +16 −0 Original line number Diff line number Diff line module LibNg112_TestSystem { // LibCommon // LibHttp import from LibItsHttp_TestSystem all; // LibSip import from LibSip_Interface all; type component TestAdapter { port SipPort SIPP; port HttpPort httpPort; } // End of component TestAdapter } // End of module LibNg112_TestSystem ttcn/LibEmcom/LibNg112/ttcn/LibNg112_TypesAndValues.ttcn 0 → 100644 +3 −0 Original line number Diff line number Diff line module LibNg112_TypesAndValues { } // End of module LibNg112_TypesAndValues Loading
ttcn/LibEmcom/LibNg112/ttcn/LibNg112_Functions.ttcn 0 → 100644 +56 −0 Original line number Diff line number Diff line module LibNg112_Functions { // Libcommon import from LibCommon_Time all; import from LibCommon_VerdictControl all; import from LibCommon_Sync all; // LibHttp import from LibItsHttp_TestSystem all; // LibNg112 import from LibNg112_TypesAndValues all; import from LibNg112_TestSystem all; group preambles { function f_cf_01_http_up() runs on HttpComponent { // Map ports map(self:httpPort, system:httpPort); // Connect f_connect4SelfOrClientSync(); activate(a_cf_01_http_down()); } // End of function f_cf_01_http_up /** * @desc Default handling cf01 de-initialisation. */ altstep a_cf_01_http_down() runs on HttpComponent { [] a_shutdown() { f_cf_01_http_down(); log("*** a_cf_01_http_down: INFO: TEST COMPONENT NOW STOPPING ITSELF! ***"); stop; } } // End of altstep a_cf_01_http_down } // End of group preambles group postambles { function f_cf_01_http_down() runs on HttpComponent { // Unmap ports unmap(self:httpPort, system:httpPort); // Disconnect ports f_disconnect4SelfOrClientSync(); } // End of function f_cf_01_http_down } // End of group postambles } // End of module LibNg112_Functions
ttcn/LibEmcom/LibNg112/ttcn/LibNg112_Pics.ttcn 0 → 100644 +18 −0 Original line number Diff line number Diff line module LibNg112_Pics { /** * @desc */ modulepar boolean PICS_HTTP_POST_REQUEST := true; /** * @desc */ modulepar boolean PICS_LOCATION_HELD := true; /** * @desc */ modulepar charstring PICS_LISP_URI := "http://www.lisp.com"; } // End of module LibNg112_Pics
ttcn/LibEmcom/LibNg112/ttcn/LibNg112_Templates.ttcn 0 → 100644 +24 −0 Original line number Diff line number Diff line module LibNg112_Templates { // RFC5985 Held import from XSD all; import from urn_ietf_params_xml_ns_geopriv_held language "XSD" all with { extension "File:./RFC5985_held.xsd"; } // LibNg112 group rfc5985_held { template LocationResponseType mw_locationResponse_dummy( template ReturnLocationType p_locationUriSet := *, template LocationResponseType.elem_list p_elem_list := * ) := { locationUriSet := p_locationUriSet, elem_list := p_elem_list } // End of template mw_locationResponse_dummy } // End of group rfc5985_held } // End of module LibNg112_Templates
ttcn/LibEmcom/LibNg112/ttcn/LibNg112_TestSystem.ttcn 0 → 100644 +16 −0 Original line number Diff line number Diff line module LibNg112_TestSystem { // LibCommon // LibHttp import from LibItsHttp_TestSystem all; // LibSip import from LibSip_Interface all; type component TestAdapter { port SipPort SIPP; port HttpPort httpPort; } // End of component TestAdapter } // End of module LibNg112_TestSystem
ttcn/LibEmcom/LibNg112/ttcn/LibNg112_TypesAndValues.ttcn 0 → 100644 +3 −0 Original line number Diff line number Diff line module LibNg112_TypesAndValues { } // End of module LibNg112_TypesAndValues