Ejemplo n.º 1
0
        public void Load(ISequenceGroup sequenceGroup)
        {
            //确保没有TestProject
            TestProject = null;

            //validate:1.assemblies & type 2. validateVariables 3.validate parent
            _sequenceManager.ValidateSequenceData(sequenceGroup);


            IRuntimeContext context = new RuntimeContext($"RuntimeContext 0", 0, null, sequenceGroup);
            IRuntimeSession session = new RuntimeSession(0, context);

            session.Initialize();
            _sessions.Add(session);


            _engineController.SetSequenceData(sequenceGroup);
        }
Ejemplo n.º 2
0
        public void Load(ITestProject testProject)
        {
            //todo 目前拿不到Configuration.Type, 因为_engineController._runtimeEngine为private.并且_engineController里没有接口
            //Configuration.Type

            //validate:1.assemblies & type 2. validateVariables 3.validate parent
            _sequenceManager.ValidateSequenceData(testProject);

            TestProject = testProject;
            //todo, constants里定义一个defaultListSize
            for (int n = 0; n < testProject.SequenceGroups.Count; n++)
            {
                IRuntimeContext context = new RuntimeContext($"RuntimeContext {n}", n, testProject, testProject.SequenceGroups[n]);
                IRuntimeSession session = new RuntimeSession(n, context);
                session.Initialize();
                _sessions.Add(session);
            }
            _engineController.SetSequenceData(testProject);
        }