/// <summary>
        /// Downloads the diagnostic data for the given test run
        /// </summary>
        /// <param name="testRunId"></param>
        internal static void DownloadDiagnosticData(string testRunId)
        {
            var testResults = CltWebApi.GetTestRunResults(testRunId);

            if (string.IsNullOrWhiteSpace(testResults.ResultsUrl))
            {
                Logger.LogMessage("No result available for run " + testRunId);
            }
            else
            {
                Logger.LogMessage("Downloading diagnostic data for run from uri: {0}", testResults.Diagnostics.DiagnosticStoreConnectionString);
                var resultFilePath = CltUploadDownloadHelper.DownloadDiagnosticData(testResults.Diagnostics.DiagnosticStoreConnectionString, testResults.Diagnostics.RelativePathToDiagnosticFiles);
                Logger.LogMessage("File location: {0}", Path.Combine(resultFilePath, testRunId));
            }
        }
        /// <summary>
        /// Downloads the result for the given test run, decompresses it to an ltrar file
        /// </summary>
        /// <param name="testRunId"></param>
        internal static void DownloadResult(string testRunId)
        {
            var testResults = CltWebApi.GetTestRunResults(testRunId);

            if (string.IsNullOrWhiteSpace(testResults.ResultsUrl))
            {
                Logger.LogMessage("No result available for run " + testRunId);
            }
            else
            {
                Logger.LogMessage("Downloading result file from uri: {0}", testResults.ResultsUrl);
                var resultFilePath = CltUploadDownloadHelper.DownloadResult(testResults.ResultsUrl);
                Logger.LogMessage("File location: {0}", resultFilePath);
                Console.WriteLine("Decompressing result.");
                var ltrarFilePath = CltUploadDownloadHelper.DecompressResult(resultFilePath);
                Logger.LogMessage("Ltrar file location: {0}", ltrarFilePath);
            }
        }