How to: Delete Unwanted UI Actions Using the Coded UI Test Editor
By using the Coded UI Test Editor, you can open a coded UI test for viewing and editing. One of the editing capabilities available in the Coded UI Test Editor is deleting unwanted UI actions in your test methods.
Follow these steps to open an existing coded UI test for editing in the Coded UI Test Editor.
To open a coded UI test in the Coded UI Test Editor
In Solution Explorer, locate UIMap.uitest in your test project.
Right-click UIMap.uitest and select Open.
The coded UI test is displayed in the Coded UI Test Editor. You can now view and edit the coded UI test. For more information, see Editing Coded UI Tests Using the Coded UI Test Editor and How to: Edit a Coded UI Test Using the Coded UI Test Editor.
Follow these steps to delete an unwanted UI action in a test method of your coded UI tests.
To delete a UI action
In the UI Action pane, expand the test method that contains the UI action that you want to delete. Select the UI action.
Right-click the UI action and click Delete.
The UI action is removed from the coded UI test.
On the Visual Studio toolbar, click Save.
The updates to the test method are saved in the UIMap.Designer file.