Skip to content

Installation And Configuration

Fedor Barannik edited this page May 17, 2017 · 2 revisions

Installation

Add this line to your application's Gemfile:

gem 'tmj_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tmj_ruby

Configuration

Setup configuration in your setup file if you need to configure it once

TMJ.configure do |c|
  c.base_url    = 'http://localhost'
  c.auth_type   = :basic
  c.project_id  = 'PD'
  c.test_run_id = 'TR-I123'
  c.environment = 'Mobile'
  c.username    = 'Test'
  c.password    = 'test'
end

Or do it everytime you create a client

client = TMJ::Client.new(base_url: 'http://localhost', auth_type: :basic, 
                         project_id: 'PD', test_run_id: 'TR-I123', 
                         environment: 'Mobile', username: 'Test', password: 'test')

Documentation

Process

  • [Contribution guide]

Clone this wiki locally