Skip to content

Instantly share code, notes, and snippets.

@danwaters
Created April 2, 2015 23:45
Show Gist options
  • Save danwaters/6e2d171fd70ac2253cdd to your computer and use it in GitHub Desktop.
Save danwaters/6e2d171fd70ac2253cdd to your computer and use it in GitHub Desktop.
var builder = new StringBuilder();
builder.AppendLine("***** Scenario Complete: TIMING INFO BELOW *****");
builder.AppendLine("Completed in " + timing.RunTime.ToString());
var result = await client.GetAsync("api/timingentry?scenarioGuid=" + timing.Guid);
if (result.IsSuccessStatusCode)
{
var runtime = result.Content.ReadAsAsync<TimeSpan>();
builder.AppendLine("Average local runtime for this scenario is: " + runtime);
builder.AppendLine("The most recent local runtime was ...");
}
else
{
builder.AppendLine("Couldn't get historical local test run data.");
}
builder.AppendLine("***** END TIMING DATA *****");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment