private void VerifyAddAttachmentOperation(string attachmentRelativeUrl)
{
// Ensure the SOAP result is de-serialized successfully.
Site.Assume.IsNotNull(
attachmentRelativeUrl,
"The result of AddAttachment operation must not be null.");
// Verify R1549
// 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(
1549,
@"[The schema of Addattachment is defined as:]"
+ @"<wsdl:operation name=""AddAttachment"">"
+ @" <wsdl:input message=""AddAttachmentSoapIn"" />"
+ @" <wsdl:output message=""AddAttachmentSoapOut"" />"
+ @"</wsdl:operation>");
// Verify R288
// 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(
288,
@"[AddAttachment]The protocol client sends an AddAttachmentSoapIn request "
+ "message and the server responds with an AddAttachmentSoapOut response "
+ "message.");
// Verify R1561
// 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(
1561,
@"[AddAttachmentSoapOut]The SOAP Body contains an AddAttachmentResponse "
+ "element.");
// Verify R1569
// 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(
1569,
@"[AddAttachmentResponse]<s:element name=""AddAttachmentResponse"">"
+ @" <s:complexType>"
+ @" <s:sequence>"
+ @" <s:element name=""AddAttachmentResult"" type=""s:string"" minOccurs=""0""/>"
+ @" </s:sequence>"
+ @" </s:complexType>"
+ @"</s:element>");
}