Module: Testrail::Scenario::ClassMethods

Defined in:
lib/cucumber_testrail/testrail_extensions.rb

Constant Summary collapse

@@testrail_configuration =
{}

Instance Method Summary collapse

Instance Method Details

#get_testrail_configuration(property_name) ⇒ Object

get a named Testrail configuration property. Currenly only used for the results status map



19
20
21
# File 'lib/cucumber_testrail/testrail_extensions.rb', line 19

def get_testrail_configuration(property_name)
  @@testrail_configuration[property_name]
end

#set_testrail_configuration(property_name, property_value) ⇒ Object

set a configuration property at the class level. Initially used to set the mapping between Cucumber test results and Testrail result ids



14
15
16
# File 'lib/cucumber_testrail/testrail_extensions.rb', line 14

def set_testrail_configuration(property_name,property_value)
  @@testrail_configuration[property_name] = property_value
end