Mike Perrenoud
Mike Perrenoud

Reputation: 67928

Coded UI Test is not recognized by Test Explorer?

GOAL

Build and run a Coded UI Test (the "CUIT").

ENVIRONMENT

CUIT Solution

CUIT Startup Projects

Successful CUIT

PROBLEM

The Test Explorer doesn't recognize the test and running all tests does nothing.

CUIT Test Explorer

WHAT I'VE TRIED

CUIT Tests-Run-All Tests

CONCLUSION

In the end, the bottom line, I can't get Visual Studio to recognize this test. I'm not in a position to build unit tests because I'm maintaining an old application that's just not built for unit tests - but I need to get some automated regression testing into it.

Upvotes: 1

Views: 1708

Answers (2)

matthiasgh
matthiasgh

Reputation: 321

You made sure that the Test Methods had

  [TestMethod]

above them

Upvotes: 0

jessehouwing
jessehouwing

Reputation: 115037

You have a recording, but not yet an actual test. When you generate code for the recording, it should generate the actual CodedUI test. That should be picked up by the Test Explorer.

Upvotes: 2

Related Questions