{"id":83,"date":"2012-03-19T05:58:49","date_gmt":"2012-03-19T05:58:49","guid":{"rendered":"http:\/\/collaboriscom.wpengine.com\/?p=83"},"modified":"2022-01-12T16:41:18","modified_gmt":"2022-01-12T16:41:18","slug":"ui-testing-sharepoint","status":"publish","type":"post","link":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/","title":{"rendered":"UI Testing SharePoint"},"content":{"rendered":"<h1>UI Testing SharePoint<\/h1>\n<p>As part of an on-going series of &#8216;<strong>Testing SharePoint<\/strong>&#8216; we intend to share some of what we have learnt when trying to automate the testing of a SharePoint add-on called DocRead.\u00a0These posts will specifically cover functional and integration testing &#8211; not unit testing (which is worth a whole conversation on it&#8217;s own).<\/p>\n<p>To get started, I want to tell a story about how I have come to love Selenium, but\u00a0first a bit of history about who I am. I have used SharePoint seriously since beta 1 of SharePoint 2007 and worked as a developer or architect for organisations such as Collaboris, NHS, Tarmac, BT, Lloyds of London, Lloyds Tsb, Capita, O2 on both versions. I have tried &#8211; like lots of other devs &#8211; to make unit tests useful and still get the product out on time. I have done lots of performance testing using visual studio web performance tests in my time and actually quite enjoyed it.<\/p>\n<p>Having said that, I have never done functional testing apart from to help out here and there. However, as DocRead is really starting to become the success we hoped for I have found myself looking for ways to get new versions out of the door much faster, cheaper and more efficiently! One area that&#8217;s been burning our development teams time is testing. It&#8217;s all very organized but very manual. We have really good test coverage, but to run though one set of tests for one version takes 4-5 days.\u00a0If you think that DocRead ships on SharePoint 2007 (32 and 64) and SharePoint 2010 that&#8217;s 15 man days to get a version out! This also assumes that we only have to go through the test cycle once &#8211; which never happens. There are always a few iterations of re-testing for either all or part of your applicaiton.<\/p>\n<p><em>Note. for those of you that don&#8217;t know &#8211;\u00a0<\/em><a href=\"\/products\/docread\/\"><em>DocRead<\/em><\/a><em>\u00a0is an add-on for SharePoint that allows you to require or recommend that groups of users read a document by a deadline. It has it&#8217;s own databases, reporting application, web parts, application pages and features to activate at all levels in SharePoint. It solves a simple problem, but actually requires a very robust solution and has tons of different test scenarios to cater for.<\/em><\/p>\n<p>When trying to help the testers come up with an automated solution, my first reaction was to dive in and use Visual Studio Web Tests, but I soon realized that they weren&#8217;t going to fulfill our needs. DocRead uses tons of client side code and Ajax calls to make the experience as responsive and smooth as possible.\u00a0We needed an approach beyond &#8216;record and play&#8217; that worked at the browser level, not at the http level like web tests do. Enter Selenium.<\/p>\n<p>Firstly, I can honestly say that I have never touched Selenium until\u00a03 weeks ago. I knew a couple of testers that had and only 1 that had used it seriously with SharePoint. In fact, if you Google &#8216;Selenium and SharePoint&#8217; you very quickly run out of decent results. Why is this ?\u00a0Let&#8217;s think about it. For a tester to automate SharePoint testing they need to know&#8230;<\/p>\n<ol>\n<li><strong>SharePoint<\/strong> &#8211; this in itself is huge!<\/li>\n<li><strong>How to code<\/strong> &#8211; testing has to be automated in some language.<\/li>\n<li><strong>How to test<\/strong> &#8211; testing is a real skill, knowing how to structure your tests is very important.<\/li>\n<li><strong>A testing Framework\/Tool <\/strong>&#8211; Selenium, Visual Studio Test, etc.<\/li>\n<\/ol>\n<p>That&#8217;s one hefty skillset &#8211; finding testers with these skills is very tough!\u00a0 In my opinion, testers also get a rough deal. Developers only consider them when they have time, usually as the first bugs come in. Developers don&#8217;t write code that easy to test, (e.g. nice use of CSS, ID&#8217;s). And all too often with SharePoint, releases are late due to deployment headaches.<\/p>\n<p>The following sections offer some guidance and help explain the problems we had to tackle along the way &#8211; (as I write them I will link them!)<\/p>\n<ul>\n<li><a href=\"\/what-is-selenium-and-how-can-it-help-me-test-sharepoint\/\">What is Selenium and how can it help me test SharePoint?<\/a><\/li>\n<li><a href=\"\/where-to-host-your-sharepoint-test-environment\/\">Where to host your SharePoint Test Environment?<\/a><\/li>\n<li>Automating the deployment of\u00a0SharePoint and setting up your environment.<\/li>\n<li>Setting up your SharePoint test environment.<\/li>\n<li>Making SharePoint test cases more readable and less fragile.<\/li>\n<li>A common testing framework with Selenium SharePoint (ShareTest).<\/li>\n<li>Testing both SharePoint 2007 and SharePoint 2010 with Selenium.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>UI Testing SharePoint As part of an on-going series of &#8216;Testing SharePoint&#8216; we intend to share some of what we have learnt when trying to automate the testing of a SharePoint add-on called DocRead.\u00a0These posts will specifically cover functional and integration testing &#8211; not unit testing (which is worth a whole conversation on it&#8217;s own). [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":2106,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[28,9],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint","category-testing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v26.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UI Testing SharePoint - Collaboris<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UI Testing SharePoint\" \/>\n<meta property=\"og:description\" content=\"UI Testing SharePoint As part of an on-going series of &#8216;Testing SharePoint&#8216; we intend to share some of what we have learnt when trying to automate the testing of a SharePoint add-on called DocRead.\u00a0These posts will specifically cover functional and integration testing &#8211; not unit testing (which is worth a whole conversation on it&#8217;s own). [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\" \/>\n<meta property=\"og:site_name\" content=\"Collaboris\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Collaboris\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-19T05:58:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-12T16:41:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mark Jones\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Collaboris\" \/>\n<meta name=\"twitter:site\" content=\"@Collaboris\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Jones\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\"},\"author\":{\"name\":\"Mark Jones\",\"@id\":\"https:\/\/www.collaboris.com\/#\/schema\/person\/1267c19507e47b0069837c8f1a5510dd\"},\"headline\":\"UI Testing SharePoint\",\"datePublished\":\"2012-03-19T05:58:49+00:00\",\"dateModified\":\"2022-01-12T16:41:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\"},\"wordCount\":735,\"publisher\":{\"@id\":\"https:\/\/www.collaboris.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png\",\"articleSection\":[\"SharePoint\",\"Testing\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\",\"url\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\",\"name\":\"UI Testing SharePoint - Collaboris\",\"isPartOf\":{\"@id\":\"https:\/\/www.collaboris.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png\",\"datePublished\":\"2012-03-19T05:58:49+00:00\",\"dateModified\":\"2022-01-12T16:41:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage\",\"url\":\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png\",\"contentUrl\":\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png\",\"width\":820,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.collaboris.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UI Testing SharePoint\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.collaboris.com\/#website\",\"url\":\"https:\/\/www.collaboris.com\/\",\"name\":\"Collaboris\",\"description\":\"We make compliance simple\",\"publisher\":{\"@id\":\"https:\/\/www.collaboris.com\/#organization\"},\"alternateName\":\"DocRead\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.collaboris.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.collaboris.com\/#organization\",\"name\":\"Collaboris\",\"alternateName\":\"DocRead\",\"url\":\"https:\/\/www.collaboris.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.collaboris.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2021\/05\/collaboris_logo_small.png\",\"contentUrl\":\"https:\/\/www.collaboris.com\/wp-content\/uploads\/2021\/05\/collaboris_logo_small.png\",\"width\":150,\"height\":40,\"caption\":\"Collaboris\"},\"image\":{\"@id\":\"https:\/\/www.collaboris.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Collaboris\/\",\"https:\/\/x.com\/Collaboris\",\"https:\/\/www.linkedin.com\/company\/collaboris\"],\"description\":\"Collaboris is a Software company that created a policy management tool called DocRead.\",\"email\":\"info@collaboris.com\",\"telephone\":\"02079935140\",\"legalName\":\"Collaboris Ltd\",\"foundingDate\":\"2007-12-03\",\"vatID\":\"GB928895360\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1\",\"maxValue\":\"10\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.collaboris.com\/#\/schema\/person\/1267c19507e47b0069837c8f1a5510dd\",\"name\":\"Mark Jones\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.collaboris.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5b6b12fa3b3a40fc9b46767f25a7d03d2e40ad4a7250d331b66a86b94308c64d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5b6b12fa3b3a40fc9b46767f25a7d03d2e40ad4a7250d331b66a86b94308c64d?s=96&d=mm&r=g\",\"caption\":\"Mark Jones\"},\"url\":\"https:\/\/www.collaboris.com\/author\/markjones333\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"UI Testing SharePoint - Collaboris","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/","og_locale":"en_GB","og_type":"article","og_title":"UI Testing SharePoint","og_description":"UI Testing SharePoint As part of an on-going series of &#8216;Testing SharePoint&#8216; we intend to share some of what we have learnt when trying to automate the testing of a SharePoint add-on called DocRead.\u00a0These posts will specifically cover functional and integration testing &#8211; not unit testing (which is worth a whole conversation on it&#8217;s own). [&hellip;]","og_url":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/","og_site_name":"Collaboris","article_publisher":"https:\/\/www.facebook.com\/Collaboris\/","article_published_time":"2012-03-19T05:58:49+00:00","article_modified_time":"2022-01-12T16:41:18+00:00","og_image":[{"width":820,"height":300,"url":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png","type":"image\/png"}],"author":"Mark Jones","twitter_card":"summary_large_image","twitter_creator":"@Collaboris","twitter_site":"@Collaboris","twitter_misc":{"Written by":"Mark Jones","Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#article","isPartOf":{"@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/"},"author":{"name":"Mark Jones","@id":"https:\/\/www.collaboris.com\/#\/schema\/person\/1267c19507e47b0069837c8f1a5510dd"},"headline":"UI Testing SharePoint","datePublished":"2012-03-19T05:58:49+00:00","dateModified":"2022-01-12T16:41:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/"},"wordCount":735,"publisher":{"@id":"https:\/\/www.collaboris.com\/#organization"},"image":{"@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage"},"thumbnailUrl":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png","articleSection":["SharePoint","Testing"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/","url":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/","name":"UI Testing SharePoint - Collaboris","isPartOf":{"@id":"https:\/\/www.collaboris.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage"},"image":{"@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage"},"thumbnailUrl":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png","datePublished":"2012-03-19T05:58:49+00:00","dateModified":"2022-01-12T16:41:18+00:00","breadcrumb":{"@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.collaboris.com\/ui-testing-sharepoint\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#primaryimage","url":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png","contentUrl":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2016\/07\/blue_820x300_sharepoint_img.png","width":820,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/www.collaboris.com\/ui-testing-sharepoint\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.collaboris.com\/"},{"@type":"ListItem","position":2,"name":"UI Testing SharePoint"}]},{"@type":"WebSite","@id":"https:\/\/www.collaboris.com\/#website","url":"https:\/\/www.collaboris.com\/","name":"Collaboris","description":"We make compliance simple","publisher":{"@id":"https:\/\/www.collaboris.com\/#organization"},"alternateName":"DocRead","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.collaboris.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.collaboris.com\/#organization","name":"Collaboris","alternateName":"DocRead","url":"https:\/\/www.collaboris.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.collaboris.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2021\/05\/collaboris_logo_small.png","contentUrl":"https:\/\/www.collaboris.com\/wp-content\/uploads\/2021\/05\/collaboris_logo_small.png","width":150,"height":40,"caption":"Collaboris"},"image":{"@id":"https:\/\/www.collaboris.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Collaboris\/","https:\/\/x.com\/Collaboris","https:\/\/www.linkedin.com\/company\/collaboris"],"description":"Collaboris is a Software company that created a policy management tool called DocRead.","email":"info@collaboris.com","telephone":"02079935140","legalName":"Collaboris Ltd","foundingDate":"2007-12-03","vatID":"GB928895360","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1","maxValue":"10"}},{"@type":"Person","@id":"https:\/\/www.collaboris.com\/#\/schema\/person\/1267c19507e47b0069837c8f1a5510dd","name":"Mark Jones","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.collaboris.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5b6b12fa3b3a40fc9b46767f25a7d03d2e40ad4a7250d331b66a86b94308c64d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5b6b12fa3b3a40fc9b46767f25a7d03d2e40ad4a7250d331b66a86b94308c64d?s=96&d=mm&r=g","caption":"Mark Jones"},"url":"https:\/\/www.collaboris.com\/author\/markjones333\/"}]}},"modified_by":"Helen Jones","_links":{"self":[{"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":4,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":1370840,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/posts\/83\/revisions\/1370840"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/media\/2106"}],"wp:attachment":[{"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.collaboris.com\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}