Friday, February 22, 2013

TFS Live - Windows 8 App



Note**: if you are trying with hosted TFS, please refer to slide 17 of this PPT for configuration change


Download Link  for Window 8 /RT (or search in Windows Store for TFS Live)
 
http://apps.microsoft.com/windows/en-US/app/tfs-live/6af3a840-1dbd-47c3-8ec8-3f7c1e8ac6a9


Want to just try out and don't have TFS access?




 

TFS Live - Windows Phone 8




Note**: if you are trying with hosted TFS, please refer to slide 17 of this PPT for configuration change



Download Link for Windows Phone 8  (or search in Windows Phone Store for TFS Live)

 
http://www.windowsphone.com/en-us/store/app/tfs-live/6b869573-44a2-4860-b2e7-55806d4b2011
 
 
 
Want to just try out and don't have TFS access?

 
 

 

Thursday, February 14, 2013

Coded UI Usability Automation using JavaScript


After downloading the extension, add the DLL to your references under your Coded UI Project. Please find below the sample documentation
#Coded UI Usability Automation using JavaScript

# Send your feedback to rankumar@microsoft.com / rajkamal@microsoft.com

     
//This method retreives the properties of hyperlink with inner text "News" and "Hotmail"

        [TestMethod]

        public void CodedUITestMethod1()

        {

            BrowserWindow bw = BrowserWindow.Launch(new Uri("http://www.bing.com/"));

            bw.WaitForControlReady();

            ListRepository> list = UsabilityAutomation.Usability.GetUsabilityProperties(bw, "a", "News,Hotmail");

            foreach (UsabilityAutomation.Repository prop in list)

            {

                Assert.AreEqual(prop.font_family, "Arial,Sans-Serif");

                Assert.AreEqual(prop.text_decoration, "none");

            }

 

        }

 

        //This method retrieves the properties of div element whose id is "hp_container "

        [TestMethod]

        public void CodedUITestMethod2()

        {

            BrowserWindow bw = BrowserWindow.Launch(new Uri("http://www.bing.com/"));

            bw.WaitForControlReady();

            ListRepository> list = UsabilityAutomation.Usability.GetUsabilityProperties(bw, "div","hp_container");

            foreach (UsabilityAutomation.Repository prop in list)

            {

                Assert.AreEqual(prop.margin_left, "117px");

                Assert.AreEqual(prop.font_size, "13.33px");

                Assert.AreEqual(prop.width, "1366px");

                Assert.AreEqual(prop.color, "rgb(0, 0, 0)");

            }

        }

 

        //This method retrieves the properties of input element whose id is "sb_form_q"

 

        [TestMethod]

        public void CodedUITestMethod3()

        {

            BrowserWindow bw = BrowserWindow.Launch(new Uri("http://www.bing.com/"));

            bw.WaitForControlReady();

            ListRepository> list = UsabilityAutomation.Usability.GetUsabilityProperties(bw, "input", "sb_form_q");

            foreach (UsabilityAutomation.Repository prop in list)

            {

                Assert.AreEqual(prop.padding_left, "9px");

                Assert.AreEqual(prop.padding_right, "5px");

              

            }

 

        }

 

        //This method retrieves the properties of all input element present on the page

 

        [TestMethod]

        public void CodedUITestMethod4()

        {

            BrowserWindow bw = BrowserWindow.Launch(new Uri("http://www.bing.com/"));

            bw.WaitForControlReady();

            ListRepository> list = UsabilityAutomation.Usability.GetUsabilityProperties(bw, "input");

            foreach (UsabilityAutomation.Repository prop in list)

            {

                // your assert logic

 

              

 

            }

 

        }