Exemple #1
0
        static IPNUnitAgent GetAgent(TestConf test)
        {
            IPNUnitAgent agent = (IPNUnitAgent)Activator.GetObject(
                typeof(IPNUnitAgent),
                string.Format("tcp://{0}/{1}",
                              test.Machine,
                              Names.PNUnitAgentServiceName));

            return(agent);
        }
Exemple #2
0
        void NotifyException(
            PNUnitService service, TestConf test, Exception e)
        {
            TestName tn = new TestName();

            tn.Name = test.Name;

            string fullMessage = string.Format(
                "{0}; EXCEPTION TYPE: {1}; STACK TRACE: {2}",
                e.Message, e.GetType(), e.StackTrace);

            PNUnitTestResult tr = new PNUnitTestResult(tn, fullMessage,
                                                       string.Empty, string.Empty);

            tr.Failure(fullMessage, e.StackTrace);

            service.NotifyResult(test.Name, tr);
        }
Exemple #3
0
        private void NotifyException(TestConf test, Exception e)
        {
            TestName tn = new TestName();
            tn.Name = test.Name;

            PNUnitTestResult tr = new PNUnitTestResult(tn, e.Message);
            tr.Failure(e.Message, e.StackTrace);

            NotifyResult(test.Name, tr);
        }