Esempio n. 1
0
        internal void LogTestRunResults(
            TestResult[] testResults, string suiteType, string testName, bool isRepeated)
        {
            TestSuiteEntry.Data entry = TestSuiteEntry.Calculate(
                testResults, mTestSuiteLoggerParams.LogSuccessfulTests);

            TestLoggerClient client = new TestLoggerClient();

            try
            {
                client.SaveTestRun(
                    mBuildId,
                    mSuiteRunId,
                    suiteType,
                    testName,
                    entry.ClientConfig,
                    entry.ServerConfig,
                    entry.BackendType,
                    entry.ExecTime,
                    entry.Status,
                    entry.Log,
                    isRepeated);
            }
            catch (Exception e)
            {
                log.Error("ERROR LOGGING TEST STATS IN DATABASE: " + e.Message);
            }
        }
Esempio n. 2
0
 static void LogTestResultsToFile(
     string outputFile,
     TestResult[] runnerResults,
     string testName,
     bool bIsRepeated,
     bool bLogSuccessful)
 {
     TestLogReport.LogTest(
         outputFile + FileReportConstants.LOG_FILE_EXTENSION,
         TestSuiteEntry.Calculate(runnerResults, bLogSuccessful),
         testName,
         bIsRepeated);
 }