当前位置: 首页>>代码示例>>C#>>正文


C# Run.GetResultsSummary方法代码示例

本文整理汇总了C#中Run.GetResultsSummary方法的典型用法代码示例。如果您正苦于以下问题:C# Run.GetResultsSummary方法的具体用法?C# Run.GetResultsSummary怎么用?C# Run.GetResultsSummary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Run的用法示例。


在下文中一共展示了Run.GetResultsSummary方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Main

        /// <summary>
        /// Main function
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            //connection database
            MadDogObjects.Utilities.Security.SetDB("mdsql3", "OrcasTS");
            MadDogObjects.Utilities.Security.AppName = "MDTesting";
            MadDogObjects.Utilities.Security.AppOwner = Environment.UserName;
            Console.WriteLine("Please enter a Run ID:");
            string RunID = Console.ReadLine();
            int runid = int.Parse(RunID);
            /*string sql = "SELECT Run.RunID As RunID, Run.Title As Title, RunOS.OSName As OSName, RunProductsBranches.BranchName As BranchName, " +
                        "RunOSLCIDs.LanguageLocale As OSLanguageLocale, RunProductsLCIDs.LanguageLocale As ProductLanguageLocale" +
                        "FROM dbo.Run WITH (NOLOCK) INNER JOIN dbo.OS As RunOS WITH(NOLOCK)  ON(Run.OSID = RunOS.OSID) where(RunID in ({ 0})); ";

            string sql = "SELECT Run.RunID As RunID, Run.Title As Title, RunOS.OSName As OSName, RunProductsBranches.BranchName As BranchName, " +
                        "RunOSLCIDs.LanguageLocale As OSLanguageLocale, RunProductsLCIDs.LanguageLocale As ProductLanguageLocale" +
                        "FROM dbo.Run WITH (NOLOCK) INNER JOIN dbo.OS As RunOS WITH(NOLOCK)  ON (Run.OSID = RunOS.OSID) where RunID='3935639';";
               */
            Run run = new Run(runid);
            string branch=(run.Branch).ToString();
            string Testquery=run.TestcaseQuery.ToString();
            string BuildNo = run.ProductVersion.ToString();
            string OS = run.OS.ToString();

            string b=run.GetResultsSummary().ToString();

              //  Console.WriteLine("buildno:   " + BuildNo);
               // Console.WriteLine("runid:     "+runid);
              //  Console.WriteLine("OS:        " + OS);
              //  Console.WriteLine("branch:    " + branch);
              //  Console.WriteLine("Testquery: ");
               // Console.WriteLine("Final PR:  ");

            Console.WriteLine("c:");
              //  Console.WriteLine(b);
            Console.ReadKey();
        }
开发者ID:StellaFa,项目名称:BeyondsoftDevDivAppBuild,代码行数:40,代码来源:Rununility.cs


注:本文中的Run.GetResultsSummary方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。