Sunday, January 31, 2016

Introduction to Textual Transformation Template Toolkit(T4 templates)

What is Text Templates       
T4 is a template based text generation framework included with Visual Studio.
        T 4 is powerful code generation tool which can generate code in any file format, it can be html, css , javascript,CSharp,Java,xml or any other file format.
        It generates code classes from model.
        Modal is nothing but a data source object for code generation.
        Model could be anything.It could be Class diagram,ERD,UML,Database design file
        Fast Development Because it generate classes based on requirement using some generic coding. 
        It is not limited to code Generation:- any file you can generate based on requirement. Ex .docx,.xlsx ,any other text file etc.

Saturday, January 9, 2016

CodedUI Test Demo

CODED UI TEST :- 
Many of us know that as we spend time with a particular tool,the more comfortable we become with understanding the ability of tool.We also tend to look for ways to use those tools efficiently to make our work all the easier.

So my this post aims to help us become comfortable with CodedUI and will Demonstrate how to go about creating a basic automated CodedUI test on simple application that was developed .

For the purpose of this post we will create the test project using visual studio 2012 . In test project it allow to record the action ,you can add assertion and also generate code from our interaction with the UI of the application.
Once code is generated for UI flow you can rerun it and test the UI,so this is automated process , Create once and use as many as time you want and minimize test effort.

During this post we will cover the following points :- 
  • Setup Existing Web Project.
  • Add CodedUI Test Project .
  • Using CodedUI Test Builder to run through inerface.
  • Adding assertions to our test.
  •   Generate code form recorded test .
  • Executing the CodedUI test.