Class: TestRail::TestRailTools
- Inherits:
-
Object
- Object
- TestRail::TestRailTools
- Defined in:
- lib/test_rail_integration/generator/test_rail_tools.rb
Class Method Summary collapse
-
.write_test_run_id(test_run_id) ⇒ Object
Writing test run ID into test rail data file.
Class Method Details
.write_test_run_id(test_run_id) ⇒ Object
Writing test run ID into test rail data file
11 12 13 14 15 16 17 |
# File 'lib/test_rail_integration/generator/test_rail_tools.rb', line 11 def self.write_test_run_id(test_run_id) test_rail_data_file = File.read(TestRailDataLoad::TEST_RAIL_FILE_CONFIG_PATH).gsub(/^:test_run_id:.*/, ":test_run_id: #{test_run_id}") config_file = File.open(TestRailDataLoad::TEST_RAIL_FILE_CONFIG_PATH, "w") config_file.write (test_rail_data_file) config_file.close test_run_id end |