在VSTS 2010 自定義計數器和其報警上線

發表于:2010-05-26來源:作者:點擊數: 標簽:報警VSTS定義vsts計數器
方法: 用記事本或者 VS 開發 php ?name=%B9%A4%BE%DF" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: n
方法:
用記事本或者VS開發php?name=%B9%A4%BE%DF" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">工具寫上自己所要添加的內容,如:
<?xml version = "1.0" encoding = "utf-8"?>
<CounterSet Name = "Custom" CounterSetType = "Custom Set">

<CounterCategories>


<CounterCategory Name = "Memory">


<Counter>



<Counter Name = "% Committed Bytes In Use" />


<Counter Name ="Available Mbytes" />


</Counter>


</CounterCategory>


<CounterCategory>


<Counters>


<Counter Name = "% Processor Time">


<ThresholdRules>


<ThresholdRule Classname = "Microsft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareConstant,Microsft.VisualStudio.QualityTools.LoadTest">


<RuleParameters>


<RuleParameters Name = "AlertIfOver" Value = "True" />



<RuleParameters Name = "WarningThreshold" Value = "80" />


<RuleParameters Name = "CriticalThreshold" Value = "90" />


</RuleParameters>


</ThresholdRule>


</ThresholdRules>


</Counter>


</Counters>


<Instances>


<Instance Name = "*"/>


</Instances>


</CounterCategory>


</CounterCategories>

</CounterSet>
然后保存為customcounter.CounterSet,并拷貝至【驅動盤】:\Microsoft Visual Studio \Common7\IDE\Templates\LoadTest\CounterSets\zh下,然后啟動VSTS添加負載測試,在計數器集中就能顯示所添加的計數器

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97