/// <summary> /// The move reports to directory. /// </summary> /// <param name="testRunID"> /// The test run id. /// </param> /// <param name="deviceIID"> /// The device iid. /// </param> public static void MoveReportsToDirectory(int testRunID, int deviceIID) { Report.End(); Thread.Sleep(10000); string driveLetter = new DISEHHelper().GetDriveLetter(); if (driveLetter != string.Empty && testRunID != 0) { destinationDirectory = driveLetter + "\\" + PathProtocol + "\\" + PathMeasTech + "\\" + DeviceType + "_" + DeviceFamily + "\\" + DeviceFirmware + "_" + Convert.ToString(deviceIID) + "\\Testreports\\TA_Reports\\" + Convert.ToString(testRunID); } CreateDirectoryAndMoveAll(); }
/// <summary> /// Moves the reports to fail directory. /// </summary> public static void MoveReportsToFailDirectory() { Report.End(); Thread.Sleep(10000); DateTime now = DateTime.Now; string driveLetter = new DISEHHelper().GetDriveLetter(); string timeStamp = now.ToString("yyyMMdd") + "_" + now.ToString("HHmm"); if (driveLetter != string.Empty) { destinationDirectory = driveLetter + "\\" + PathProtocol + "\\" + PathMeasTech + "\\" + DeviceType + "_" + DeviceFamily + "\\" + DeviceFirmware + "_" + Convert.ToString(DeviceIid) + "\\Testreports\\TA_Reports\\Fail\\Unknown\\" + timeStamp; } CreateDirectoryAndMoveAll(); }