Meyn.TestLink.TestLink.UploadTestProjectAttachment C# (CSharp) Méthode

UploadTestProjectAttachment() public méthode

upload an attachment to a test project
public UploadTestProjectAttachment ( int executionId, string filename, string fileType, byte content, string title = "", string description = "" ) : AttachmentRequestResponse
executionId int
filename string
fileType string
content byte
title string
description string
Résultat AttachmentRequestResponse
        public AttachmentRequestResponse UploadTestProjectAttachment(int executionId, string filename, string fileType, byte[] content, string title = "", string description = "")
        {
            string base64String;
            try {
                base64String = Convert.ToBase64String(content, 0, content.Length);
            } catch (ArgumentNullException) {
                // System.Console.WriteLine("Binary data array is null.");
                base64String = "";
            }
            stateIsValid();
            object response = proxy.uploadTestProjectAttachment(devkey, executionId, filename, fileType, base64String, title, description);
            handleErrorMessage(response);
            AttachmentRequestResponse r = new AttachmentRequestResponse(response as XmlRpcStruct);
            return r;
        }