Create a Coded UI Test project. Coded UI tests must be contained in a coded UI test project. If you don’t already have a coded UI test project, create one. In Solution Explorer , on the shortcut menu of the solution, choose Add , New Project and then select either Visual Basic or Visual C# . Next, choose Test , Coded UI Test .