StringBuilder sb = new StringBuilder();
TestCombination testCombination = Tracker.CurrentPage.GetTestCombination(); // TODO: we should get this from SitecoreDmsTracker, and
add method to abstract base class that returns the TestCombination
//
Ensure that there's a test running
if (testCombination != null)
{
sb.Append(testCombination.Testset.Name);
foreach (TestVariable variable in testCombination.Testset.Variables)
{
TestValue value =
testCombination.GetValue(variable.Id);
if (value == null)
{
// TODO: log warning
continue;
}
sb.AppendFormat(":{0}:{1}",
variable.Label, value.Label);
}
}
http://ticdevs.com/developers/asp-net/sitecore-api/get-analytics-types
No comments:
Post a Comment