LoggerExtensions can take in param objects[] instead of param string[]
This commit is contained in:
parent
2df24fd02a
commit
cc38726ec8
|
|
@ -200,7 +200,7 @@ namespace E2ETests
|
|||
};
|
||||
|
||||
var hostProcess = Process.Start(startInfo);
|
||||
logger.WriteInformation("Started {0}. Process Id : {1}", hostProcess.MainModule.FileName, hostProcess.Id.ToString());
|
||||
logger.WriteInformation("Started {0}. Process Id : {1}", hostProcess.MainModule.FileName, hostProcess.Id);
|
||||
Thread.Sleep(5 * 1000);
|
||||
|
||||
//Clear the appbase so that it does not create issues with successive runs
|
||||
|
|
@ -245,7 +245,7 @@ namespace E2ETests
|
|||
};
|
||||
|
||||
var hostProcess = Process.Start(startInfo);
|
||||
logger.WriteInformation("Started iisexpress. Process Id : {0}", hostProcess.Id.ToString());
|
||||
logger.WriteInformation("Started iisexpress. Process Id : {0}", hostProcess.Id);
|
||||
|
||||
return hostProcess;
|
||||
}
|
||||
|
|
@ -269,7 +269,7 @@ namespace E2ETests
|
|||
|
||||
try
|
||||
{
|
||||
logger.WriteInformation("Started {0}. Process Id : {1}", hostProcess.MainModule.FileName, hostProcess.Id.ToString());
|
||||
logger.WriteInformation("Started {0}. Process Id : {1}", hostProcess.MainModule.FileName, hostProcess.Id);
|
||||
}
|
||||
catch (Win32Exception win32Exception)
|
||||
{
|
||||
|
|
@ -332,7 +332,7 @@ namespace E2ETests
|
|||
Path.Combine(startParameters.PackedApplicationRootPath, "wwwroot") :
|
||||
Path.Combine(startParameters.PackedApplicationRootPath, "approot", "src", "MusicStore");
|
||||
|
||||
logger.WriteInformation("kpm pack finished with exit code : {0}", hostProcess.ExitCode.ToString());
|
||||
logger.WriteInformation("kpm pack finished with exit code : {0}", hostProcess.ExitCode);
|
||||
}
|
||||
|
||||
//In case of self-host application activation happens immediately unlike iis where activation happens on first request.
|
||||
|
|
@ -397,11 +397,11 @@ namespace E2ETests
|
|||
hostProcess.WaitForExit(5 * 1000);
|
||||
if (!hostProcess.HasExited)
|
||||
{
|
||||
logger.WriteWarning("Unable to terminate the host process with process Id '{0}", hostProcess.Id.ToString());
|
||||
logger.WriteWarning("Unable to terminate the host process with process Id '{0}", hostProcess.Id);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.WriteInformation("Successfully terminated host process with process Id '{0}'", hostProcess.Id.ToString());
|
||||
logger.WriteInformation("Successfully terminated host process with process Id '{0}'", hostProcess.Id);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ namespace E2ETests
|
|||
}
|
||||
applicationPool.Enable32BitAppOnWin64 = (_startParameters.KreArchitecture == KreArchitecture.x86);
|
||||
_logger.WriteInformation("Created {0} application pool '{1}' with runtime version '{2}'.",
|
||||
_startParameters.KreArchitecture.ToString(), applicationPool.Name,
|
||||
_startParameters.KreArchitecture, applicationPool.Name,
|
||||
applicationPool.ManagedRuntimeVersion ?? "default");
|
||||
return applicationPool;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace E2ETests
|
|||
using (_logger.BeginScope("NtlmAuthenticationTest"))
|
||||
{
|
||||
_logger.WriteInformation("Variation Details : HostType = {0}, KreFlavor = {1}, Architecture = {2}, applicationBaseUrl = {3}",
|
||||
serverType.ToString(), kreFlavor.ToString(), architecture.ToString(), applicationBaseUrl);
|
||||
serverType, kreFlavor, architecture, applicationBaseUrl);
|
||||
|
||||
_startParameters = new StartParameters
|
||||
{
|
||||
|
|
@ -64,7 +64,7 @@ namespace E2ETests
|
|||
}, logger: _logger);
|
||||
|
||||
_logger.WriteInformation("[Time]: Approximate time taken for application initialization : '{0}' seconds",
|
||||
(initializationCompleteTime - testStartTime).TotalSeconds.ToString());
|
||||
(initializationCompleteTime - testStartTime).TotalSeconds);
|
||||
|
||||
VerifyHomePage(response, responseContent, true);
|
||||
|
||||
|
|
@ -75,8 +75,8 @@ namespace E2ETests
|
|||
AccessStoreWithPermissions();
|
||||
|
||||
var testCompletionTime = DateTime.Now;
|
||||
_logger.WriteInformation("[Time]: All tests completed in '{0}' seconds", (testCompletionTime - initializationCompleteTime).TotalSeconds.ToString());
|
||||
_logger.WriteInformation("[Time]: Total time taken for this test variation '{0}' seconds", (testCompletionTime - testStartTime).TotalSeconds.ToString());
|
||||
_logger.WriteInformation("[Time]: All tests completed in '{0}' seconds", (testCompletionTime - initializationCompleteTime).TotalSeconds);
|
||||
_logger.WriteInformation("[Time]: Total time taken for this test variation '{0}' seconds", (testCompletionTime - testStartTime).TotalSeconds);
|
||||
testSuccessful = true;
|
||||
}
|
||||
finally
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace E2ETests
|
|||
using (_logger.BeginScope("Publish_And_Run_Tests"))
|
||||
{
|
||||
_logger.WriteInformation("Variation Details : HostType = {0}, KreFlavor = {1}, Architecture = {2}, applicationBaseUrl = {3}",
|
||||
serverType.ToString(), kreFlavor.ToString(), architecture.ToString(), applicationBaseUrl);
|
||||
serverType, kreFlavor, architecture, applicationBaseUrl);
|
||||
|
||||
_startParameters = new StartParameters
|
||||
{
|
||||
|
|
@ -84,7 +84,7 @@ namespace E2ETests
|
|||
}, logger: _logger);
|
||||
|
||||
_logger.WriteInformation("[Time]: Approximate time taken for application initialization : '{0}' seconds",
|
||||
(initializationCompleteTime - testStartTime).TotalSeconds.ToString());
|
||||
(initializationCompleteTime - testStartTime).TotalSeconds);
|
||||
|
||||
VerifyHomePage(response, responseContent, true);
|
||||
|
||||
|
|
@ -100,8 +100,8 @@ namespace E2ETests
|
|||
}
|
||||
|
||||
var testCompletionTime = DateTime.Now;
|
||||
_logger.WriteInformation("[Time]: All tests completed in '{0}' seconds.", (testCompletionTime - initializationCompleteTime).TotalSeconds.ToString());
|
||||
_logger.WriteInformation("[Time]: Total time taken for this test variation '{0}' seconds.", (testCompletionTime - testStartTime).TotalSeconds.ToString());
|
||||
_logger.WriteInformation("[Time]: All tests completed in '{0}' seconds.", (testCompletionTime - initializationCompleteTime).TotalSeconds);
|
||||
_logger.WriteInformation("[Time]: Total time taken for this test variation '{0}' seconds.", (testCompletionTime - testStartTime).TotalSeconds);
|
||||
testSuccessful = true;
|
||||
}
|
||||
finally
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ namespace E2ETests
|
|||
using (_logger.BeginScope("SmokeTestSuite"))
|
||||
{
|
||||
_logger.WriteInformation("Variation Details : HostType = {0}, KreFlavor = {1}, Architecture = {2}, applicationBaseUrl = {3}",
|
||||
serverType.ToString(), kreFlavor.ToString(), architecture.ToString(), applicationBaseUrl);
|
||||
serverType, kreFlavor, architecture, applicationBaseUrl);
|
||||
|
||||
_startParameters = new StartParameters
|
||||
{
|
||||
|
|
@ -139,7 +139,7 @@ namespace E2ETests
|
|||
}, logger: _logger);
|
||||
|
||||
_logger.WriteInformation("[Time]: Approximate time taken for application initialization : '{0}' seconds",
|
||||
(initializationCompleteTime - testStartTime).TotalSeconds.ToString());
|
||||
(initializationCompleteTime - testStartTime).TotalSeconds);
|
||||
|
||||
VerifyHomePage(response, responseContent);
|
||||
|
||||
|
|
@ -222,8 +222,8 @@ namespace E2ETests
|
|||
LoginWithMicrosoftAccount();
|
||||
|
||||
var testCompletionTime = DateTime.Now;
|
||||
_logger.WriteInformation("[Time]: All tests completed in '{0}' seconds", (testCompletionTime - initializationCompleteTime).TotalSeconds.ToString());
|
||||
_logger.WriteInformation("[Time]: Total time taken for this test variation '{0}' seconds", (testCompletionTime - testStartTime).TotalSeconds.ToString());
|
||||
_logger.WriteInformation("[Time]: All tests completed in '{0}' seconds", (testCompletionTime - initializationCompleteTime).TotalSeconds);
|
||||
_logger.WriteInformation("[Time]: Total time taken for this test variation '{0}' seconds", (testCompletionTime - testStartTime).TotalSeconds);
|
||||
testSuccessful = true;
|
||||
}
|
||||
finally
|
||||
|
|
|
|||
Loading…
Reference in New Issue