1

Reporting measure - cannot find workflow measure failed.

I am writing a test for my own reporting measure, the measure works fine when I run it in the OpenStudio app however when I try to run it with my test it test says "No workflow provided, using empty WorkflowJSON".

For this reason my measure fails when it gets to the line of code: (I am trying to get the name of the osm which the measure is being applied to know)

currentModelName = runner.workflow.seedFile.get.to_s[3..-1]

Since in this test I am not actually running the osm model I simply want to test the reporting measure, how can I load the workflow in the test without actually running the osm model?

antonszilasi's avatar
1.5k
antonszilasi
asked 2017-08-10 11:04:29 -0500, updated 2017-08-10 11:05:31 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

3

Here is a link to code creating an OSW on the fly for reporting measure test. This will be the updated standard reporting measure template test for the next release.

You do have to run a simulation the first time you run the test,but commenting out this line will allow you to re-run the reporting measure test without running a simulation.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2017-08-11 01:14:53 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
2

You need to provide a minimal workflow (OSW) file since reporting Measures are tested in the context of simulation results. Documentation is available here. It can be as simple as just identifying your OSM, a weather file, and your reporting Measure. Good for you for creating a Measure test!

ljbrackney's avatar
3.8k
ljbrackney
answered 2017-08-10 11:12:05 -0500, updated 2017-08-10 11:47:28 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments