./
├── docs/
├── features/
│ ├── hooks/
│ ├── pages/
│ ├── specs/
│ ├── step_definitions/
│ └── support/
│ ├── config/
│ │ └── environments.yml
│ ├── helpers/
│ │ ├── secrets_helper.rb
│ │ └── steps_helper.rb
│ ├── env.rb
│ └── report_builder.rb
├── reports/
│ ├── report-builder/
│ └── screenshots/
├── .gitignore
├── cucumber.yml
├── Gemfile
├── Gemfile.lock
└── README.md
We assume that you already have Ruby available in the terminal, if you don't, follow a step by step.
Now you will need WebDriver to use Web Browser and bundler to download ruby project package dependencies in "Gemfile" file.
To develop locally we recommend using VS Code with some plugins:
Install and configure an IDE with the "AWS Secrets Manager" to be able to use SecretsManager to store data masses of the project tests.
To run the tests locally, open the project folder in the terminal and run the command:
cucumber
Or to run a specific test tag:
cucumber -t @myTag
By default the tests will run in the QA environment according to the "environments.yml" file.
Environments available for configuration:
- dev
- qa
- prod
To change the environment at runtime, add the "ENV" parameter in the terminal:
cucumber ENV=dev
To change the default environment, go to the "cucumber.yml" file and change line 4:
default: (...) -p qa
If you want to point to a specific URL:
cucumber URL=http://environment-url.test