{"id":6333,"date":"2020-10-31T18:06:28","date_gmt":"2020-10-31T12:36:28","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=6333"},"modified":"2020-11-05T17:08:58","modified_gmt":"2020-11-05T11:38:58","slug":"how-to-install-ruby-with-cucumber","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/how-to-install-ruby-with-cucumber\/","title":{"rendered":"How To Install Ruby With Cucumber?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Ruby With Cucumber<\/strong><\/h2>\n\n\n\n<p><strong><\/strong>Ruby is a dynamic interpreted object oriented language in which each and every thing is considered as an object which can be overwritten. It is one of the easiest languages to read and write.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What are the advantages of Ruby?<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>It is easy to understand<\/li><li>It is an object-oriented language<\/li><li>It has powerful class of library<\/li><li>It is having massive online support<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is cucumber?<\/strong><strong><\/strong><\/h2>\n\n\n\n<p><strong>Cucumber <\/strong>is a tool based on Behaviour Driven Development framework which is used to write the acceptance tests for web application. It is written in Ruby.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to install Ruby with Cucumber?<\/strong><\/h2>\n\n\n\n<p><strong>The step by step process to install how cucumber works with Ruby:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Install Ruby<\/strong><\/li><\/ol>\n\n\n\n<p>Goto <a href=\"https:\/\/www.h2kinfosys.com\/blog\/how-to-execute-a-ruby-script\/\">Ruby <\/a>Installer download page<\/p>\n\n\n\n<p>Download the version best suited for the operating system.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/BGMtOnQwnAP17DGGNo6N9usAR8EUOlX1DXAYOfcvRoRyM8YagjvLtX60C4gZD0kyhb1s_C0KHO66pTdF4sjrrUZbvCltOcCFrBNIJoZAJOpsK5RbRy6vskAHmPNvV8zHwH55tRQ\" alt=\"\" title=\"\"><\/figure>\n\n\n\n<p>Run the download exe and during the installation process check the option \u201cAdd Ruby\u201d as shown<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/q1canPBol3b98i7zSxigQDPI18dvE9DuXza67TGKEv6JA4ipmS7-lIEMYGf9KD1kTuX4PsFmy77x_0gllU9IMt5eMQKANO2X9SXCH3O8J2V5UVKk-meWFTFX6T6Mr3wTLRl1CgE\" alt=\"Setup Ruby\" title=\"\"><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li><strong>Download and extract Dev kit<\/strong><\/li><\/ol>\n\n\n\n<p>Go to Ruby Installer download page. Download the Devkit version which is best suited for the operating system( 32 or 64 bit)<\/p>\n\n\n\n<p><strong>Extract the Devkit at C:\\Ruby\\devkit folder<\/strong><\/p>\n\n\n\n<p>Open the command prompt. Inside the Ruby Devkit run the command<\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\\Ruby\\devkit&gt; ruby dk.rb init&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\\Ruby\\devkit&gt; ruby dk.rb install<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/U2AZqGNxqCmvtd4tchiwzHMJ1_EJSqYy6GdEzNcKhzx3nl4qycwC1LMDOTue10ok6btsoOZfKFnQnWjql9J6sYzOlwFQUcYwJkOUFu2M0E_3JLldmkNxNoRtTulxwvzUJ59tj3A\" alt=\"\" title=\"\"><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li><strong>Install cucumber and other Ruby gem<\/strong><\/li><\/ol>\n\n\n\n<p>To install cucumber first thing to be done is update the current gem setup<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\\Users\\Admin&gt; gem update \u2013system<\/p>\n\n\n\n<p>Installing the&nbsp; gems which need for cucumber web application testing.<\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;C:\\Users\\Admin&gt; gem install &#8211;no-ri &#8211;no-rdoc rspec&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;C:\\Users\\Admin&gt; gem install &#8211;no-ri &#8211;no-rdoc win32console&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;C:\\Users\\Admin&gt; gem install &#8211;no-ri &#8211;no-rdoc watir-webdriver&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;C:\\Users\\Admin&gt; gem install &#8211;no-ri &#8211;no-rdoc cucumber<\/strong><\/p>\n\n\n\n<p>&nbsp;&nbsp;Run Cucumber<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>C:\\Users\\Admin\\Documents&gt;cucumber \u2013init&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:\\Users\\Admin\\Documents&gt;cucumber<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Install IDE-KOMODO<\/strong><\/li><\/ol>\n\n\n\n<p>Go to page &nbsp; <a href=\"http:\/\/www.activestate.com\/komodo-ide\/downloads\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/www.activestate.com\/komodo-ide\/download<\/a><\/p>\n\n\n\n<p>Download the free trial installer. Double click on the downloaded&nbsp; exe<\/p>\n\n\n\n<p>Follow the installation steps and finish and open IDE.<\/p>\n\n\n\n<p>Install <strong>watir <\/strong>by typing \u201c<strong>gem install watir<\/strong>\u201d in the command prompt and the run the command.<\/p>\n\n\n\n<p>Install <strong>rspec <\/strong>type the following code \u201c<strong>gem install rspec<\/strong>\u201d and run the command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby With Cucumber Ruby is a dynamic interpreted object oriented language in which each and every thing is considered as an object which can be overwritten. It is one of the easiest languages to read and write.&nbsp; What are the advantages of Ruby? It is easy to understand It is an object-oriented language It has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6638,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-6333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qa-tutorials"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/6333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=6333"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/6333\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/6638"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=6333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=6333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=6333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}