Welcome to MSDN Blogs Sign in | Join | Help

Coded UI Test Recorder

Coded UI Test Recorder can be accessed from

1. Coded UI Test Launch Screen :

 

2. Context menu in a Coded UI Test Method

clip_image001

3.  From the Test Menu

clip_image001[4]

 

In all cases, it launches the Coded UI Test Builder Window  with the Record Actions tab enabled.

clip_image010

 

When the Record Actions toolbar button is clicked the Recorder window is opened.

clip_image012

Actions in the Recorder

  1. It is possible to Pause and Resume the recording.
  2. We can reset the entire recording. Generally you do this if significant portion of your recording is invalid.
  3. It is possible to Delete the last action which has been recorded. Generally this action can be used to remove some inadvertent step performed while recording a test.
  4. After recording a series of test steps, we can specify a name for the Recorded Method and Generate a Method which will generate code for all recorded actions and include them in the specified recorded method.
  5. Cancel will close the Recorder and move back to the Coded UI Test Builder Recorded Actions.

 

Other Features of Recorder

  • The recorder becomes semi transparent when focus is taken away from it. If you give focus back again to the recorder, it will become opaque.
  • If you need to perform actions on controls under the recorder, you need to move the recorder window to some other location.
  • Actions performed on the Recorder window or the Visual Studio which launched the Recorder will not be recorded.
  • An action log is generated for each action which is recorded. It is recommended that this be carefully reviewed while recording. If unnecessary actions are recorded, use the ‘Delete Last Action’ or ‘Reset’ operations as appropriate.
  • It is recommended that mnemonic names be given to recorded methods. It is also necessary to create methods for logical groups of test steps. This will help improve the readability and maintainability of the Coded UI Test.
  • When a small section of your user interface changes, it is recommended to re-record the actions on that section. This will be possible if you group small set of actions (in that section) into a recorded method. Each recorded method may be re-recorded.
Published Friday, January 23, 2009 2:29 PM by Mathew Aniyan
Filed under:

Comments

No Comments
Anonymous comments are disabled
 
Page view tracker