Visual Studio Team System 2008 : Deploying and Running Tests (part 2)

5/15/2013 7:53:16 PM

5. Deployment order

We have seen the different deployment configurations in the above sections. There are multiple places to specify the deployment items. We can specify on the project level, the individual test level, and on the method level. But what happens if we have files with the same name specified in different levels. The answer is that the file that gets copied later will override the existing file. There is an order for copying the deployment items. The order is listed as follows:

  • Test assemblies and test files are copied first
  • Instrumented binary files
  • Items specified in the test run configuration file
  • Dependent files and application configuration files
  • Test deployment items for each test including the items specified for the test methods
  • The deployment items specified for each test has higher precedence over the other files

6. Running tests

Running the test is very simple and easy in Visual Studio. All the options such as running, rerunning, stopping, and scheduling the test run are all possible in Visual Studio. The toolbars available in the Test List Editor, Test View, and the Test Results windows provide all these options.

7. Run and rerun a test

Running the test is done through the following different options provided in Visual Studio:

  • Using Test View window
  • Using Test List Editor window
  • Using the Test Results window
  • Using the Source Code editor

The following is an example for running the test from the Test List Editor. Select the checkboxes against the tests listed in the editor and then use the option in the toolbar to run the test. For the other windows, the toolbar option is very much similar to the Test List Editor.

Run and rerun a testVSTStests, running

Whatever test is selected in the above list, it will start running one after the other with the result shown in the results window.

8. Pause, resume, and stop a test run

Pausing a test run is like holding the tests run in its current state until it is restarted again. The screenshot below shows the three tests under progress. The test is paused using the toolbar option. This will not affect the current test that is running, but will stop the next test from running.

Pause, resume, and stop a test runtests, runningoptions

The screenshot above shows that the first test run is complete, but all the subsequent tests are paused. To restart the remaining tests, select the Resume Test Run option in the toolbar.

For stopping the test run, choose and click on the Stop option in the toolbar, which stops all the current test runs. If any test is running and not yet completed, it will get aborted.

9. Schedule test run

Scheduling a test run cannot be done through Visual Studio IDE as none of the windows have that option in the toolbar. This is only possible through the windows scheduler, which can run the batch program. The batch in turn can use the MSTest command line test run utility to run the tests.

Top 10
New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
The latest Audi TT : New angles for TT
Era of million-dollar luxury cars
Game Review : Hearthstone - Blackrock Mountain
Game Review : Battlefield Hardline
Google Chromecast
Keyboards for Apple iPad Air 2 (part 3) - Logitech Ultrathin Keyboard Cover for iPad Air 2
Keyboards for Apple iPad Air 2 (part 2) - Zagg Slim Book for iPad Air 2
Keyboards for Apple iPad Air 2 (part 1) - Belkin Qode Ultimate Pro Keyboard Case for iPad Air 2
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
Popular Tags
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Exchange Server Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe Photoshop CorelDRAW X5 CorelDraw 10 windows Phone 7 windows Phone 8 Iphone