Beispiel #1
0
        public bool Run(string name, int user, string config)
        {
            UnitTest ut = null;

            if (mTimer != null)
            {
                mTimer.Dispose();
            }
            if (UnitTests.TryGetValue(name, out ut))
            {
                mCurrentTest = ut;
                ut.Users     = user;
                ut.Config    = config;
                ut.Execute();
                Loger.Process(LogType.INFO, "{0} unitTest runing", name);
                mTimer = new System.Threading.Timer(OnTime, null, 1000, 1000);
                return(true);
            }
            else
            {
                Loger.Process(LogType.INFO, "{0} not found!", name);
            }
            return(false);
        }