Skip to content

Project structure

natalia-ss edited this page Jan 26, 2024 · 4 revisions

Common Files

Each project has some common directories and files.

/allure-results
/config
/helpers
/page_objects

.reek-yml
.rubocop.yml
Gemfile
Gemfile-lock

Allure results

Contains detailed test executions reports and screenshots.

Config

Configurations files regarding environment, operating systems, platforms and products.

Helpers

Generated helpers for managing the code. Read more about them here: https://github.com/RubyRaider/ruby_raider/wiki/Generators#helper-generator

Page objects

Raider follows page object pattern to maximise code maintainability and readability. This folder contains abstract elements, examples of components and pages.

Reek and Rubocop

Configurations helping to follow Ruby's style guide and syntax conventions. Predefined checks can be enabled or disabled.

Gemfile and Gemfile.lock

Lists of Raider gem dependencies and their specific versions.

Web Testing Frameworks

/models
  /data
  model_factory.rb

All web testing frameworks have user data to test against.

Rspec Frameworks

/spec

All tests are kept in Spec folder. You may choose to add subdirectories.

Cucumber Frameworks

/features
  /step_definitions
    login_steps.rb
  /support
  login.feature

Features directory contains all the tests, the test steps and support folder that initialises necessary helpers.

Clone this wiki locally