예제 #1
0
        public void Initialize(TestLoggerEvents events, Dictionary<string, string> parameters)
        {
            testManager = new TestManager(parameters);

            foreach (var param in parameters)
            {
                Console.WriteLine("Property: {0}   Value:{1}", param.Key, param.Value);                
            }

            events.TestResult += events_TestResult;
            events.TestRunMessage += events_TestRunMessage;
            events.TestRunComplete += events_TestRunComplete;
        }
예제 #2
0
        public override bool Execute()
        {
            try
            {
                Log.LogMessageFromText(String.Format("PnPTestSummaryTask: processing information from folder {0}", TestResultsPath), MessageImportance.Normal);

                Dictionary<string, string> parameters = new Dictionary<string, string>();
                parameters.Add("MDPath", TestResultsPath);

                TestManager testManager = new TestManager(parameters);
                testManager.GenerateMDSummaryReport();

                return true;
            }
            catch (Exception ex)
            {
                Log.LogErrorFromException(ex);
                return false;
            }
        }