Hi Shane,
each test holds its coded steps in a class that bears its name. So for instance if you have TestX and you put a coded step into that - it will create a TestX.cs file to hold that coded step and any future coded steps. We call that one a code behind file. The code behind file holds a class that also has the same name as the test i.e.
public class TestX : BaseWebAiiTest
Now when you copy the test with a code behind file - the code behind file is also copied. Both files are renamed to
TestX - Copy or something like that. But the class inside of the code behind file is not renamed and hence you get the error. And the only solution is to go in there and manually rename it so that it has the the new name:
public class TestX - Copy: BaseWebAiiTest
In Test Studio Standalone we take care of this for you. The problem only exists in the Visual Studio plug-in or when you're manually copying tests in the file system.
One way to get around this in Visual Studio is to create a new blank test and paste the existing steps from the old test in there. This will create an appropriately named code behind file.
I hope this helps.
Regards,
Stoich
the Telerik team