Class: ScenarioUtils

Inherits:
Object
  • Object
show all
Includes:
MemoizerUtils, OoorUtils, SequelUtils
Defined in:
lib/cucumber/lib/ERPConnector.rb

Overview

OERPScenario, OpenERP Functional Tests

Author Nicolas Bessi 2009 
Copyright Camptocamp SA

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 Afero of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

This class map OpenERP XMLRPC logins and common stuff

Instance Attribute Summary collapse

Attributes included from SequelUtils

#sequel

Instance Method Summary collapse

Methods included from OoorUtils

#create_database_with_ooor, #create_ooor_connection, #createdatabasefromConf, #helper_hacks, #init_ooor, #login, #ooor, #ready?, #setConnexionfromConf

Methods included from MemoizerUtils

#clean_all_var, #clean_var, #get_var, #set_var

Constructor Details

#initializeScenarioUtils



29
30
31
32
33
# File 'lib/cucumber/lib/ERPConnector.rb', line 29

def initialize
  @uid = false
  @log = Logger.new(STDOUT)
  @log.level = Logger::WARN
end

Instance Attribute Details

#logObject

Returns the value of attribute log.



27
28
29
# File 'lib/cucumber/lib/ERPConnector.rb', line 27

def log
  @log
end

Instance Method Details

#configObject



35
36
37
# File 'lib/cucumber/lib/ERPConnector.rb', line 35

def config
  @config ||= get_config
end