<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>UKVSTS Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=Home</link><description>UKVSTS Wiki Rss Description</description><item><title>New Comment on "UKVSTS Web Test Plug In"</title><link>http://ukvsts.codeplex.com/wikipage?title=UKVSTS Web Test Plug In&amp;ANCHOR#C24715</link><description>The directions for this mention a plug-in dll for vs2005 &amp;#38; vs2008. Is there a plug-in for vs2010 or is this functionality already built into vs2010&amp;#63; I&amp;#39;m looking to assign and use a parameter that gets the result of something like DateTime.Now.Add&amp;#40;2&amp;#41;, so if there is a newer&amp;#47;better way to do this without the download I&amp;#39;d be interested in that as well. &amp;#10;&amp;#10;PS - I saw that I can use a Coded test but prefer just defining this within a regular web test as a context paramter if possible &amp;#40;i.e. Parameter &amp;#61; &amp;#60;&amp;#37;&amp;#61; DateTime.Now.Add&amp;#40;2&amp;#41; &amp;#37;&amp;#62;.</description><author>rdodier</author><pubDate>Tue, 14 Aug 2012 20:05:05 GMT</pubDate><guid isPermaLink="false">New Comment on "UKVSTS Web Test Plug In" 20120814080505P</guid></item><item><title>New Comment on "UKVSTS Web Test Plug In"</title><link>http://ukvsts.codeplex.com/wikipage?title=UKVSTS Web Test Plug In&amp;ANCHOR#C24714</link><description>The directions for this mention a plug-in dll for vs2005 &amp;#38; vs2008. Is there a plug-in for vs2010 or is this functionality already built into vs2010&amp;#63; I&amp;#39;m looking to assign and use a parameter that gets the result of something like DateTime.Now.Add&amp;#40;2&amp;#41;, so if there is a newer&amp;#47;better way to do this without the download I&amp;#39;d be interested in that as well.</description><author>rdodier</author><pubDate>Tue, 14 Aug 2012 19:58:53 GMT</pubDate><guid isPermaLink="false">New Comment on "UKVSTS Web Test Plug In" 20120814075853P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=21</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;You can also create scripted &lt;b&gt;Context Parameters&lt;/b&gt; - useful if you want to evaluate something at the beginning of a test.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26581" alt="ContextParam.png" /&gt;&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=UKVSTS&amp;amp;ReleaseId=10281" class="externalLink"&gt;Download and Run the MSI&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly. There are 2 versions of the plugin dll, one for VS 2005 and VS 2008 - Pick the dll for the version of Visual Studio you are running.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26571" alt="addref_2008.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;&lt;li&gt;You can script the file name property for any file upload parameters&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Fri, 16 May 2008 17:35:32 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20080516053532P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=20</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;You can also create scripted &lt;b&gt;Context Parameters&lt;/b&gt; - useful if you want to evaluate something at the beginning of a test.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26581" alt="ContextParam.png" /&gt;&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=UKVSTS&amp;amp;ReleaseId=10281" class="externalLink"&gt;Download and Run the MSI&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly. There are 2 versions of the plugin dll, one for VS 2005 and VS 2008 - Pick the dll for the version of Visual Studio you are running.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26571" alt="addref_2008.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Tue, 29 Jan 2008 21:35:42 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20080129093542P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=19</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;You can also created scripted Context Parameters - useful if you want to evaluate something at the beginning of a test.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26581" alt="ContextParam.png" /&gt;&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=UKVSTS&amp;amp;ReleaseId=10281" class="externalLink"&gt;Download and Run the MSI&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly. There are 2 versions of the plugin dll, one for VS 2005 and VS 2008 - Pick the dll for the version of Visual Studio you are running.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26571" alt="addref_2008.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Tue, 29 Jan 2008 20:53:06 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20080129085306P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=18</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=UKVSTS&amp;amp;ReleaseId=10281" class="externalLink"&gt;Download and Run the MSI&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly. There are 2 versions of the plugin dll, one for VS 2005 and VS 2008 - Pick the dll for the version of Visual Studio you are running.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=26571" alt="addref_2008.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Tue, 29 Jan 2008 15:25:14 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20080129032514P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=17</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=UKVSTS&amp;amp;ReleaseId=8178" class="externalLink"&gt;Download and Run the MSI&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 22:43:09 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105104309P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=16</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=UKVSTS&amp;amp;ReleaseId=8178" class="externalLink"&gt;Download and Run the MSI&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 22:40:34 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105104034P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=15</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;&lt;li&gt;You can have more than one script block per parameter. This is probably most useful if you are doing testing of web services.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 16:59:25 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105045925P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In 
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parameters, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; parameters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectively.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsequent requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:30:12 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105033012P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; - for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:28:45 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032845P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; _- for the current date and time&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; - for the current date and time in the specified format&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; - for a new GUID &lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) &lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:28:28 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032828P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format _&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; _- for a new GUID _&lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; - _Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) _&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:27:18 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032718P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format _&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; _- for a new GUID _&lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; _- Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-) _&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:25:30 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032530P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; &lt;i&gt;- for a new GUID&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; _- Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;/li&gt;&lt;li&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:24:44 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032444P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=8</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; &lt;i&gt;- for a new GUID&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; _- Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;You get access to the current &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx" class="externalLink"&gt;WebTest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx" class="externalLink"&gt;WebTestRequest&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx" class="externalLink"&gt;WebTestContext&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;br /&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:24:06 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032406P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; &lt;i&gt;- for a new GUID&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;/li&gt;&lt;li&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; _- Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-)&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;You get access to the current &lt;a href="WebTest" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest(VS.80).aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, &lt;a href="WebTestRequest" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestrequest(VS.80).aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="WebTestContext" class="externalLink"&gt;http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtestcontext(VS.80).aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; using the Test, Request and Context properties respectivly.&lt;br /&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:23:17 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032317P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;br /&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format&amp;gt;&lt;br /&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; &lt;i&gt;- for a new GUID&lt;/i&gt;&lt;br /&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;br /&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%5b%22UserName%22%5d&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;[&amp;quot;UserName&amp;quot;]&lt;/a&gt; } %&amp;gt; _- Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-)&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;You get access to the current WebTest, WebTestRequest and WebTestContext using the Test, Request and Context properties respectivly.&lt;br /&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:20:46 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032046P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;When creating scriptable parametes, you have 2 options:&lt;br /&gt;1. &lt;b&gt;Single Statement&lt;/b&gt; paramters have the format &amp;lt;%= &lt;i&gt;expression&lt;/i&gt; %&amp;gt; Where &lt;i&gt;expression&lt;/i&gt; is any &lt;b&gt;C#&lt;/b&gt; statement that would eveluate to return an object.&lt;br /&gt;examples are:&lt;br /&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now %&amp;gt; &lt;i&gt;- for the current date and time&lt;/i&gt;&lt;br /&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; DateTime.Now.ToString (&amp;quot;dd-MM-yyyy&amp;quot;) %&amp;gt; _- for the current date and time in the specified format&amp;gt;&lt;br /&gt;&amp;lt;%&lt;b&gt;=&lt;/b&gt; Guid.NewGuid() %&amp;gt; &lt;i&gt;- for a new GUID&lt;/i&gt;&lt;br /&gt;2. &lt;b&gt;Multiple Statements&lt;/b&gt; are where you need a little bit more freedom than one statement. In this type of parameter you will need to provide your own return statement and semicolons.&lt;br /&gt;examples are:&lt;br /&gt;&amp;lt;% &lt;b&gt;return&lt;/b&gt; DateTime.Now&lt;b&gt;;&lt;/b&gt; %&amp;gt;&lt;br /&gt;&amp;lt;% if (Context.IsNewUser) { return Guid.NewGuid (); } else { return Context &lt;a href="http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=%22UserName%22&amp;amp;referringTitle=UKVSTS%20Web%20Test%20Plug%20In"&gt;&amp;quot;UserName&amp;quot;&lt;/a&gt; } %&amp;gt; _- Ok, so you could have done that in one statement with a ? :, but I got stuck for an example :-)&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
Misc !!
&lt;/h2&gt;You get access to the current WebTest, WebTestRequest and WebTestContext using the Test, Request and Context properties respectivly.&lt;br /&gt;The results of all scripted parameters will automatically get added to the current test context so you can use them in any validation rules of subsiquest requests.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:20:13 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105032013P</guid></item><item><title>UPDATED WIKI: UKVSTS Web Test Plug In</title><link>http://www.codeplex.com/UKVSTS/Wiki/View.aspx?title=UKVSTS Web Test Plug In&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
UKVSTS Web Test Plug In !
&lt;/h1&gt; &lt;br /&gt;This assembly allows you to create scriptable parameters in your web tests. This extends the control you can have in your test without having to write your own test or request plugins.&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21333" alt="ExampleParams.png" /&gt;&lt;br /&gt;I have stolen the syntax that ASP/ASP.Net uses to mark up a script block. When the test client comes to make your request, the scripts will be evaluated at runtime and the result of the script will be passed as the parameter value.&lt;br /&gt; &lt;br /&gt;To use the ScriptableParameterPlugIn, follow these steps&lt;br /&gt; &lt;br /&gt;1. Download and Run the MSI&lt;br /&gt;2. In your web test project, add a reference to the UKVSTS.WebTestPlugins assembly&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21339" alt="addref.png" /&gt;&lt;br /&gt;3. Click on the Set &lt;b&gt;Web Test&lt;/b&gt; Plug In button on the test's toolbar&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21340" alt="TestPlugin.png" /&gt;&lt;br /&gt;4. In the Set Web Test Plug-in dialog, select the ScriptableParameterPlugIn&lt;br /&gt;&lt;img src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=UKVSTS&amp;amp;DownloadId=21341" alt="PlugIn.png" /&gt;&lt;br /&gt;5. Click Ok&lt;br /&gt;6. Start adding scriptable params to your test.&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>NeilKidd</author><pubDate>Mon, 05 Nov 2007 15:04:56 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: UKVSTS Web Test Plug In 20071105030456P</guid></item></channel></rss>