/// <summary> /// Send the data of the test to the server. /// </summary> /// <param name="image">The image to send.</param> /// <param name="testName">The name of the test.</param> public void SendImage(Image image, string testName) { var currentVersion = CurrentVersion.ToString(); if (CurrentVersionExtra != null) { currentVersion += CurrentVersionExtra; } // TODO: Allow textual frame names (and use FrameIndex if not properly set) var frameIndex = FrameIndex++; ImageTester.SendImage(new TestResultImage { CurrentVersion = currentVersion, Frame = frameIndex.ToString(), Image = image, TestName = testName }); }
/// <summary> /// Send the data of the test to the server. /// </summary> /// <param name="image">The image to send.</param> /// <param name="serial">The serial of the device.</param> /// <param name="testName">The name of the test.</param> public void SendImage(Image image, string serial, string testName, int frameIndex) { ImageTester.SendImage(new TestResultImage { BaseVersionFileName = BaseVersionFileName, BaseVersion = BaseVersionNumber, CurrentVersion = CurrentVersionNumber, Image = image }, testName); }