Esempio n. 1
0
        internal AutomatedLauncherStatus GetStatus()
        {
            mLog.DebugFormat("GetStatus invoked");

            if (mLauncher == null)
            {
                return(new AutomatedLauncherStatus());
            }

            AutomatedLauncherStatus result = new AutomatedLauncherStatus();

            LauncherStatus launcherStatus = mLauncher.GetStatus();

            if (launcherStatus == null)
            {
                return(new AutomatedLauncherStatus());
            }

            result.TestCount          = launcherStatus.TestCount;
            result.TestToExecuteCount = launcherStatus.TestToExecuteCount;
            result.CurrentTestName    = launcherStatus.CurrentTestName;
            result.CurrentTest        = launcherStatus.CurrentTest;
            result.ExecutedTests      = launcherStatus.ExecutedTests;
            result.RepeatedTests      = launcherStatus.GetRepeatedTests();
            result.FailedTests        = launcherStatus.GetFailedTests();
            result.IgnoredTests       = launcherStatus.GetIgnoredTests();
            result.WarningMsg         = launcherStatus.WarningMsg;
            result.Finished           = mbFinished;

            return(result);
        }
Esempio n. 2
0
 static string GetContent(LauncherStatus status, bool bFinished)
 {
     return(string.Join(FileReportConstants.FIELD_SEPARATOR, new string[] {
         status.TestCount.ToString(),
         status.TestToExecuteCount.ToString(),
         status.CurrentTestName,
         status.CurrentTest.ToString(),
         status.ExecutedTests.ToString(),
         string.Join(FileReportConstants.LIST_SEPARATOR, status.GetRepeatedTests().ToArray()),
         string.Join(FileReportConstants.LIST_SEPARATOR, status.GetFailedTests().ToArray()),
         string.Join(FileReportConstants.LIST_SEPARATOR, status.GetIgnoredTests().ToArray()),
         status.WarningMsg,
         bFinished.ToString()
     }));
 }