Exemplo n.º 1
0
        public RuntimeContainer Generate(ITestProject testProject, RuntimePlatform platform, params object[] param)
        {
            RuntimeContainer runtimeContainer = RuntimeContainer.CreateContainer(Constants.TestProjectSessionId,
                                                                                 platform, _globalInfo, param);

            _runtimeContainers.Add(runtimeContainer.Session, runtimeContainer);
            return(runtimeContainer);
        }
Exemplo n.º 2
0
        public RuntimeContainer Generate(ISequenceGroup sequenceGroup, RuntimePlatform platform, params object[] param)
        {
            // 如果是SequenceGroup并且还有入参,则必须和包含上级TestProject一起运行
            if (null != sequenceGroup && null == sequenceGroup.Parent && 0 != sequenceGroup.Arguments.Count)
            {
                ModuleUtils.LogAndRaiseDataException(LogLevel.Error, "SequenceGroup with input arguments cannot run with out test project.", ModuleErrorCode.SequenceDataError, null, "UnexistArgumentSource");
            }
            RuntimeContainer runtimeContainer = RuntimeContainer.CreateContainer(0, platform, _globalInfo, param);

            _runtimeContainers.Add(runtimeContainer.Session, runtimeContainer);
            return(runtimeContainer);
        }