Category: 1. Capybara
-
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…