{"id":4083,"date":"2012-10-29T10:30:52","date_gmt":"2012-10-29T10:30:52","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2012\/10\/29\/testing-sharepoint-2010-with-visual-studio-2012-update-1\/"},"modified":"2019-02-14T17:58:01","modified_gmt":"2019-02-15T01:58:01","slug":"testing-sharepoint-2010-with-visual-studio-2012-update-1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/testing-sharepoint-2010-with-visual-studio-2012-update-1\/","title":{"rendered":"Testing SharePoint 2010 with Visual Studio 2012 Update 1"},"content":{"rendered":"<p>Another in my MVP series of blog posts: <\/p>\n<p>This post is by one of the most active of the Canadian MVPs, Wes McDonald.&nbsp; I find it interesting that Wes and our neighbors up north have taken the <a href=\"http:\/\/www.meetup.com\/ottawaitcommunity\/\">spirit of the US code camps<\/a> and turned it in to arguably Canada&rsquo;s best developer conference that is both internationally recognized and commercially viable (no small feat in this economy) series called &ldquo;<a href=\"www.devteach.com\">DevTeach<\/a>&rdquo; &ndash; Great work guys!<\/p>\n<p>-Chuck <\/p>\n<p>***********************************&#8217;**********************************************************************************<\/p>\n<p>Web Testing SharePoint 2010 with Visual Studio 2012 Update 1 CTP 3 by <a href=\"http:\/\/blogs.like10.com\/\">Wes MacDonald<\/a><\/p>\n<p>I am certain this has been a long standing request from Visual Studio by the community, myself included.&nbsp; If you&rsquo;ve attempted this in the past with previous versions of Visual Studio you would have realized quickly that it wasn&rsquo;t quite up to the task unless you heavily edited the recording that was produced.&nbsp; It&rsquo;s not that the Web Test would have failed but the fact that requests to pages named:<\/p>\n<ul>\n<li>blank.htm <\/li>\n<li>ScriptResx.ashx <\/li>\n<li>commandui.ashx <\/li>\n<\/ul>\n<p>would have remained as part of the recording.<\/p>\n<p><a href=\"http:\/\/vstfs.files.wordpress.com\/2012\/10\/pic03737.gif\"><img decoding=\"async\" title=\"Visual Studio 2010 Web Test Recording\" alt=\"Visual Studio 2010 Web Test Recording\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/10\/pic03737.gif\" width=\"588\" height=\"233\"><\/a><\/p>\n<p>Previous versions of Visual Studio also would not recognize a Site Name as a Parameter either.<\/p>\n<p>To get started you&rsquo;ll need to ensure you have the following installed:<\/p>\n<p>Visual Studio 2012 Ultimate (Web Performance Testing is an <a href=\"http:\/\/www.microsoft.com\/visualstudio\/eng\/products\/compare\">Ultimate Feature<\/a>)<\/p>\n<p>Visual Studio 2012 Update 1 CTP(available <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=34818\">here<\/a> (editors note: and more information about it can be found here <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2012\/10\/25\/final-ctp-for-visual-studio-2012-update-1.aspx\">Final CTP for Visual Studio 2012 Update 1<\/a> )<\/p>\n<p>To verify you&rsquo;ve got everything and you&rsquo;re ready open <strong>Visual Studio 2012<\/strong> and select <strong>Tools<\/strong> | <strong>Options<\/strong> | <strong>Web Performance Test Tools<\/strong> | <strong>Web Test<\/strong> | <strong>SharePoint<\/strong> and you should see the following:<\/p>\n<p><a href=\"http:\/\/vstfs.files.wordpress.com\/2012\/10\/snag-0948.png\"><img decoding=\"async\" title=\"Web Performance Test Tools - Options for SharePoint\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/10\/snag-0948.png\" width=\"588\" height=\"347\"><\/a><\/p>\n<p>I&rsquo;ve already had to add an additional Pattern to the out of the box settings because one of the SharePoint sites I was recording was returning a blank.html page.<\/p>\n<p>To get started create a New Project | Installed | Templates | Visual C# | Test | Web Performance and Load Test Project<\/p>\n<p>If you don&rsquo;t see the Template make sure the .NET Framework is set to either 4.0 or 4.5 so the template displays.<\/p>\n<p><img decoding=\"async\" title=\"New Web Performance and Load Test Project\" alt=\"New Web Performance and Load Test Project\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/10\/snag-0950.png\" width=\"588\" height=\"409\"><\/p>\n<p>Once the project has been created <strong>Add<\/strong> a <strong>Web Performance Test<\/strong> to it and your web test will be added and Internet Explorer will be launched ready to record your actions.<\/p>\n<p>While it is recording don&rsquo;t be alarmed by all of the requests listed in the <strong>Web Test Recorder<\/strong> window, the requests for ScriptResx.ashx, blank.htm and others will be removed once the recording is stopped.<\/p>\n<p><a href=\"http:\/\/vstfs.files.wordpress.com\/2012\/10\/snag-0951.png\"><img decoding=\"async\" title=\"Recording SharePoint Web Test\" alt=\"Recording SharePoint Web Test\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/10\/snag-0951.png\" width=\"588\" height=\"364\"><\/a><\/p>\n<p>Let&rsquo;s stop the recording and allow Visual Studio to process the web test recording<\/p>\n<p><a href=\"http:\/\/vstfs.files.wordpress.com\/2012\/10\/snag-0952.png\"><img decoding=\"async\" title=\"SharePoint Server 2010 Web Performance Test\" alt=\"SharePoint Server 2010 Web Performance Test\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/10\/snag-0952.png\" width=\"588\" height=\"352\"><\/a>     <br>One of the things you&rsquo;ll notice right away is that the site names have already been extracted for you:<\/p>\n<ul>\n<li>SiteName1=sp2010pillars <\/li>\n<li>SiteName2=Projects <\/li>\n<li>SiteName3=M300DigitalCamera <\/li>\n<\/ul>\n<p>If you wanted drive the site names from a <strong>SiteNames.csv<\/strong> file you could easily add a data source to the web test and then perform a search and replace on <strong>{{SiteName1}}<\/strong> and replace it with <strong>{{Datasource1.SiteNames#csv.SiteName}}<\/strong><\/p>\n<p>I think you&rsquo;ll find this extremely valuable for testing your SharePoint Server configurations, you can also easily configure an <strong>Extraction Rule<\/strong> on your individual requests to get values of SharePoint Calendar Dates and Items, List Items, Documents and others.<\/p>\n<p><a href=\"http:\/\/vstfs.files.wordpress.com\/2012\/10\/snag-0953.png\"><img decoding=\"async\" title=\"SharePoint - Add Extraction Rule\" alt=\"SharePoint - Add Extraction Rule\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/10\/snag-0953.png\" width=\"588\" height=\"409\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blogs.like10.com\/\"><img decoding=\"async\" alt=\"\" src=\"\" width=\"80\" height=\"80\"><\/a><\/p>\n<h6>About wesmacdonald<\/h6>\n<p> Wes MacDonald is a Visual Studio ALM MVP, MCTS, MCITP (SharePoint 2010) and a Principal Consultant for LIKE 10 INC., a SharePoint Server and Team Foundation Server Consulting Firm providing premium support and guidance services.   <\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another in my MVP series of blog posts: This post is by one of the most active of the Canadian MVPs, Wes McDonald.&nbsp; I find it interesting that Wes and our neighbors up north have taken the spirit of the US code camps and turned it in to arguably Canada&rsquo;s best developer conference that is [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,252],"tags":[],"class_list":["post-4083","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-testing"],"acf":[],"blog_post_summary":"<p>Another in my MVP series of blog posts: This post is by one of the most active of the Canadian MVPs, Wes McDonald.&nbsp; I find it interesting that Wes and our neighbors up north have taken the spirit of the US code camps and turned it in to arguably Canada&rsquo;s best developer conference that is [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/4083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=4083"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/4083\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=4083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=4083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=4083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}