示例#1
0
        public static void Main(string[] args)
        {
            string a = "setup -testset testset.txt -config config.txt";

            string[] bs = a.Split(' ');

            //load command
            if (!CommandReader.load(bs))
            {
                return;
            }
            CommandEngine.run(CommandReader.Command, CommandReader.Options);


            int interval = 20;

            Thread.Sleep(interval * 1000);

            //Resource.load();
            //prepare();
            //Resource.finishLoad();


            //Resource.release();
        }
示例#2
0
        static void Main(string[] args)
        {
            string a = "setup -testset testset.txt -config config.txt";

            string[] bs = a.Split(' ');

            int i;

            //TODO:DFunc.Dir = System.Environment.CurrentDirectory;

            //load command
            if (!CommandReader.load(bs))
            {
                return;
            }
            CommandEngine.run(CommandReader.Command, CommandReader.Options);
            String testsetPath = "Testset.txt";

            Test[] tests = TestsReader.getTests(testsetPath);

            String testName = "DTest";



            //Get class type
            Type testType = typeof(Test1.DTest);

            //Get class instance
            object test = Activator.CreateInstance(testType);

            //Get case1 and exec
            i = 1;
            runTest(testType, test, i, testName);
            i = 2;
            runTest(testType, test, i, testName);


            Thread.Sleep(10000);
        }