Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prashanth-sams/ruby-cucumber-framework

A Ruby Cucumber generic framework
https://github.com/prashanth-sams/ruby-cucumber-framework

automation cucumber docker framework ruby ruby-automation ruby-cucumber ruby-cucumber-framework

Last synced: 4 days ago
JSON representation

A Ruby Cucumber generic framework

Awesome Lists containing this project

README

        

# Ruby Cucumber Framework
> Generic ruby cucumber framework using selenium webdriver

### Features

- Allure report
- Cucumber JSON report
- Cucumber feature - cucumber - step-definition
- Cross browser support
- Logger
- Screenshots on failure
- Retry on failure

## Docker

##### Simple run
```bash
docker-compose up -d --scale node-chrome=2
rake spec DOCKER=ON
docker-compose down
```
##### Build Docker image
```bash
docker build -t .
```

##### Docker container
```bash
docker run -d -t
```

Test runner
----------
##### Rake runner
```bash
rake spec
```

##### Allure report
```bash
rake allure
allure generate reports/allure-results-json/ --clean && allure open
```

###### custom allure html output folder
```bash
allure generate reports/allure-results-json/ -o reports/allure-results-html --clean && allure open reports/allure-results-html/
```

## Browser
```bash
# chrome
rake allure BROWSER=chrome

# firefox
rake allure BROWSER=firefox
```

##### Xvfb headless mode
```bash
source /usr/local/rvm/scripts/rvm

export DISPLAY=:20
Xvfb :20 -screen 0 1366x768x16 &

cucumber features/scenario/demo/google.feature
```

##### Browser headless mode
```bash
source /usr/local/rvm/scripts/rvm
cucumber features/scenario/demo/google.feature MODE=headless
```

## Logs
```bash
rake allure LOGGER=ON
```