Example #1
0
        static void Main(string[] args)
        {
            try
            {
                if (args.Count() < 2 || args.Count() > 3)
                {
                    Console.WriteLine("TestResultMatrix (c) 2014 Colin Dembovsky");
                    Console.WriteLine("http://colinsalmcorner.com");
                    Console.WriteLine();
                    Console.WriteLine("Usage: TestResultMatrix.exe tpcUrl teamProjectName [requirementQueryName]");
                    Console.WriteLine();
                    Console.WriteLine("  tpcUrl: url to Team Project collection - e.g. http://localhost:8080/tfs/defaultcollection");
                    Console.WriteLine("  teamProjectName: name of Team Project - e.g. FabFiber");
                    Console.WriteLine("  requirementQueryName: (optional) flat-list query of requirements.");
                    Console.WriteLine();
                    Console.WriteLine("If you do not specify requirementQueryName, the tool will get all work items in the requirement category");
                    Console.WriteLine();
                    return;
                }

                string reqQuery = null;
                if (args.Count() == 3)
                {
                    reqQuery = args[2];
                }

                var reqMatrixGenerator = new RequirementMatrixGenerator(args[0], args[1], reqQuery);
                reqMatrixGenerator.Process();

                //PrintMatrix(reqMatrixGenerator.Matrix);

                var excel = new MatrixExcel(reqMatrixGenerator.Matrix);
                excel.GenerateMatrixSheet();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            try
            {
                if (args.Count() < 2 || args.Count() > 3)
                {
                    Console.WriteLine("TestResultMatrix (c) 2014 Colin Dembovsky");
                    Console.WriteLine("http://colinsalmcorner.com");
                    Console.WriteLine();
                    Console.WriteLine("Usage: TestResultMatrix.exe tpcUrl teamProjectName [requirementQueryName]");
                    Console.WriteLine();
                    Console.WriteLine("  tpcUrl: url to Team Project collection - e.g. http://localhost:8080/tfs/defaultcollection");
                    Console.WriteLine("  teamProjectName: name of Team Project - e.g. FabFiber");
                    Console.WriteLine("  requirementQueryName: (optional) flat-list query of requirements.");
                    Console.WriteLine();
                    Console.WriteLine("If you do not specify requirementQueryName, the tool will get all work items in the requirement category");
                    Console.WriteLine();
                    return;
                }

                string reqQuery = null;
                if (args.Count() == 3)
                {
                    reqQuery = args[2];
                }

                var reqMatrixGenerator = new RequirementMatrixGenerator(args[0], args[1], reqQuery);
                reqMatrixGenerator.Process();

                //PrintMatrix(reqMatrixGenerator.Matrix);

                var excel = new MatrixExcel(reqMatrixGenerator.Matrix);
                excel.GenerateMatrixSheet();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }