{"id":2157,"date":"2012-10-14T20:28:22","date_gmt":"2012-10-14T20:28:22","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=2157"},"modified":"2022-08-21T16:09:07","modified_gmt":"2022-08-21T16:09:07","slug":"fim-best-practice-document-test-cases","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/fim-best-practice-document-test-cases","title":{"rendered":"FIM Best Practice: Document Test Cases"},"content":{"rendered":"<p>I am not aware that anyone has has yet found a way to automate full testing of a FIM solution. I know some people unit test their extension code but that doesn&#8217;t tell you anything beyond the inputs and outputs of the code. Full testing may need to encompass data entry in the Portal or from connected systems, workflows, synchronization, and resultant modifications in target systems.<\/p>\n<p><!--more--><\/p>\n<p>We can achieve a reasonable level of testing in the Sync Service using the built-in functionalities of sync preview and &#8220;drop a log file and stop the run&#8221;. However what if we also need to test FIM&#8217;s response to particular ways that data is entered and modified in connected systems, and what about the Portal?<\/p>\n<p>The only way that I know to end-to-end test a FIM solution is with Test Cases. These are documented procedures with particular inputs that should lead to demonstrable outcomes. They have to be conducted manually which is, unfortunately, a thoroughly boring job for someone.<\/p>\n<p>As a solution grows you may end up with many hundreds of test cases. Is it really necessary to run through all of them at each change? We have to be practical here so perhaps a subset of the most common use cases can be tested, plus any that are particularly linked to the change.<\/p>\n<p>I am also very glad when <em>someone other than me<\/em> does the testing. If I made the change then of course I <em>know <\/em>it&#8217;s fine, so may completely miss where it actually isn&#8217;t. For complex environments with a lot of test cases to run through having people other than the FIM administrators\/designers to do the testing is definitely a best practice.<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am not aware that anyone has has yet found a way to automate full testing of a FIM solution. I know some people unit test their extension code but that doesn&#8217;t tell you anything beyond the inputs and outputs of the code. Full testing may need to encompass data entry in the Portal or&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[55,42],"tags":[],"class_list":["post-2157","post","type-post","status-publish","format-standard","hentry","category-best-practice","category-fim-2010"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-yN","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/2157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=2157"}],"version-history":[{"count":16,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/2157\/revisions"}],"predecessor-version":[{"id":3280,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/2157\/revisions\/3280"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=2157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=2157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=2157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}