[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
In Test Runner, you have the option of recording a manual test so that it can be played back later or reused in other tests. You do this by creating an action recording. An action recording is useful in manual tests that you need to run multiple times and for recycling common steps in different manual tests that contain shared steps. For more information, see How to: Create an Action Recording for Shared Steps.
After you create the action recording, you can invoke it during a test. When an action recording runs, it automatically plays back the steps that you recorded. For more information, see How to: Play Back an Action Recording.
Note |
|---|
Input to an Input Method Editor (IME) is not supported for creating an action recording because an action recording cannot aggregate actions into a single action. (An IME is a program that allows computer users to enter complex characters and symbols, such as Japanese characters, using a standard keyboard.) |
The following procedures describe how to create an action recording.
Load a Test into Test Runner
.png)
Note If the test is not configured with an associated test setting, the recording will only create an action log by default. For more information, see Setting Up Machines and Collecting Diagnostic Information Using Test Settings.
To load a test into Test Runner
Open Microsoft Test and Lab Manager.
Note |
|---|
To display the Microsoft Test and Lab Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test and Lab Manager. |
On the center group switcher, click the down-arrow and then click Testing Center.
On the center group menu bar, click Test.
In the menu under the center group menu bar, click Run Tests if it is not already selected.
In the left pane, under Run Tests, select either the test plan or the test suite listed under the test plan that contains the test that you want to run.
The right side pane displays the test cases within the selected test suite.
In the right side pane, click the test case and then click Run.
The Test Runner opens.
Note |
|---|
Select Run with options to specify a build to run the test on, or to override the test settings and environment settings for the test plan. |
Record an Action Recording
You must first load the test that you want to record into Test Runner. For more information, see the previous procedure, "Load a Test into Test Runner."
.png)
To record an action recording
Upon loading a test from Microsoft Test and Lab Manager into Test Runner, you are prompted to Start Test with the option Create action recording. Select Create action recording and click Start Test.
Note |
|---|
If the test contains an existing action recording, you can leave the Create action recording option unselected and click Start Test. The existing action recording can then be played by using the Play option in the toolbar. For more information, see How to: Play Back an Action Recording. |
You can use test settings in your test plan which configure what information is collected while performing the test. If you do not configure a test setting with your test plan, the test plan will use the default test setting, which includes system information, and an action log. For more information, see Setting Up Machines and Collecting Diagnostic Information Using Test Settings.
Perform the steps of the test case and mark each step with a result. Use the drop-down arrow to the right of the step and select either Pass or Fail.
The words Currently Recording appear in the title bar of each application that is being recorded. An action recording section, presented as a blue indicator, is displayed to the right of the test. The blue indicator is divided into individual sections that correspond to the steps of your test.
Click End Test.
In the toolbar at the top of Test Runner, choose one of the following options:
Click Save and Close to save your test results to the Team Foundation Server and close Test Runner.
Click Save to save the test results to the Team Foundation Server.
Click Close to close Test Runner and not save the test results.
Note |
|---|
If an existing action recording already exists for the test, the Test Runner - Microsoft Test and Lab Manager dialog box appears. You have the option to either Overwrite existing recording or Discard new recording. The action recording can now be replayed when you run this test case in the future. For more information, see How to: Play Back an Action Recording. |
Tasks
Concepts