# Measure_test configuration

hi I use notepad++ as text editor for measure writiting. Nornally, i use OS Apply measure or Measure Tab, however, there are some limited with that approach : need refresh to ensure measure data, so many steps to get error codes in stderr file. I got instructions from Measure Writing Guide and link.However, there are still some issues i did not solve, I would like to know about :

1. Use Notepad++ as Ruby IDE and directly test and trace error like RubyMine in that link - How i use following ruby argument in notepad++ with nppExec like Rubymine ? -e $stdout.sync=true;$stderr.sync=true;load(\$0=ARGV.shift) -I 'C:\Program Files (x86)\OpenStudio 1.5.0\Ruby'

2. Measure test file structure :

a. seed OSM/Model : i need to apply many measures at same time to get result and trace error for tested measure - i often use OS measure tab to apply mauilple measure - how to do like this with notepad++ or command line ? should i need to apply measure to seed OSM then save it before run measure_test.rb?

b. Argument inputs for parallel applying measure: How to assign an hash with argument name and argument value to measure applied in seed OSM like tested measure in measure.rb

c. Which syntax should use to get trace on command line screen (notepad++) when running measure. i often use Puts and Runner.RegisterInfo. Which one i need to use or need to use another methods ?

d. if i need to include an .epw and other input file csv etc... or idf.file in seed model so which part (def) of measure_test.rb where i need make syntax for insert file ? Where to get OS API about file import/export ?

class NewMeasureTest < MiniTest::Unit::TestCase
def setup
#add setup for use last run file or rerun again  - reporting measure
end
def test_agruments
#test arguments here (right number, error with bad input, etc...)
end
def test run measure
# get result and assert it
end
end #class

edit retag close merge delete