Example #1
0
        private static List <ITestCaseStep> GetTestCaseStepsFrom(XmlNode testStepsNode)
        {
            var result = new List <ITestCaseStep>();

            if (testStepsNode != null)
            {
                XmlNodeList xmlNodeList = testStepsNode.SelectNodes("step");
                if (xmlNodeList != null)
                {
                    foreach (XmlNode stepNode in xmlNodeList)
                    {
                        ITestCaseStep testCaseStep = TestCaseStepFactory.CreateDefaultTestCaseStep();
                        testCaseStep.StepNumber      = SelectAndReadNodeTextAsInt32(stepNode, "step_number");
                        testCaseStep.Actions         = SelectAndReadNodeTextAsString(stepNode, "actions");
                        testCaseStep.ExpectedResults = SelectAndReadNodeTextAsString(stepNode, "expectedresults");
                        testCaseStep.ExecutionType   = SelectAndReadNodeTextAsInt32(stepNode, "execution_type");
                        result.Add(testCaseStep);
                    }
                }
            }

            return(result);
        }
Example #2
0
        public static void Refresh()
        {
            //Administration
            AreaManagerFactory.Reset();
            GlobalListFactory.Reset();
            IterationManagerFactory.Reset();
            ProcessTemplateFactory.Reset();
            TeamManagerFactory.Reset();
            TeamProjectFactory.Reset();
            TfsTeamProjectCollectionFactory.Reset();
            TeamProjectCollectionFactory.Reset();

            //Queries
            QueryRunnerFactory.Reset();

            //TestManagement
            TestCaseFactory.Reset();
            TestCaseStepFactory.Reset();
            TestSuiteFactory.Reset();
            TestSuiteManagerFactory.Reset();

            //WorkItemTracking
            WorkItemStoreFactory.Reset();
        }