/// <summary> /// Verify the message syntax of GetListAndView operation when the response is received /// successfully. /// </summary> /// <param name="getListAndViewResult">The returned SOAP result.</param> private void VerifyGetListAndViewOperation(GetListAndViewResponseGetListAndViewResult getListAndViewResult) { Site.Assert.IsNotNull( getListAndViewResult, "The return result of this operation cannot be NULL"); // Verify R1775 // The response have been received successfully, then the following requirement can be captured. // If the response is not received and parsed successfully, the test case will fail before this requirement is captured Site.CaptureRequirement( 1775, @"[The schema of GetListAndView is defined as:]" + @"<wsdl:operation name=""GetListAndView"">" + @" <wsdl:input message=""GetListAndViewSoapIn"" />" + @" <wsdl:output message=""GetListAndViewSoapOut"" />" + @"</wsdl:operation>"); // Verify R567 // The response have been received successfully, then the following requirement can be captured. // If the response is not received and parsed successfully, the test case will fail before this requirement is captured Site.CaptureRequirement( 567, @"[In GetListAndView operation] [If the protocol client sends a " + "GetListAndViewSoapIn request message] The server MUST respond with a " + "GetListAndViewSoapOut response message."); // Verify R1783 // The response have been received successfully, then the following requirement can be captured. // If the response is not received and parsed successfully, the test case will fail before this requirement is captured Site.CaptureRequirement( 1783, @"The SOAP Body contains a GetListAndViewResponse element."); // Verify R1787 // The response have been received successfully, then the following requirement can be captured. // If the response is not received and parsed successfully, the test case will fail before this requirement is captured Site.CaptureRequirement( 1787, @"[The schema of GetListAndViewResponse is defined as:]<s:element name=""GetListAndViewResponse""> <s:complexType> <s:sequence> <s:element name=""GetListAndViewResult"" minOccurs=""0""> <s:complexType mixed=""true""> <s:sequence> <s:element name=""ListAndView""> <s:complexType mixed=""true""> <s:sequence> <s:element name=""List"" type=""tns:ListDefinitionSchema"" /> <s:element name=""View"" type=""core:ViewDefinition"" /> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element>"); // Verify R1789 // The response have been received successfully, then the following requirement can be captured. // If the response is not received and parsed successfully, the test case will fail before this requirement is captured Site.CaptureRequirement( 1789, @"[GetListAndViewResponse]ListDefinitionSchema: Specifies the schema for the list"); // Verify R1790 // The response have been received successfully, then the following requirement can be captured. // If the response is not received and parsed successfully, the test case will fail before this requirement is captured Site.CaptureRequirement( 1790, @"[GetListAndViewResponse]ViewDefinition: Specifies the schema for the view."); Site.Assert.IsNotNull(getListAndViewResult, "The return result of this operation cannot be NULL"); this.VerifyListDefinitionCT(getListAndViewResult.ListAndView.List); // Verify the requirements of the ListDefinitionSchema complex type. if (getListAndViewResult.ListAndView.List != null) { this.VerifyListDefinitionSchema(getListAndViewResult.ListAndView.List); } }