Posts

Showing posts with the label Testing

Generating Test Files of A Specific Size

While attempting to unit test the max upload size of files to CRM I needed to generates files of different sizes.  Since Windows XP came out Microsoft has included a utility called fsutil that you can run at the command line to do just this thing. fsutil file createnew filename filesizeinbytes 1. Open a Command Prompt (As Administrator) 2. Run the following command fsutil file createnew "c:\temp\test5.txt" 5242880 If you need to convert from Megabytes to Bytes you can use this quick converter:  Megabytes to Bytes Converter

Remove Timeout When Debugging w3wp Process

One of the smart guys I work with posted some information about debugging the W3WP process that I though I should share. Many times when debugging this process I get timeout errors when I let it sit for too long. Error: The web server process that was being debugged has been terminated by Internet Information Services ( IIS ) You can get rid of the timeout by following the following directions. Caution , this should only be done on development boxes, do not change these settings on your production machines. Open the Administrative Tools window. Click Start and then choose Control Panel. In Control Panel, choose Switch to Classic View, if necessary, and then double-click Administrative Tools. In the Administrative Tools window, double-click Internet Information Services ( IIS ) Manager. In the Internet Information Services ( IIS ) Manager window, expand the node. Under the node, right-click Application Pools. In the Application Pools list, right-click the name of the pool y...

Creating a Visual Studio 2008 Results Repository

Learned a very important lesson. If you don't set up a results repository database before running a load test in Visual Studio you won't be able to pull up your reports later. In this example only one machine was being used for load testing and SQL Express was installed as part of Visual Studio. To create the results repository database in SQL Express follow the instructions below. If you want additional information or want to know how to create the database in SQL Standard check out Microsoft's instructions at http://msdn.microsoft.com/en-us/library/ms182600.aspx -Open a command prompt by going to Start -> Run and type in CMD and hit Enter -Type: cd n:\Program Files\Microsoft Visual Studio 9\Common7\IDE -Type: SQLCMD /S localhost\sqlexpress /i loadtestresultsrepository.sql