{"id":1618,"date":"2020-02-18T10:32:08","date_gmt":"2020-02-18T14:32:08","guid":{"rendered":"http:\/\/blog.wholetomato.com\/?p=1618"},"modified":"2022-09-01T14:11:36","modified_gmt":"2022-09-01T18:11:36","slug":"tools-for-tuesday","status":"publish","type":"post","link":"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/","title":{"rendered":"Tools for Tuesday"},"content":{"rendered":"\r\n<p>While we hope Visual Assist is your favorite dev tool, we know we can&#8217;t (and won&#8217;t) do everything for you. As we continue developing solutions, we&#8217;ll also showcase tools or tips for other problems you may face in other parts of development. This week, you&#8217;ll hear from our friends at <a href=\"https:\/\/www.ranorex.com\">Ranorex<\/a>:<\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\r\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\r\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/#How_to_continue_to_test_in_Visual_Studio_in_a_post_Coded_UI_worldA\" >How to continue to test in Visual Studio in a post Coded UI world.\u00c2\u00a0<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/#1_Create_a_new_Visual_Studio_projectA\" >1. Create a new Visual Studio project\u00c2\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/#2_Add_Ranorex_core_assemblies_as_references\" >2. Add Ranorex core assemblies as references<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/#3_Over_to_youA\" >3. Over to you\u00c2\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/#Before_you_go\" >Before you go<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/stage.wholetomato.com\/blog\/tools-for-tuesday\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\r\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_continue_to_test_in_Visual_Studio_in_a_post_Coded_UI_worldA\"><\/span><strong>How to continue to test in Visual Studio in a post Coded UI world.\u00c2\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h1>\r\n\r\n\r\n\r\n<p>Producing powerful on-time releases demands high-quality code and thorough testing. This is why developers have been encouraged to continuously inspect their code for errors and to <a href=\"https:\/\/www.ranorex.com\/blog\/succeed-left-shifted-world\/\">shift their testing left.<\/a>\u00c2\u00a0 Visual studio is far and away the most popular IDE on the planet with an estimated <a href=\"https:\/\/www.datanyze.com\/market-share\/ide\/microsoft-visual-studio-market-share\">market share of 39%<\/a>, and there are some great <a href=\"https:\/\/docs.wholetomato.com\/default.asp?W760\">code inspection tools<\/a> that extend Visual Studio functionality out there, but what about left-shifted test automation?\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<p>For users of Visual Studio, Coded UI facilitated a shift-left approach to development by enabling automated UI-driven functional testing from within the IDE. However, earlier this year Microsoft announced that Coded UI was deprecated. Visual Studio 2019 would be the last version to support Coded UI.<\/p>\r\n\r\n\r\n\r\n<p>Does this mean that left-shifted developers and technical testers are bereft of a testing framework that operates from within Visual Studio? The answer my friends is \u00e2\u20ac\u0153not on your nelly\u00e2\u20ac\u009d. The Ranorex testing framework provides an API for C# and VB.Net that completely replaces Coded UI.<\/p>\r\n\r\n\r\n\r\n<p>Migration from Coded UI to the Ranorex testing framework is as easy as one, two, three. Once you have downloaded and installed Ranorex Studio simply follow the instructions below:<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Create_a_new_Visual_Studio_projectA\"><\/span><strong>1. Create a new Visual Studio project\u00c2\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Open Visual Studio, go to <strong>File &gt; New Project<\/strong>. Next, you will need to select .Net Framework 4.5.2 or higher, you will be prompted to choose your programing language, you can select either C# or VB.Net. All that is now left to do in this first step is to select <strong>Console Application<\/strong> and hit <strong>OK<\/strong>.\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/nfroucGYTS4KHU-6uzhAh2P5JqHp6dMvJERLpweVtn0fesXdEhJlgCWfJt8fYoJuXNdDVQIa9nBCD-z9NuJAx5I8L_mZhq6HeI2qQs-rprA4Dz2R8YtRu5gDq84rOXkWYZIKBDo\" alt=\"New project window\" \/><\/figure>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Add_Ranorex_core_assemblies_as_references\"><\/span><strong>2. Add Ranorex core assemblies as references<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>To ensure a seamless migration away from Coded UI you will next need to add the Ranorex core assemblies. To do so navigate to the project\u00e2\u20ac\u2122s <strong>Solution Explorer<\/strong>, right mouse click on the References Folder and select <strong>Add Reference\u00e2\u20ac\u00a6<\/strong>\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/PeN7Rp1tRcfPCL8RzxQM0wkmwQC9dy0hsoeqd86H-q0gy4B1sQF_P-RceF6C9B8B0WskrYpWzQ6aLCeP15fpGrc03gPWivlHxwQiY5IQCYdeYs_-RDstTDODfAi0bW-b453DWv8\" alt=\"Solution explorer\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Click <strong>browse<\/strong> and then navigate to the Bin folder of your Ranorex installation, (the default location is C:\\Program Files (x86)Ranorex Bin).\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<p>Add the following:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Ranorex.Bootstrapper<\/li>\r\n<li>Ranorex.Common<\/li>\r\n<li>Ranorex.Core<\/li>\r\n<li>Ranorex.Core.Resolver<\/li>\r\n<li>All Ranorex.Plugin assemblies<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/-JIIMVQYYPMSu--x5xmiNouT4Tx46zoVjZfLcSsgoC50wXaoEg4iAWmiTYDQpFhriqCPlycCqvsdQ5Xf3KuDH-UVeAcR5zPBVTHkJBzvS3ym_Gal8qwWkzMfcyVoPpACyhndKcE\" alt=\"https:\/\/miro.medium.com\/max\/846\/1*H3t63DTmK-_Gg9AITVokEA.png\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Set the Copy Local option to False for all Ranorex assemblies except for Ranorex.Core.Resolver<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Over_to_youA\"><\/span><strong>3. Over to you\u00c2\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Start writing code and continue with left-shifted testing in Visual Studio.\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Before_you_go\"><\/span><strong>Before you go<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Not only are you able to continue to test in your preferred IDE you can also benefit from the best object recognition on the market. Ranorex Spy is the tool developers and technical testers love. Use it to analyze your AUT, its element structure, available object properties and attributes, and build the most robust and reliable XPaths for use in Visual Studio.<\/p>\r\n\r\n\r\n\r\n<p>Be in full control of your XPaths. Increase or decrease dynamism in line with the complexity your tests require. Add variables to your XPaths and customize how you uniquely identify UI elements even when testing mixed technology applications.\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<p>You can also benefit from all the functionality associated with Ranorex. Have a better understanding of failed tests with fully customizable reports. Get built-in object repository access and organize your tests in logical hierarchical structures.\u00c2\u00a0<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Left-shifted developers and technical testers who have used Coded UI need not mourn its passing, rather they should see the deprecation as an opportunity to increase the speed and quality of their releases. The Ranorex testing framework offers an API that completely replaces Coded UI, has far superior object recognition, and increased functionality. But don\u00e2\u20ac\u2122t take my word for it download you full featured <a href=\"https:\/\/www.ranorex.com\/ranorex-studio-test-automation\/\">30-day free trial<\/a> and find out for yourself.\u00c2\u00a0<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>While we hope Visual Assist is your favorite dev tool, we know we can&#8217;t (and won&#8217;t) do everything for you. As we continue developing solutions, we&#8217;ll also showcase tools or tips for other problems you&#8230;<\/p>\n","protected":false},"author":174768229,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[672],"tags":[39630695,4867869,16046502,1981],"class_list":["post-1618","post","type-post","status-publish","format-standard","hentry","category-tips-and-tricks","tag-coded-ui","tag-idera","tag-ranorex","tag-tools"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfhqii-q6","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/1618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/users\/174768229"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/comments?post=1618"}],"version-history":[{"count":8,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/1618\/revisions"}],"predecessor-version":[{"id":2654,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/1618\/revisions\/2654"}],"wp:attachment":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/media?parent=1618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/categories?post=1618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/tags?post=1618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}