Пример #1
0
        public void Initialize(TestLoggerEvents events, Dictionary<string, string> parameters)
        {
            //foreach (var param in parameters)
            //{
            //    Console.WriteLine("Property: {0}   Value:{1}", param.Key, param.Value);
            //}

            testManager = new TestManager(parameters);

            events.TestResult += Events_TestResult;
            events.TestRunMessage += Events_TestRunMessage;
            events.TestRunComplete += Events_TestRunComplete;
        }
Пример #2
0
        public override bool Execute()
        {
            try
            {
                //System.Diagnostics.Debugger.Launch();

                Dictionary<string, string> parameters = new Dictionary<string, string>();
                parameters.Add("PnPSQLConnectionString", PnPBase64EncoderTask.Base64Encode(SQLConnectionString).Replace("=", "&equal"));
                parameters.Add("PnPConfigurationToTest", Configuration);

                TestManager testManager = new TestManager(parameters);
                PnPTestRunId = testManager.AddTestSetRecord();
                return true;
            }
            catch (Exception ex)
            {
                Log.LogErrorFromException(ex);
                return false;
            }
        }