Class: Itriagetestrail::TRMiniTest
- Inherits:
-
TestRailInterface
- Object
- TestRailInterface
- Itriagetestrail::TRMiniTest
- Defined in:
- lib/itriagetestrail/framework_bindings/trminitest.rb
Instance Attribute Summary
Attributes inherited from TestRailInterface
#batch_size, #client, #execute, #external_results, #pool, #results, #run_id, #sections, #test_case_ids, #test_cases
Instance Method Summary collapse
Methods inherited from TestRailInterface
#_execute, #_time_zone, #clear_results, #close_run, #close_run?, #config, #create_run_id, #delete_temp_files, #initialize, #initialize_temp_files, #initialize_variables, #make_connection, #plan_tempfile_name, #run_tempfile_name, #setup, #setup?, #tag_ids, #testrail_online
Methods included from TestResults
#read_batch_file, #send_batch_results_to_testrail, #send_results_to_testrail, #store_result, #store_results_to_batch_file, #update_test_suite
Methods included from TestRuns
#add_testrail_run, #existing_cases_from_description, #existing_cases_from_run, #extend_testrail_run
Methods included from TestPlans
#add_plan_entry, #add_testrail_plan, #append_configuration_ids, #config_id, #configuration_group, #configuration_ids, #configurations
Methods included from TestCases
#add_testrail_test_case, #app_version_label, #associate_result, #jenkins_build_label, #test_name, #testrail_ids, #testrail_test_case_id, #time_zone_label
Methods included from Sections
#add_testrail_section, #testrail_section_id, #testrail_sections
Methods included from Milestones
#fetch_milestone, #milestone_archive_name, #milestone_due_date, #milestone_period_start, #milestone_runs, #normalize_milestone, #normalize_origin, #rename_milestone, #reset_milestone
Methods included from Suites
#add_testrail_suite, #testrail_suite_id, #testrail_suites
Methods included from Projects
#project_by_id, #project_by_name, #projects, #set_project
Constructor Details
This class inherits a constructor from Itriagetestrail::TestRailInterface
Instance Method Details
#record_result(test, failures) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/itriagetestrail/framework_bindings/trminitest.rb', line 6 def record_result(test, failures) return if execute == false begin @external_id = "#{test.class}##{test.name}" if test.passed? store_result(test.name, @external_id, '', 1, '') elsif failures.inspect.include? 'Minitest::Skip' store_result(test.name, @external_id, '', 6, failures.inspect) else store_result(test.name, @external_id, '', 5, failures.inspect) end rescue StandardError => exception puts "TESTRAIL ENCOUNTERED AN ERROR: #{exception}\n #{@external_id} \n\n" end end |
#shutdown ⇒ Object
22 23 24 25 26 27 |
# File 'lib/itriagetestrail/framework_bindings/trminitest.rb', line 22 def shutdown return unless execute sleep 3 # testrail service rate limit precaution send_results_to_testrail super end |