to Visual Studio 2012 Update 1, it was certainly possible to record web tests against SharePoint, but it required you to significantly edit the recording to do things such as remove extraneous requests and parameterize the site name. Visual Studio now handles many of these tedious tasks automatically. View the available options by selecting Tools | Options | Web Performance Test Tools | Web Test | SharePoint in the main menu of Visual Studio. Figure SharePoint web test options (showing defaults) After taking a look at the default options for SharePoint web tests, press Escape to exit the Options window. Open Upload.webtest in the web test editor. This web test was recorded by navigating to a SharePoint site, loading the Shared Documents library, and uploading a document. Figure Upload web test definition Expand the first request to AllItems.aspx in the list and note that a SharePoint specific extraction rule was automatically added to grab the list ID and store it as a context parameter. Figure SharePoint extraction rule to find list ID Figure Properties of extraction rule (press F4) The list ID context parameter is then used in subsequent requests, for example in the request to Upload.aspx. Figure Use of list ID context parameter
to Visual Studio 2012 Update 1, it was certainly possible to record web tests against SharePoint, but it required you to significantly edit the recording to do things such as remove extraneous requests and parameterize the site name. Visual Studio now handles many of these tedious tasks automatically. View the available options by selecting Tools | Options | Web Performance Test Tools | Web Test | SharePoint in the main menu of Visual Studio. Figure SharePoint web test options (showing defaults) After taking a look at the default options for SharePoint web tests, press Escape to exit the Options window. Open Upload.webtest in the web test editor. This web test was recorded by navigating to a SharePoint site, loading the Shared Documents library, and uploading a document. Figure Upload web test definition Expand the first request to AllItems.aspx in the list and note that a SharePoint specific extraction rule was automatically added to grab the list ID and store it as a context parameter. Figure SharePoint extraction rule to find list ID Figure Properties of extraction rule (press F4) The list ID context parameter is then used in subsequent requests, for example in the request to Upload.aspx. Figure Use of list ID context parameter
Testing%20and%20Debugging%20SharePoint%20Applications%20with%20Visual%20Studio%202013.docx