This project is used to automate all test scenarios in the login module of hudl.com.
This uses Ruby Cucumber with Selenium. Please clone this repo and install dependencies.
The dependencies needed are ruby-3.2.2, cucumber-9.2.0, selenium-webdriver-4.22.0, test-unit-1.2.3
Make sure you are in the root folder of the project. From there, run the following command.
cucumber --publish
The command line output will also have the cucumber report link of the run
Note: Make sure the dependencies are installed before the suite is run. Please refer below how to install dependencies
The dependencies can be installed in MacOS / Ubuntu / CentOS by running one of the following shell files, named according to the relevant OS.
- macos.sh
- ubuntu.sh
- centos.sh
First, change the permissions of the shell file
chmod +x <filename>
e.g. chmod +x macos.sh
Then run it
./<filename>
e.g. ./macos.sh
In the unlikely event that these shell files do not work, please install these manually - ruby-3.2.2, cucumber-9.2.0, selenium-webdriver-4.22.0, test-unit-1.2.3
To install Ruby on Windows using the Command Line Interface (CLI), follow these steps:
Chocolatey is a package manager for Windows that simplifies the installation process. If you don't have Chocolatey installed, follow these steps:
- Open PowerShell as an Administrator.
- Run the following command to install Chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = `
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Once Chocolatey is installed, you can use it to install Ruby:
- Open Command Prompt or PowerShell as an Administrator.
- Run the following command to install Ruby:
choco install ruby --version=3.2.2 choco pin add -n=ruby
Follow any prompts that appear to complete the installation.
After the Ruby installation is complete, we can install the rest of the dependencies required to run the suite
- Open a new Command Prompt or PowerShell window (this is important to refresh the environment variables).
- Run the following commands
gem install cucumber -v 9.2.0 gem install selenium-webdriver -v 4.22.0 gem install test-unit -v 1.2.3