views:

33

answers:

1

When I recorded a test with the recorder in Visual Studio 2010 Premium, I noticed that the recorder doesn't generate the code to start the program.

Steps to repro:

  1. Add a new Coded UI test to a VB .NET testing project
  2. Click "OK" to use "Record actions, edit UI map or add assertions"
  3. Click the record button to start recording.
  4. Press CTRL+F5 in Visual Studio to start your program
  5. Click the "Generate Code" button.
  6. Observe that no code is generated as far as running things go.

Considering that starting a program is a rather important part of testing a program, I'm sure there's a solution for this problem.

+1  A: 

Take a look at the SO question VS 2010 Coded UI Test - Launch Referenced Application
It may answer your question.