Commit 938d243c authored by Andreas Liebig's avatar Andreas Liebig
Browse files

add test purposes

parent c0c47971
Loading
Loading
Loading
Loading
+177 −0
Original line number Diff line number Diff line
@@ -92,8 +92,39 @@ Package NG112_ECRF {
//              16.245346069335938
//            ]
//          ]
//        ]"; // (lat, lon))
//        CIRCLE_IN_SERVICE_BOUNDARY_2_POS: "48.221927869614504, 16.34010314941406"; // (lat, lon)
//        CIRCLE_IN_SERVICE_BOUNDARY_2_RADIUS: "2";
//        CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_POS: "48.30260863571332, 16.351604461669922"; // (lat, lon)
//        CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_RADIUS: "5000";
//        SERVICE_URN_3: "urn:service:sos.fire";
//        SIP_URI_3: "sip:fire@hadersdorf.com";
//        SERVICE_BOUNDARY_3: "[
//          [
//            [
//              48.20597092201654,
//              16.221656799316406
//            ],
//            [
//              48.20597092201654,
//              16.228179931640625
//            ],
//            [
//              48.21174802569084,
//              16.228179931640625
//            ],
//            [
//              48.21174802569084,
//              16.221656799316406
//            ],
//            [
//              48.20597092201654,
//              16.221656799316406
//            ]
//          ]
//        ]"; // (lat, lon))
//        CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_AND_3_POS: "48.20688615019928, 16.22955322265625"; // (lat, lon)
//        CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_AND_3_RADIUS: "5000";
//     }
        
//		Data {
@@ -491,4 +522,150 @@ Expected behaviour
    }
}  //End of TP_ECRF_HTTP_POST_BV_05

Test Purpose {
TP Id TP_ECRF_HTTP_POST_BV_06
Test objective 
    "IUT successfully responds with a service URI for a Circle that intersects service boundary" 
Reference 
    "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause XXX EMERGENCY CALL ROUTING FUNCTION (ECRF)",
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.4",
    "https://tools.ietf.org/html/rfc5222"
//Config Id CFG_ECRF_01
PICS Selection PICS_HTTP_POST_REQUEST and PICS_SERVICE_LOST
Initial conditions with {
    the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_1 containing
        serviceMappingFor SERVICE_URN_1 containing
        	URI indicating value SIP_URI_1;
    ;
    and the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_2 containing
        serviceMappingFor SERVICE_URN_2 containing
        	URI indicating value SIP_URI_2;
    ;
}
Expected behaviour
    ensure that {
        when {
            the IUT entity receives a POST containing
                Uri indicating value "/service",
                Host,
                not Accept,
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "findService" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "location" containing
                                element "Circle" inNamespace "http://www.opengis.net/pidflo/1.0" containing
                                    attribute "srsName" indicating value "urn:ogc:def:crs:EPSG::4326",
                                    element "pos" inNamespace "http://www.opengis.net/gml" indicating value CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_POS,
                                    element "radius" indicating value CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_RADIUS containing
                                        attribute "uom" indicating value "urn:ogc:def:uom:EPSG::9001"
                                    ;
                                ;
                            ,
                            element "service" indicating value SERVICE_URN_2;
                        ;
                    ;
                ;
            ;
        }
        then {
            the IUT entity sends a httpResponse containing
                Status_Code indicating value "200 OK",
                version indicating value "1.0",
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "findServiceResponse" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "mapping" containing
                                attribute "source",
                                attribute "sourceId",
                                attribute "lastUpdated",
                                attribute "expires",
                                element "service" indicating value SERVICE_URN_2,
                                element "uri" indicating value SIP_URI_2;
                            ,
                            element "locationUsed"
                        ;
                    ;
                ;
            ;
        }
    }
}  //End of TP_ECRF_HTTP_POST_BV_06

Test Purpose {
TP Id TP_ECRF_HTTP_POST_BV_07
Test objective 
    "IUT successfully responds with a service URI for a Circle that intersects multiple service boundaries" 
Reference 
    "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause XXX EMERGENCY CALL ROUTING FUNCTION (ECRF)",
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.4",
    "https://tools.ietf.org/html/rfc5222"
//Config Id CFG_ECRF_01
PICS Selection PICS_HTTP_POST_REQUEST and PICS_SERVICE_LOST
Initial conditions with {
    the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_2 containing
        serviceMappingFor SERVICE_URN_2 containing
        	URI indicating value SIP_URI_2;
    ;
    and the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_3 containing
        serviceMappingFor SERVICE_URN_3 containing
        	URI indicating value SIP_URI_3;
    ;
}
Expected behaviour
    ensure that {
        when {
            the IUT entity receives a POST containing
                Uri indicating value "/service",
                Host,
                not Accept,
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "findService" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "location" containing
                                element "Circle" inNamespace "http://www.opengis.net/pidflo/1.0" containing
                                    attribute "srsName" indicating value "urn:ogc:def:crs:EPSG::4326",
                                    element "pos" inNamespace "http://www.opengis.net/gml" indicating value CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_AND_3_POS,
                                    element "radius" indicating value CIRCLE_INTERSECTING_SERVICE_BOUNDARY_2_AND_3_RADIUS containing
                                        attribute "uom" indicating value "urn:ogc:def:uom:EPSG::9001"
                                    ;
                                ;
                            ,
                            element "service" indicating value SERVICE_URN_2;
                        ;
                    ;
                ;
            ;
        }
        then {
            the IUT entity sends a httpResponse containing
                Status_Code indicating value "200 OK",
                version indicating value "1.0",
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "findServiceResponse" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "mapping" containing
                                attribute "source",
                                attribute "sourceId",
                                attribute "lastUpdated",
                                attribute "expires",
                                element "service" indicating value SERVICE_URN_2,
                                element "uri" indicating value SIP_URI_2;
                            ,
                            element "locationUsed"
                        ;
                    ;
                ;
            ;
        }
    }
}  //End of TP_ECRF_HTTP_POST_BV_07

}
 No newline at end of file