/// <summary> /// Send a file to testserver /// </summary> /// <param name="filename">Filename of the testcases dll</param> /// <param name="testsystem">testsystem of the testcases</param> /// <param name="emailReceiver">optional emailcontact after test execution</param> /// <param name="testsuite">the testsuite to test</param> public void SendFile(string filename, string testsystem, string emailReceiver = null, string testsuite = null, string branch = null, string commitId = null, string commitMessage = null) { using (FileStream fileStream = new FileStream(filename, FileMode.Open)) { byte[] buffer = new byte[52428800]; int intSize = fileStream.Read(buffer, 0, 52428800); byte[] bufferShort = buffer.Take(intSize).ToArray(); _channel.SendTestcaseFile(testsystem, bufferShort); } _channel.AddRegTestTasks(testsystem, emailReceiver, testsuite, branch, commitId, commitMessage); }