Commit 8f160a4f authored by Michael Proestler's avatar Michael Proestler
Browse files

Add TC_ECRF_LOST_BV_11, TC_ECRF_LOST_BV_12

parent c6b3dc8e
Loading
Loading
Loading
Loading
+79 −3
Original line number Diff line number Diff line
@@ -572,7 +572,7 @@ module AtsECRF_TestCases {
      f_cf_01_http_up();
                
      // Preamble
      f_sendListServicesRequest(m_list_services(-,"urn:service:sos"))            
      f_sendListServicesRequest(m_list_services(-,"urn:service:sos"));            
      f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
      
      // Test Body
@@ -587,7 +587,7 @@ module AtsECRF_TestCases {
      
      // Postamble
      f_cf_01_http_down();
    } // End of testcase TC_ECRF_HTTP_POST_BV_09
    } // End of testcase TC_ECRF_LOST_BV_09

/**
     * @desc "IUT successfully responds with configured service types for a ListServicesByLocation request"
@@ -608,7 +608,7 @@ module AtsECRF_TestCases {
                                                                          {
                                                                            m_location(
                                                                                        PX_LOCATION_ID,
                                                                                        { m_extension_point(encvalue_unichar(valueof(m_point(PX_POINT_IN_E_POLICE_SERVICE_BOUNDARY, PX_SRS_NAME, "point1")))) },
                                                                                        { m_extension_point(encvalue_unichar(valueof(m_point(PX_POINT_IN_G1, PX_SRS_NAME, "point1")))) },
                                                                                        "geodetic-2d" // TODO Use a Pixit
                                                                                        )
                                                                            },
@@ -636,6 +636,82 @@ module AtsECRF_TestCases {
        f_cf_01_http_down();
    } // End of testcase TC_ECRF_LOST_BV_10

 /**
     * @desc "IUT successfully responds with configured service types for a ListServices request without service element"
     */
    testcase TC_ECRF_LOST_BV_11() runs on HttpComponent system TestAdapter {
      // Test control
      f_check_statements({
        { name := "PICS_ECRF_LIST_SERVICES", val := PICS_ECRF_LIST_SERVICES }        
      })
               
      // Test component configuration
      f_cf_01_http_up();
                
      // Preamble
      f_sendListServicesRequest(m_list_services(-,-));            
      f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
      
      // Test Body
      tc_ac.start;
      f_receiveResponse(mw_http_list_services_response(
                                                        mw_list_services_response(
                                                                                  PX_CONFIGURED_SERVICES,
                                                                                  LibItsHttp_XmlTemplates.mw_path({ LibItsHttp_XmlTemplates.mw_via(PX_ECRF_VIA) })
                                                                                  )
                                                      )
                        );
      
      // Postamble
      f_cf_01_http_down();
    } // End of testcase TC_ECRF_LOST_BV_11    

/**
     * @desc "IUT successfully responds with configured service types for a ListServicesByLocation request without service"
     */
    testcase TC_ECRF_LOST_BV_12() runs on HttpComponent system TestAdapter {
      // Test control
      f_check_statements({
        { name := "PICS_ECRF_LIST_SERVICES_BY_LOCATION", val := PICS_ECRF_LIST_SERVICES_BY_LOCATION }        
      })
        
        // Test component configuration
        f_cf_01_http_up();
        
        
      // Preamble
      f_sendListServicesByLocationRequest(
                                            m_list_services_by_location(
                                                                          {
                                                                            m_location(
                                                                                        PX_LOCATION_ID,
                                                                                        { m_extension_point(encvalue_unichar(valueof(m_point(PX_POINT_IN_G1, PX_SRS_NAME, "point1")))) },
                                                                                        "geodetic-2d" // TODO Use a Pixit
                                                                                        )
                                                                            },
                                                                          -,
                                                                          -
                                                                        )
                                          );

      
      f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
        
        // Test Body
        tc_ac.start;

      f_receiveResponse(mw_http_list_services_by_location_response(
                                                        mw_list_services_by_location_response(
                                                                                              { "urn:service:sos.fire", "urn:service:sos.police" },
                                                                                              LibItsHttp_XmlTemplates.mw_path({ LibItsHttp_XmlTemplates.mw_via(PX_ECRF_VIA) }),
                                                                                              -,
                                                                                              mw_location_used(PX_LOCATION_ID)
                                                                                              )
                                                      )
                        );        
        // Postamble
        f_cf_01_http_down();
    } // End of testcase TC_ECRF_LOST_BV_12

  } // End of group LOST