Default.srprofile修改后显示的错误
Error displayed after Default.srprofile is modified
我修改了 .srprofile 以配置我自己的报告模板。
但是执行时会抛出以下错误消息并且 html 文件不会生成 -
System.InvalidOperationException: 未找到渲染模板资源
在TechTalk.SpecRun.Framework.Reporting.ReportTemplateLoader.LoadTemplate(报告报告)....
对 .srprofile 所做的更改:
<Report copyAlsoToBaseFolder="true">
<Template name="ReportTemplate.cshtml" outputName="AutomationReport.html" />
</Report>"
我是不是做错了什么?
SpecFlow+Runner 正在输出目录中搜索 ReportTemplate.cshtml(通常为 bin\debug)。如果将文件添加到项目中,默认情况下它不会复制到输出目录。
将文件属性中的 "copy to output" 更改为 "always"
我修改了 .srprofile 以配置我自己的报告模板。
但是执行时会抛出以下错误消息并且 html 文件不会生成 -
System.InvalidOperationException: 未找到渲染模板资源 在TechTalk.SpecRun.Framework.Reporting.ReportTemplateLoader.LoadTemplate(报告报告)....
对 .srprofile 所做的更改:
<Report copyAlsoToBaseFolder="true">
<Template name="ReportTemplate.cshtml" outputName="AutomationReport.html" />
</Report>"
我是不是做错了什么?
SpecFlow+Runner 正在输出目录中搜索 ReportTemplate.cshtml(通常为 bin\debug)。如果将文件添加到项目中,默认情况下它不会复制到输出目录。
将文件属性中的 "copy to output" 更改为 "always"