示例#1
0
        public void UpdateALMType(eALMType AlmType)
        {
            bool firstSync = false;

            if (AlmCore == null)
            {
                firstSync = true;
            }

            switch (AlmType)
            {
            case eALMType.QC:
                AlmCore = new QCCore();
                AlmRepo = new QCRepository();
                break;

            case eALMType.RQM:
                AlmCore = new RQMCore();
                AlmRepo = new RQMRepository();
                break;

            case eALMType.RALLY:
                AlmCore = new RallyCore();
                AlmRepo = new RallyRepository();
                break;
            }
            if (firstSync)
            {
                SetALMCoreConfigurations();
            }
        }
示例#2
0
        public void UpdateALMType(GingerCoreNET.ALMLib.ALMIntegration.eALMType AlmType)
        {
            GingerCoreNET.ALMLib.ALMConfig CurrentAlmConfigurations = GetCurrentAlmConfig(AlmType);
            ALMCore.DefaultAlmConfig = CurrentAlmConfigurations;
            switch (AlmType)
            {
            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.QC:
                if (!CurrentAlmConfigurations.UseRest)
                {
                    AlmCore = new QCCore();
                    AlmRepo = new QCRepository();
                }
                else
                {
                    AlmCore = new QCRestAPICore();
                    AlmRepo = new QCRestAPIRepository();
                }
                break;

            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.RQM:
                AlmCore = new RQMCore();
                AlmRepo = new RQMRepository();
                break;

            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.RALLY:
                AlmCore = new RallyCore();
                AlmRepo = new RallyRepository();
                break;

            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.Jira:
                AlmCore = new JiraCore();
                AlmRepo = new JIRA_Repository(AlmCore);
                break;

            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.Qtest:
                AlmCore = new QtestCore();
                AlmRepo = new QtestRepository();
                break;

            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.Octane:

                if (!(AlmCore is OctaneCore && AlmRepo is OctaneRepository))
                {
                    AlmCore = new OctaneCore();
                    AlmRepo = new OctaneRepository(AlmCore);
                }


                break;

            case GingerCoreNET.ALMLib.ALMIntegration.eALMType.ZephyrEnterprise:
                AlmCore = new ZephyrEntCore();
                AlmRepo = new ZephyrEnt_Repository(AlmCore);
                break;
            }
            AlmCore.GetCurrentAlmConfig();
            SetALMCoreConfigurations(AlmType);
        }
示例#3
0
        public void UpdateALMType(eALMType AlmType)
        {
            bool firstSync = false;

            if (AlmCore == null)
            {
                firstSync = true;
            }

            switch (AlmType)
            {
            case eALMType.QC:
                if (!WorkSpace.Instance.Solution.UseRest)
                {
                    AlmCore = new QCCore();
                    AlmRepo = new QCRepository();
                }
                else
                {
                    AlmCore = new QCRestAPICore();
                    AlmRepo = new QCRestAPIRepository();
                }
                break;

            case eALMType.RQM:
                AlmCore = new RQMCore();
                AlmRepo = new RQMRepository();
                break;

            case eALMType.RALLY:
                AlmCore = new RallyCore();
                AlmRepo = new RallyRepository();
                break;

            case eALMType.Jira:
                AlmCore = new JiraCore();
                AlmRepo = new JIRA_Repository(AlmCore);
                break;
            }
            if (firstSync)
            {
                SetALMCoreConfigurations();
            }
        }