{"id":5423,"date":"2012-03-09T19:44:06","date_gmt":"2012-03-09T19:44:06","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2012\/03\/09\/code-first-api-library-scaffolding-guidance-for-coded-ui-testsreleased-to-codeplex\/"},"modified":"2019-02-14T17:59:39","modified_gmt":"2019-02-15T01:59:39","slug":"code-first-api-library-scaffolding-guidance-for-coded-ui-testsreleased-to-codeplex","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/code-first-api-library-scaffolding-guidance-for-coded-ui-testsreleased-to-codeplex\/","title":{"rendered":"Code First API Library, Scaffolding &amp; Guidance for Coded UI Tests\u2013Released to Codeplex"},"content":{"rendered":"<p>The purpose of <i>Code First API Library, Scaffolding &amp; Guidance for Coded UI Tests <\/i>is to help you write more maintainable Coded UI tests for your web apps.&nbsp; When building Web UI Tests the way that&#8217;s proposed here &#8211; you aren&#8217;t going to be recording test scripts nor building UI Maps. Instead, you&#8217;ll be writing Page Objects that are interacting with the elements on the page.<\/p>\n<p>   <br>CodedUI CodeFirst contains three major parts which can be used individually or together. When you&#8217;re beginning a new project you&#8217;ll probably use all these parts while in an existing project you might just pick a part that&#8217;s applicable for your current situation.     <br>The three parts are <\/p>\n<ul>\n<li><a href=\"http:\/\/codeduicodefirst.codeplex.com\/#ExtensionMethods\">Extensions methods<\/a> for UITestControl to simplify finding of and interaction with HtmlControls. (<a href=\"http:\/\/codeduicodefirst.codeplex.com\/wikipage?title=api%20reference&amp;referringTitle=Home\">Reference<\/a>) <\/li>\n<li><a href=\"http:\/\/codeduicodefirst.codeplex.com\/#PageObject\">Page Object<\/a> pattern guidance and base classes <\/li>\n<li><a href=\"http:\/\/codeduicodefirst.codeplex.com\/#Scaffolding\">TFS Test Case scaffolding<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Download it from <a title=\"http:\/\/codeduicodefirst.codeplex.com\/\" href=\"http:\/\/codeduicodefirst.codeplex.com\/\">http:\/\/codeduicodefirst.codeplex.com\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Thanks to Christofer L&ouml;f for building and publishing this very useful tool.<\/p>\n<p>&nbsp;<\/p>\n<p>Please try it out and let us know your feedback.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The purpose of Code First API Library, Scaffolding &amp; Guidance for Coded UI Tests is to help you write more maintainable Coded UI tests for your web apps.&nbsp; When building Web UI Tests the way that&#8217;s proposed here &#8211; you aren&#8217;t going to be recording test scripts nor building UI Maps. Instead, you&#8217;ll be writing [&hellip;]<\/p>\n","protected":false},"author":77,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>The purpose of Code First API Library, Scaffolding &amp; Guidance for Coded UI Tests is to help you write more maintainable Coded UI tests for your web apps.&nbsp; When building Web UI Tests the way that&#8217;s proposed here &#8211; you aren&#8217;t going to be recording test scripts nor building UI Maps. Instead, you&#8217;ll be writing [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/5423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=5423"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/5423\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=5423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=5423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=5423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}