Visual Studio Testing Tools(CodedUI UIMap.Designer Comment line not working)
-
Thursday, August 09, 2012 6:03 AM
Hi,
My doubt is related to Visual Studio 2010 Coded UI Test Comments in UIMap.Designer.In a Tesing Project, I added one CodedUI Test like CodedUITest1.cs.Generated one CodedUI test method into CodedUITest1.cs. I run the same mehod , test result showed as failed due to some issue. I found that issue in UIMap.designer debug mode. so i commented that line and then execute the same method it works fine. When i add another CodedUI Test like CodedUITest2.cs in the same test project , before commented lines are now uncommented in UIMap.Designer.cs file. So again i run the CodedUITest1.cs test method it shows result as test failed.can anyone help me?
Thanks,
Kalaiyarasan
All Replies
-
Thursday, August 09, 2012 6:16 AM
- Marked As Answer by Karunanithi Kalaiyarasan Thursday, August 09, 2012 6:38 AM
-
Thursday, August 09, 2012 7:58 AM
Hi Kalai,
U cant able to edit the UIDesignerfile(i,e once u changed the designer file it will reflect for that moment only) . it will not reflect next time while u running. Just copy the method and rename the method. now run. It will work.
E.g
[
TestMethod]public void CodedUITestMethod1()
{
// To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
// For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
this.UIMap.RecordedMethod1();
} change it to
[
TestMethod]
public void CodedUITestMethod1()
{
// To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
// For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
//this.UIMap.RecordedMethod1();block this line
this.UIMap.RecordedMethod2(); }
Manikandan Murugeshan
-
Friday, August 10, 2012 5:46 AM
I am facing the same issue.
I copied the method and renamed it, it worked for that moment with the changes i made in the designer, but later i done coded ui test for some other user interfaces in the same project and builded it, the changes made and new method got disappeared.
Again its coming to the same issue which i faced 1st.
The problem is because, if i do changes in a designer and later if i add new test, the codes are getting added in the same UIMAP file, which deletes all the codes which are changed and added manually.
Next i am going to try by adding service pack 2
-
Friday, November 23, 2012 8:28 PM
-
Do not modify the UIMap.designer.cs file directly. If you do this, the changes to the file will be overwritten.
Sergey
-
-
Friday, November 23, 2012 8:30 PM

