# IT:AD:SpecFlow:HowTo:Work with Coded UI Tests # * [[../|(UP)]] ## Proccess ## * NEW LINK: [https://github.com/techtalk/SpecFlow/wiki/Using-SpecFlow-with-CodedUI-API](https://github.com/techtalk/SpecFlow/wiki/Using-SpecFlow-with-CodedUI-API) * AND YES!: [http://scrumdod.blogspot.co.nz/2011/03/how-to-integrate-specflow-and-coded-ui.html](http://scrumdod.blogspot.co.nz/2011/03/how-to-integrate-specflow-and-coded-ui.html) It’s always like that…one small overlooked Attribute can make you do a lot of head banging. The secret sauce is trivial: have to remove from the autogenerated TestClassAttribute. [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.5.0.0")] [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] //[Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class AdditionFeature and replace it with a CodedUITest attribute, using a partial class in case it gets ovewritten: [CodedUITest] public partial class AdditionFeature { } Once I figured it out, it of course turned out that the issue had been discussed in the forums [here](http://groups.google.com/group/specflow/browse_thread/thread/e162fc98c1d7c119/0bf231a65195b375?lnk=gst&q=template#0bf231a65195b375) and at present (Feb 17,2010) there’s no way to do this by hand. Keep an eye on this too ([https://github.com/techtalk/SpecFlow/issues#issue/39](https://github.com/techtalk/SpecFlow/issues#issue/39)) Note that the thread is interesting as it points out that one has to consider events too… I’m watching…cause it’s awesome watching Specs => Recorded UI Tests. Such an easy sell to the team