I am very new to using VS 2012 Premium edition for automation testing. I usually use RFT but, the company decide to go a different route. There are many things I don't like about VS 2012 but it's probably because I am new to it and I probably like it more if I know how to make use of it better.
Right now I can do Record and playback but I hate record and playback and want to have the ability to do more with the tool. So here are the first two questions that I have.
1. Is there a tool withing VS 2012 that I can use to inspect objects?
2. I find it difficult to navigate through the codes when it's not generated by me. When VS do an auto generated scripts, it is all over the places. Is there a possibility to start the script from scratch (blank) and create all the function your self?? where can I find more information on how to create script from scratch and make use of DOM?
Any information you folks have are much appreciated
To answer your questions:
1. Yes, there is. The tool is the object spy (Spy++) in 32 and 64 bit versions.
2. I presume for this you're using the Microsoft CodedUI? You can work with this, or if you're dealing with web applications you could use Selenium WebDriver with C#.
If you're working with CodedUI you do NOT want to create your tests from scratch. CodedUI is not a "script" solution, it's full-on compiled object-oriented code. I recommend you take a look at Microsoft's getting started guides for how CodedUI works and how all the pieces fit together. Microsoft abstracts a lot of the object modeling and page modeling into separate code so you only need to focus on the areas your testing needs.
The spy++ seems to give information about Window Classes but it is good to have something to use to look at the properties. Will have to do more reading and digging.