<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ed Glas's blog on VSTS load testing : Extraction Rules</title><link>http://blogs.msdn.com/edglas/archive/tags/Extraction+Rules/default.aspx</link><description>Tags: Extraction Rules</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Event ordering in Web Tests</title><link>http://blogs.msdn.com/edglas/archive/2008/08/28/event-ordering-in-web-tests.aspx</link><pubDate>Thu, 28 Aug 2008 18:49:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8903574</guid><dc:creator>edglas</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/edglas/comments/8903574.aspx</comments><wfw:commentRss>http://blogs.msdn.com/edglas/commentrss.aspx?PostID=8903574</wfw:commentRss><description>&lt;p&gt;Web tests have a number of extensibility points before and after a request. What order do they run in?&lt;/p&gt; &lt;p&gt;The hooks are:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;WebTestPlugin.PreRequest&lt;/p&gt; &lt;p&gt;WebTestRequestPlugin.PreRequest&lt;/p&gt; &lt;p&gt;ExtractionRule.Extract&lt;/p&gt; &lt;p&gt;ValidationRule.Validate&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Here is a sequence diagram that shows what order things fire:&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/edglas/WindowsLiveWriter/EventorderinginWebTests_A551/ResultsSequence_2.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="1086" alt="ResultsSequence" src="http://blogs.msdn.com/blogfiles/edglas/WindowsLiveWriter/EventorderinginWebTests_A551/ResultsSequence_thumb.jpg" width="740" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;There is no guaranteed order of firing for WebTestPlugin.PreRequest and RequestPlugin.PreRequest. Also if you have &amp;gt;1 Extraction or Validation rule on a request there is no guaranteed order they are run in.&lt;/p&gt; &lt;p&gt;Also note that Pre and Post request events do not fire by default for dependents. You can hook the PostRequest call on a top level request and iterate through dependents to wire up event handlers if you need that functionality.&lt;/p&gt; &lt;p&gt;Ed.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8903574" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/edglas/archive/tags/Visual+Studio+Team+Test/default.aspx">Visual Studio Team Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Web+Test/default.aspx">Web Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/tsbt-tst/default.aspx">tsbt-tst</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Extraction+Rules/default.aspx">Extraction Rules</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Validation+Rule/default.aspx">Validation Rule</category></item><item><title>New templates for plugins and rules</title><link>http://blogs.msdn.com/edglas/archive/2008/08/19/new-templates-for-plugins-and-rules.aspx</link><pubDate>Tue, 19 Aug 2008 10:30:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878085</guid><dc:creator>edglas</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/edglas/comments/8878085.aspx</comments><wfw:commentRss>http://blogs.msdn.com/edglas/commentrss.aspx?PostID=8878085</wfw:commentRss><description>&lt;p&gt;Inspired by templates developed by Dennis Bass of the services test labs, I added new item templates to the codeplex.com\TeamTestPlugins project.&lt;/p&gt; &lt;p&gt;If you install these on your machine it makes creating new plugins much easier:&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/edglas/WindowsLiveWriter/Newtemplatesforpluginsandrules_314E/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="388" alt="image" src="http://blogs.msdn.com/blogfiles/edglas/WindowsLiveWriter/Newtemplatesforpluginsandrules_314E/image_thumb_1.png" width="642" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;If you work with web and load tests you'll find these very handy, and they are xcopy-installed on your machine (you'll have them working in less than 5 minutes).&lt;/p&gt; &lt;p&gt;Now to get these in our next release. :)&lt;/p&gt; &lt;p&gt;Ed.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8878085" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/edglas/archive/tags/Visual+Studio+Team+Test/default.aspx">Visual Studio Team Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Web+Test/default.aspx">Web Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Load+Test/default.aspx">Load Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/tsbt-tst/default.aspx">tsbt-tst</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Extraction+Rules/default.aspx">Extraction Rules</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Validation+Rule/default.aspx">Validation Rule</category></item><item><title>InfoPath WebTests on CodePlex!</title><link>http://blogs.msdn.com/edglas/archive/2008/04/25/infopath-webtests-on-codeplex.aspx</link><pubDate>Fri, 25 Apr 2008 15:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8424215</guid><dc:creator>edglas</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/edglas/comments/8424215.aspx</comments><wfw:commentRss>http://blogs.msdn.com/edglas/commentrss.aspx?PostID=8424215</wfw:commentRss><description>&lt;P&gt;The InfoPath team has written a set of WebTest plugins that enable testing InfoPath with a WebTest.&lt;/P&gt;
&lt;P&gt;See the project on codeplex here: &lt;SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-ansi-language: EN-US; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-theme-font: minor-latin"&gt;&lt;A href="http://www.codeplex.com/ipfswebtest" target=_blank mce_href="http://www.codeplex.com/ipfswebtest"&gt;http://www.codeplex.com/ipfswebtest&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The project contains custom extraction rules, a sample web test, and a doc on how to use them.&lt;/P&gt;
&lt;P&gt;These tests are difficult to script from scratch, so it is great to see this project with the necessary extraction rules already coded and docs on how to use them.&lt;/P&gt;
&lt;P&gt;Many thanks to the support of the InfoPath test team on this, especially John Booze and Mary Smith.&lt;/P&gt;
&lt;P&gt;Ed.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8424215" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/edglas/archive/tags/Visual+Studio+Team+Test/default.aspx">Visual Studio Team Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Web+Test/default.aspx">Web Test</category><category domain="http://blogs.msdn.com/edglas/archive/tags/tsbt-tst/default.aspx">tsbt-tst</category><category domain="http://blogs.msdn.com/edglas/archive/tags/InfoPath/default.aspx">InfoPath</category><category domain="http://blogs.msdn.com/edglas/archive/tags/Extraction+Rules/default.aspx">Extraction Rules</category></item></channel></rss>