Loading ttcn/AtsLIS/AtsLIS_TestCases.ttcn +53 −2 Original line number Diff line number Diff line Loading @@ -148,7 +148,9 @@ module AtsLIS_TestCases { in template (present) LocationResponseType p_location_response ) := mw_http_response(mw_http_response_ok(mw_http_message_body_xml(mw_body_xml_location_response(p_location_response)))) template HttpMessage mw_http_error_response( in template (present) ErrorType p_error ) := mw_http_response(mw_http_response_ok(mw_http_message_body_xml(mw_body_xml_location_response_error(p_error)))) /** Loading Loading @@ -540,6 +542,55 @@ module AtsLIS_TestCases { f_cf_01_http_down(); } // End of testcase TC_LIS_HELD_BV_07 } // End of group lis_role } // End of Group HELD group Errors { /** * @desc "IUT responds with an error response when it receives a location request for an unknown device" */ testcase TC_LIS_HELD_BI_01() runs on HttpComponent system TestAdapter { // Test control f_check_pics({ values := {PICS_LIS_HELD_BY_VALUE}, names := {"PICS_LIS_HELD_BY_VALUE"}}); // Test component configuration f_cf_01_http_up(); // Preamble f_sendRequest(m_locationRequest({encvalue_unichar(valueof(m_device({ PX_UNKNOWN_DEVICE_URI })))})); f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); // Test Body tc_ac.start; f_receiveResponse(mw_http_error_response(mw_error_type("locationUnknown"))); // Postamble f_cf_01_http_down(); } // End of testcase TC_LIS_HELD_BI_01 /** * @desc "IUT responds with an error response when it receives a location request with an unmatched location type" */ testcase TC_LIS_HELD_BI_02() runs on HttpComponent system TestAdapter { // Test control f_check_pics({ values := {PICS_LIS_HELD_BY_VALUE}, names := {"PICS_LIS_HELD_BY_VALUE"}}); // Test component configuration f_cf_01_http_up(); // Preamble f_sendRequest(m_locationRequest({encvalue_unichar(valueof(m_device({ PX_DEVICE_NUMBER[PX_DEVICE_NUMBER_POINT] })))}, m_locationTypeType(m_locationTypeBase_civic, true))); f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); // Test Body tc_ac.start; f_receiveResponse(mw_http_error_response(mw_error_type("cannotProvideLiType"))); // Postamble f_cf_01_http_down(); } // End of testcase TC_LIS_HELD_BI_02 } } // End of module AtsLIS_TestCases Loading
ttcn/AtsLIS/AtsLIS_TestCases.ttcn +53 −2 Original line number Diff line number Diff line Loading @@ -148,7 +148,9 @@ module AtsLIS_TestCases { in template (present) LocationResponseType p_location_response ) := mw_http_response(mw_http_response_ok(mw_http_message_body_xml(mw_body_xml_location_response(p_location_response)))) template HttpMessage mw_http_error_response( in template (present) ErrorType p_error ) := mw_http_response(mw_http_response_ok(mw_http_message_body_xml(mw_body_xml_location_response_error(p_error)))) /** Loading Loading @@ -540,6 +542,55 @@ module AtsLIS_TestCases { f_cf_01_http_down(); } // End of testcase TC_LIS_HELD_BV_07 } // End of group lis_role } // End of Group HELD group Errors { /** * @desc "IUT responds with an error response when it receives a location request for an unknown device" */ testcase TC_LIS_HELD_BI_01() runs on HttpComponent system TestAdapter { // Test control f_check_pics({ values := {PICS_LIS_HELD_BY_VALUE}, names := {"PICS_LIS_HELD_BY_VALUE"}}); // Test component configuration f_cf_01_http_up(); // Preamble f_sendRequest(m_locationRequest({encvalue_unichar(valueof(m_device({ PX_UNKNOWN_DEVICE_URI })))})); f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); // Test Body tc_ac.start; f_receiveResponse(mw_http_error_response(mw_error_type("locationUnknown"))); // Postamble f_cf_01_http_down(); } // End of testcase TC_LIS_HELD_BI_01 /** * @desc "IUT responds with an error response when it receives a location request with an unmatched location type" */ testcase TC_LIS_HELD_BI_02() runs on HttpComponent system TestAdapter { // Test control f_check_pics({ values := {PICS_LIS_HELD_BY_VALUE}, names := {"PICS_LIS_HELD_BY_VALUE"}}); // Test component configuration f_cf_01_http_up(); // Preamble f_sendRequest(m_locationRequest({encvalue_unichar(valueof(m_device({ PX_DEVICE_NUMBER[PX_DEVICE_NUMBER_POINT] })))}, m_locationTypeType(m_locationTypeBase_civic, true))); f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); // Test Body tc_ac.start; f_receiveResponse(mw_http_error_response(mw_error_type("cannotProvideLiType"))); // Postamble f_cf_01_http_down(); } // End of testcase TC_LIS_HELD_BI_02 } } // End of module AtsLIS_TestCases