Skip to content

Utilities

natalia-ss edited this page Jan 25, 2024 · 5 revisions

We provided two utility files.

Utilities.rb

Module for managing test configuration settings, overwriting YAML config file and downloading the app examples for the mobile testing framework.

To adjust the configuration to your needs use the commands:

raider u browser [BROWSER]            # Sets the default browser for a project
raider u browser_options [OPTIONS]    # Sets the browser options for the project
raider u build [BUILD_TYPE]           # It downloads the selected example build for appium projects
raider u builds                       # It downloads both builds for appium cross platform projects
raider u help [COMMAND]               # Describe subcommands or one specific subcommand
raider u path [PATH]                  # Sets the default path for scaffolding
raider u platform [PLATFORM]          # Sets the default platform for a cross-platform project
raider u raid                         # It runs all the tests in a project
raider u start_appium                 # It starts the appium server
raider u url [URL]                    # Sets the default url for a project

Logger.rb

Available directly in Ruby Raider framework for recording information, errors, warnings etc. during code execution. Not available in projects built with Raider.

# @example Use logger manually
RubyRaider::Logger.debug('This is info message')
RubyRaider::Logger.warn('This is warning message')

To use loggers inside the projects, refer to documentation below:

Clone this wiki locally