# Capybara

Last updated on : 21 Jan 2025

## 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

1. 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:

```bash title="Terminal"
bundle install
```

#### Configuration

1. 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:

1. Open the terminal and navigate to the project directory.
2. Run the following command:

```bash title="Terminal"
bundle exec rake singleDevice
```

The complete sample and documentation are available in the pCloudy GitHub Repository: [Here](https://github.com/pankyopkey/pCloudy-sample-projects/tree/master/Capybara)
