Ejemplo n.º 1
0
        public void configureTestReport(String currentTestSuiteName, String currentTestCaseName)
        {
            reporter = MbUnitHelperSuper.getReporterInstance();
            String previousTestSuiteName = Settings.ProjectData.Default.CURRENT_TEST_SUITE;

            if (previousTestSuiteName != currentTestSuiteName)
            {
                reporter.addNewTestSuite(currentTestSuiteName);
                Settings.ProjectData.Default.CURRENT_TEST_SUITE = currentTestSuiteName;
            }

            reporter.addNewTestCase(currentTestCaseName);
        }
Ejemplo n.º 2
0
        public void reportResults(bool stopOnFailure, string category, string message, LogLevel logLevel, string stackTrace, object customErrorMessage = null)
        {
            reporter = MbUnitHelperSuper.getReporterInstance();

            if (customErrorMessage != null)
            {
                message = "Custom error message : " + customErrorMessage + ".\n " + message;
            }

            reporter.reportStepResults(false, category, message, logLevel.ToString(), stackTrace);
            if (stopOnFailure)
            {
                failure(message);
            }
            else
            {
                verificationErrors.Append(message + "\n");
            }
        }
Ejemplo n.º 3
0
 public void reportResults(String category, String message, LogLevel logLevel)
 {
     reporter = MbUnitHelperSuper.getReporterInstance();
     reporter.reportStepResults(true, category, message, logLevel.ToString(), "");
 }