I have a fairly large Coded UI test and have set up each task in its own .cs class file. The main objective of the test is to check that objects have loaded on various pages in a browser. The test is set up to loop through an XML config file and invoke each method listed in the XML as the user sees fit.
Because I don't want every test method to run every time, I do not have the [TestMethod] attribute declared at the top of each class/method. Unfortunately, this means that each method that is invoked will not show up individually in the test results view, which is a big disadvantage.
Is there a way that I can apply the [TestMethod] attribute each time a method is invoked, but only for the methods I want?