class TestCentricity::DataSource
Attributes
current[RW]
Public Instance Methods
read_json_node_data(file_name, node_name)
click to toggle source
# File lib/testcentricity/data_objects/data_objects_helper.rb, line 44 def read_json_node_data(file_name, node_name) raw_data = File.read("#{XL_PRIMARY_DATA_PATH}#{file_name}") data = JSON.parse(raw_data) data[node_name] end
read_yaml_node_data(file_name, node_name)
click to toggle source
# File lib/testcentricity/data_objects/data_objects_helper.rb, line 39 def read_yaml_node_data(file_name, node_name) data = YAML.load_file("#{XL_PRIMARY_DATA_PATH}#{file_name}") data[node_name] end