本文整理汇总了C#中Result.CreateResultGroupEx方法的典型用法代码示例。如果您正苦于以下问题:C# Result.CreateResultGroupEx方法的具体用法?C# Result.CreateResultGroupEx怎么用?C# Result.CreateResultGroupEx使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Result
的用法示例。
在下文中一共展示了Result.CreateResultGroupEx方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunReliabilityTests
//.........这里部分代码省略.........
resultReporter = new Result();
resultReporter.Credentials = CredentialCache.DefaultCredentials;
resultReporter.Url = curTestSet.ReportResultsTo + "/" + "result.asmx";
WebRequest.DefaultWebProxy = null;
Build buildObj = new Build();
buildObj.Url = curTestSet.ReportResultsTo + "/" + "build.asmx";
buildObj.Credentials = CredentialCache.DefaultCredentials;
Guid langGuid = Guid.Empty;
DataSet ds = buildObj.GetGeneralBuildInfo();
foreach (DataTable myTable in ds.Tables)
{
if (myTable.TableName == "BuildAttributeValue")
{
foreach (DataRow myRow in myTable.Rows)
{
if (myRow["AttributeValueName"].ToString() == "English")
{
langGuid = new Guid(myRow["AttributeValueGuid"].ToString());
}
}
}
}
Guid buildGuid = buildObj.GetBuildGuid(
Environment.GetEnvironmentVariable("WHIDBEY_TREE"), // build lab
Environment.GetEnvironmentVariable("SHORTFLAVOR"), // build flavor, string
Environment.GetEnvironmentVariable("VERSION"), // build version, string
new Guid[] { langGuid }); // build attributes, Guid[]
resultGroupGuid = resultReporter.CreateResultGroupEx(
Guid.NewGuid(),
String.Format("{0} - {1}", Environment.MachineName, DateTime.Now.ToShortDateString()),
curTestSet.BvtCategory,
new Guid[] { buildGuid },
new Guid[] { }, // TODO: fill in environmental attributes
false,
0,
"StressRun");
#endif
}
catch (Exception e)
{
_logger.WriteToInstrumentationLog(_curTestSet, LoggingLevels.SmartDotNet, String.Format("Exception while communicating w/ smart.net server: {0}", e));
#if !PROJECTK_BUILD
resultReporter = null;
#endif
AddFailure("Failed to initialize result reporting", null, -1);
}
}
// we don't log while we're replaying a log file.
if (!doReplay)
{
_logger.WriteToInstrumentationLog(_curTestSet, LoggingLevels.Logging, "Opening log file...");
if (!_curTestSet.DisableLogging)
{
_logger.OpenLog(_curTestSet.FriendlyName);
}
_logger.WriteStartupInfo(s_seed);
}
if (testSet.Tests == null)