Esempio n. 1
0
        internal static void Add_TestSuite_TestSuite(Excel.XlLocation insertAt)
        {
            XlHlp.AddLabeledInfo(insertAt.AddRow(), "Test Suite Entry", "Test Suites");

            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "ID");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Title");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "AllTestCases");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "DefaultConfigurations");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Description");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Error");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "InvalidProperties");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "IsDirty");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "IsRoot");

            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "LastUpdated");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "LastUpdatedByName");

            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Parent.Id");

            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Plan.Id");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Plan.Name");

            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "Revision");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "State");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "TestCaseCount");
            XlHlp.AddColumnHeaderToSheet(insertAt.AddOffsetColumn(), 20, "TestSuiteType");

            insertAt.IncrementRows();
        }
Esempio n. 2
0
        internal static int Add_TestPoints(
            Excel.XlLocation insertAt,
            Options_AZDO_TFS options,
            ITestManagementTeamProject testManagementTeamProject)
        {
            Int64 startTicks = Log.APPLICATION("Enter", Common.LOG_CATEGORY);

            int itemCount = 0;

            string query = String.Format(
                "SELECT *"
                + " FROM TestPoint");

            XlHlp.AddLabeledInfo(insertAt.AddRow(), "Not Implemented", "Yet");

            //// TODO(crhodes)
            //// Learn what TestPoints are.  testManagementTeamProject.TestPoints returns a helper with methods

            //ITestPointHelper testPoints = testManagementTeamProject.TestPoints;
            //testPoints.

            //foreach (ITestPoint testPoint in testManagementTeamProject.TestPoints)
            //{
            //    insertAt.ClearOffsets();

            //    XlHlp.AddContentToCell(insertAt.AddOffsetColumn(), $"{testManagementTeamProject.TeamProjectName}");

            //    XlHlp.AddContentToCell(insertAt.AddOffsetColumn(), $"{testFailureType.Id}");
            //    XlHlp.AddContentToCell(insertAt.AddOffsetColumn(), $"{testFailureType.Name}");
            //    XlHlp.AddContentToCell(insertAt.AddOffsetColumn(), $"{testFailureType.Project.TeamProjectName}");

            //    insertAt.IncrementRows();
            //    itemCount++;
            //    ProcessLoopDelay(options);
            //    DisplayLoopUpdates(options, totalItems, itemCount);
            //}

            Log.APPLICATION("Exit", Common.LOG_CATEGORY, startTicks);

            return(itemCount);
        }