Author: admin

  • What is Geocoding?

    Geocoding is a process that involves converting addresses (like “1600 Amphitheatre Parkway, Mountain View, CA”) into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers on a map, or position the map. In simpler terms, it is the computational process of transforming a physical address description to a location…

  • And, enjoy watching the test execution 🙂

    Conclusion In this article, I wanted to describe the first steps of test automation with Ruby, Cucumber, and Capybara. I hope that you were also successful with these instructions. This article is just the beginning of this topic. You should do more research on references and official pages to improve your test automation skills and knowledge of Ruby, Cucumber,…

  • Automation with Ruby & Capybara & Cucumber

    First, we need to create a feature directory. We add all feature files into this folder. Feature files should be written with Gherkin Syntax (Given-When-Then). Gherkin, a domain-specific language (DSL) that “lets you describe the software’s behavior without detailing how that behavior is implemented.” Each scenario can have up to three parts: Given, When, and Then: There are also And lines, which do whatever the…

  • Installation and Setups

    Step-1: Install Ruby For Windows the best place to install Ruby is http://rubyinstaller.org/downloads/. Go to that site and install the latest 32-bit version of Ruby, when I am writing this article latest version was Ruby 2.2.4. You can go with the latest version when you are reading this article. Note: The 64-bit versions of Ruby are relatively new…

  • What is Cucumber?

    Cucumber is a framework for writing and executing high-level descriptions of your software’s functionality. It supports Behavior Driven Development (BDD). It offers a way to write tests that anybody can understand, regardless of their technical knowledge. The language that Cucumber understands is called Gherkin. Cucumber itself is written in Ruby, but it can be used to “test” code written in Ruby…

  • What is Capybara?

    On Capybara’s official page it is described as follows: “Capybara is a library written in the Ruby programming language which makes it easy to simulate how a user interacts with your application. Capybara can talk with many different drivers who execute your tests through the same clean and simple interface. You can seamlessly choose between Selenium, Webkit, or pure Ruby drivers. Capybara automatically waits for your…

  • Setting the Road

    —

    by

    in

    Now that we know the basics of Cuba, we’re ready to make our twitter clone. In this chapter, we’ll set the road to start coding theapplication and have a look at how Cuba applications looks in the wild.After reading this chapter, you will know:The general layout of a Cuba application.How to properly manage project dependencies.How…

  • Rack & Roll!

    —

    by

    in

    As we mentioned earlier, Cuba is built on top of Rack … but what is Rack?Rack deals with HTTP requests. It provides a minimal interface between web servers supporting Ruby and Ruby frameworks. WithoutRack, Cuba would have to implement its own handler for each web server.You didn’t notice yet but we already used Rack. We…

  • Breaking Down the Syntax

    —

    by

    in

    Now that we know how to build a minimal Cuba application, let’s take a deeper look at the syntax. We can split this example into threeparts:First, we require Cuba to load the gem and get access to its functionality. require “cuba” Then we can identify four methods that appear in most Cuba applications: define , on…

  • Hello Cuba!

    —

    by

    in

    Before getting started, we have to install Cuba. Use the gem  command: Now that Cuba is installed, it’s easy to create a Cuba application. Open your text editor of preference and create a file called with the following code: You already have a functional Cuba application! To see it in action, type  in the command…