Пример #1
0
        public RunTestcaseResponse OnRunTest(RunTestcase e)
        {
            PacketDecodeCompletedEventArgs pdce = RouteCenter.CurrentContext.GetToken <PacketDecodeCompletedEventArgs>();

            Loger.Process(LogType.INFO, "runing {0}:{1} with {2}", e.UnitTest, e.TestCase, string.Join(",", e.Nodes));
            RunTestcaseResponse result = new Network.RunTestcaseResponse();

            foreach (string node in e.Nodes)
            {
                NodeAgent agent = NodeManager.Get(node);
                agent.RunTest(e);
            }
            mUnitTestManagers[e.UnitTest] = pdce.Session;
            return(result);
        }
Пример #2
0
 public void OnRunTest(RunTestcase e)
 {
     Loger.Process(LogType.INFO, "{0} process runing {1} test case", e.UnitTest, e.TestCase);
     this.Run(e.TestCase, e.Users, e.Config);
 }