Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

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 "No workflow provided, using empty WorkflowJSON.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?