Пример #1
0
        public void canSerializeDeserialzeTFSStateManagerByProjNameTeamNameAreaId()
        {
            var sm = new TFSStateManager();

            sm.ProjectName = "Serialize Test";
            sm.TeamName    = "Team Test";
            sm.AreaId      = 67;

            sm.AddState("Cat1", "Backlog", "New", true, false);
            sm.AddState("Cat1", "Backlog", "New", false, true);
            sm.AddState("Cat1", "Story Authoring", "New", true, false);
            sm.AddState("Cat1", "Story Authoring", "New", false, true);
            sm.AddState("Cat2", "Ready for Dev", "New", true, false);
            sm.AddState("Cat2", "Ready for Dev", "New", false, true);
            sm.AddState("Development", "Development", "Active", true, false);
            sm.AddState("DevelopmentDone", "Development", "Active", false, true, true);


            TFSStateManager.SaveFuzzFile(Path.GetDirectoryName(TFSRegistry.GetTFSMdbPath()), sm);


            var FuzzFiles = TFSStateManager.LoadFuzzFiles(Path.GetDirectoryName(TFSRegistry.GetTFSMdbPath()));
        }
Пример #2
0
        public void testCreateManualFileForWMA()
        {
            var sm = new TFSStateManager();

            sm.ProjectUri  = "https://wegmans.visualstudio.com/";
            sm.ProjectName = "MARKETING TEMP";
            sm.TeamName    = "Wegmans Mobile App";
            sm.AreaId      = 2884;


            //cat, kanban col, sys state
            sm.AddState("Backlog", "New", "New", false, true);
            sm.AddState("Backlog", "New", "New", true, false);
            sm.AddState("Backlog", "Backlog", "New", false, true);
            sm.AddState("Backlog", "Backlog", "New", true, false);
            sm.AddState("Backlog", "Story Authoring", "New", false, true);
            sm.AddState("Backlog", "Story Authoring", "New", true, false);
            sm.AddState("Backlog", "Ready For Dev", "New", false, true);
            sm.AddState("Backlog", "Ready For Dev", "New", true, false);

            sm.AddState("Development", "Active", "Active", true, false);
            sm.AddState("Development", "Active", "Active", false, true);
            sm.AddState("Development", "Development", "Active", true, false);
            sm.AddState("DevelopmentDone", "Development", "Active", false, true, true); //dev done

            sm.AddState("AsynchronyQA", "Asynchrony QA", "Active", true, false);
            sm.AddState("AsynchronyQADone", "Asynchrony QA", "Active", false, true, false, true); //qa done

            sm.AddState("WegmansQA", "Wegmans QA", "Active", true, false);
            sm.AddState("WegmansQADone", "Wegmans QA", "Active", false, true, false, false, true); //uat done

            sm.AddState("POReview", "PO Review", "Resolved", true, false);
            sm.AddState("POReviewDone", "PO Review", "Resolved", false, true);

            sm.AddState("Smoketest", "Alpha Channel Smoke Test", "Resolved", true, false);
            sm.AddState("SmoketestDone", "Alpha Channel Smoke Test", "Resolved", false, true);

            sm.AddState("Closed", "Closed", "Closed", false, true);
            sm.AddState("Closed", "Closed", "Closed", true, false);

            TFSStateManager.SaveFuzzFile(Path.GetDirectoryName(TFSRegistry.GetTFSMdbPath()), sm);


            //------------------------------------------------------------------
            sm = new TFSStateManager();

            sm.ProjectUri  = "https://wegmans.visualstudio.com/";
            sm.ProjectName = "MARKETING TEMP";
            sm.TeamName    = "DevCXOne";
            sm.AreaId      = 405;


            //cat, kanban col, sys state
            sm.AddState("Backlog", "New", "New", false, true);
            sm.AddState("Backlog", "New", "New", true, false);
            sm.AddState("Backlog", "Backlog", "New", false, true);
            sm.AddState("Backlog", "Backlog", "New", true, false);
            sm.AddState("Backlog", "Story Authoring", "New", false, true);
            sm.AddState("Backlog", "Story Authoring", "New", true, false);
            sm.AddState("Backlog", "Ready for grooming", "New", false, true);
            sm.AddState("Backlog", "Ready for grooming", "New", true, false);
            sm.AddState("Backlog", "Ready For Development", "Active", false, true);
            sm.AddState("Backlog", "Ready For Devdevelopment", "Active", true, false);

            sm.AddState("Development", "Active", "Active", true, false);
            sm.AddState("Development", "Active", "Active", false, true);
            sm.AddState("Development", "Development", "Active", true, false);
            sm.AddState("DevelopmentDone", "Development", "Active", false, true, true); //dev done

            sm.AddState("PeerReview", "Peer Review", "Active", true, false);
            sm.AddState("PeerReviewDone", "Peer Review Done", "Active", false, true);

            sm.AddState("ReadyQA", "Ready for QA", "Active", true, false);
            sm.AddState("ReadyQA", "Ready for QA", "Active", false, true);

            sm.AddState("QA", "Quality Assurance", "Active", true, false);
            sm.AddState("QADone", "Quality Assurance", "Active", false, true);//qa done

            sm.AddState("ReadyForProduction", "Ready for production", "Resolved", true, false);
            sm.AddState("ReadyForProduction", "Ready for production", "Resolved", false, true);

            sm.AddState("Closed", "Closed", "Closed", false, true);
            sm.AddState("Closed", "Closed", "Closed", true, false);

            sm.AddState("Closed", "Done", "Closed", false, true);
            sm.AddState("Closed", "Done", "Closed", true, false);

            TFSStateManager.SaveFuzzFile(Path.GetDirectoryName(TFSRegistry.GetTFSMdbPath()), sm);
        }