Last updated on : 21 Jan 2025
Capybara
Overview
Capybara is a web-based test automation tool that replicates user story scenarios and automates testing of web applications, aligning with behavior-driven software development. It's coded in the Ruby programming language.
Prerequisites
- Install Ruby and Bundler: Make sure you have the latest version of Ruby and Bundler installed on your system.
Installation and Setup
Run the following command to install the required packages listed in Gemfile:
Terminal
bundle install
Configuration
-
Personal Info: In
features/support/pcloudy.rb, provide your personal details:- Pcloudy_Username: Your email address.
- Pcloudy_ApiKey: Your API key.
Running the Test
To execute the Capybara test script:
- Open the terminal and navigate to the project directory.
- Run the following command:
Terminal
bundle exec rake singleDevice
The complete sample and documentation are available in the pCloudy GitHub Repository: Here
Did this page help you?