Sdílet prostřednictvím


Running Automated Tests from the Command Line

You can use the MSTest.exe program to run automated tests in a test assembly from a command line. You can also view the test results from these test runs, save the results to disk, and save your results to Team Foundation Server.

You can also use tcm.exe to run test cases with associated automation from the command line using a test environment.

Tasks

Use the following topics to help you run automated tests from the command line:

Tasks

Associated Topics

Running automated tests from the command line using mstest.exe: You can run automated tests from the command line either locally or by using a test controller or test agents.

Running test cases with associated automation from the command line using tcm.exe: You can run automated tests from the command line either locally or by using a test controller or test agents.

Saving automated test results: You can save the automated test results from your test runs from the command line to your Team Foundation Server.

Viewing results for your automated test runs: You can view the results for your test run.

Pausing, resuming and stopping your test runs: You can pause a test run if you have to and then restart it. Also, if you see that a test run is failing all the tests and determine that there might be a set up issue that you have to fix, you can stop the test run.

See Also

Concepts

Running Automated Tests

Defining Your Testing Effort Using Test Plans

Other Resources

Creating Automated Tests