本文整理汇总了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();
}