/// <summary> /// Verify the message syntax of AddListFromFeature operation when the response is /// received successfully. /// </summary> /// <param name="addListFromFeatureResult">The result of the operation.</param> private void VerifyAddListFromFeatureOperation( AddListFromFeatureResponseAddListFromFeatureResult addListFromFeatureResult) { // Verify R1600 // 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( 1600, @"[The schema of AddListFromFeature is defined as:]" + @"<wsdl:operation name=""AddListFromFeature"">" + @" <wsdl:input message=""AddListFromFeatureSoapIn"" />" + @" <wsdl:output message=""AddListFromFeatureSoapOut"" />" + @"</wsdl:operation>"); // Verify R356 // 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( 356, @"[In AddListFromFeature operation] [If the protocol client sends an " + "AddListFromFeatureSoapIn request message,] the server responds with an " + "AddListFromFeatureSoapOut response message."); // Verify R1613 // 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( 1613, @"[AddListFromFeatureSoapOut]The SOAP Body contains an " + "AddListFromFeatureResponse element"); // Verify R1621 // 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( 1621, @"[The schema of AddListFromFeatureResponse is defined as:] " + @"<s:element minOccurs=""0"" maxOccurs=""1"" name=""AddListFromFeatureResponse"">" + @" <s:complexType>" + @" <s:sequence>" + @" <s:element name=""AddListFromFeatureResult"">" + @" <s:complexType mixed=""true"">" + @" <s:sequence>" + @" <s:element name=""List"" type=""tns:ListDefinitionSchema"" />" + @" </s:sequence>" + @" </s:complexType>" + @" </s:element>" + @" </s:sequence>" + @" </s:complexType>" + @"</s:element>"); // Verify the requirements of the ListDefinitionCT complex type. this.VerifyListDefinitionCT(addListFromFeatureResult.List); // Verify the requirements of the ListDefinitionSchema complex type. if (addListFromFeatureResult.List != null) { // Verify R1622 Site.CaptureRequirement( 1622, @"[AddListFromFeatureResponse]AddListFromFeatureResult: Contains information about the properties and schema of the list created by the AddListFromFeature operation. See section 2.2.4.12 for more details."); this.VerifyListDefinitionSchema(addListFromFeatureResult.List); } }