I am looking to integrate our test results into another app and was wondering if there is a way to create a separate output of the test results to XML?. I still want the html report! I saw that there was SpecRunToXML in nuget but the date is 2012 so I am doubting that will work with current specflow/specrun.Thanks!
--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks guys, The xml will be parsed and eventually loaded into Tableau. What is the ETA on the new reporting formats?
Andreas plans to focus on the implementation of both an XML and JSON export next week.
Assuming no calamities befall us in the meantime, I would expect us to have some results in the coming weeks.
--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+unsubscribe@googlegroups.com.
<Settings projectName="Tests" projectId="{bf607512-78cf-41f7-b7b6-2b2a524ce3c9}" name="Multiple Reports"/>
<Execution stopAfterFailures="100" testThreadCount="6" testSchedulingMode="Sequential" />
<Report copyAlsoToBaseFolder="true">
<Template name="ReportTemplate.cshtml" outputName="Report1.html" />
<Template name="ReportTemplate_Xml.cshtml" outputName="Report2.xml" />
</Report>[ERROR] Timed out after 10 seconds
System.IO.IOException: The file 'D:\SM_Test_SpecFlowChanges\Selenium_Cms_Automation\Tests\bin\Debug\Report1.html' already exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at TechTalk.SpecRun.Framework.Reporting.ExecutionReporter.ReportResult(TestRunResult result)
at TechTalk.SpecRun.Framework.ExecutionEngine.ExecuteTestSuite(TestProfile testProfile, TestRunExecutionConfiguration executionConfiguration, IExecutionContainerBuilder containerBuilder)
at TechTalk.SpecRun.VisualStudio.TestAdapter.SpecRunTestExecutor.<>c__DisplayClass9_0.<ExecuteTestSuite>b__1()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at TechTalk.SpecRun.Framework.Reporting.ExecutionReporter.ReportResult(TestRunResult result)
at TechTalk.SpecRun.Framework.ExecutionEngine.ExecuteTestSuite(TestProfile testProfile, TestRunExecutionConfiguration executionConfiguration, IExecutionContainerBuilder containerBuilder)
at TechTalk.SpecRun.VisualStudio.TestAdapter.SpecRunTestExecutor.<>c__DisplayClass9_0.<ExecuteTestSuite>b__1()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Log file: file:///D:\SM_Test_SpecFlowChanges\Selenium_Cms_Automation\TestResults\Tests_Multiple%20Reports_2016-10-27T090055.log
An exception occurred while invoking executor 'executor://specrun/executorV1.6.0': Object reference not set to an instance of an object.
========== Run test finished: 31 run (0:02:49.5629546) ==========Execution Time: 00:02:06.8146634
Report file: file:///D:\SM_Test_SpecFlowChanges\Selenium_Cms_Automation\TestResults\Report1.html
Report file: file:///D:\SM_Test_SpecFlowChanges\Selenium_Cms_Automation\TestResults\Report2.xml
Log file: file:///D:\SM_Test_SpecFlowChanges\Selenium_Cms_Automation\TestResults\Tests_Multiple%20Reports_2016-10-27T090800.log
An exception occurred while invoking executor 'executor://specrun/executorV1.6.0': An item with the same key has already been added.
========== Run test finished: 29 run (0:02:20.2057682) ========== time stamp (date in YYYY-MM-DD format and time in HHMMSS format) is appended to the generated report. The final name of the generated report is composed as follows: <projectName>_<name>_YYYY-MM-DDTHHMMSS
I brought up the issue of time stamps and overwriting existing files with Andreas, so he is aware of the problem. I'm not sure when we'll publish a new package as we're still gathering feedback on the new features to see what needs to be improved. A time stamp is on the To-Do list, we are not 100% sure how best to deal with existing templates with the same name, but agree that this case needs to be handled better.
I've also since reviewed the documentation, and I noticed that the copyAlsoToBaseFolder is correctly documented as belogning to the <Report> element, not the <Template> element. We discussed the current setup and weren't sure whether it should actually be a report-specific option or not. Do you have a use case where you would want to set the option individually for each report?
--
<Tags>
@foreach (var tag in test.TestNode.Tags)
{
<Tag name="@tag"/>
}
</Tags>
existingFileHandlingStrategy to deal with the issues of existing report files being automatically overwritten if the new report has the same name.Overwrite (default): Overwrites existing files with the same nameIncrementFilename:Follows
the Windows paradigm of adding an incremental suffix (e.g. "(1)", "(2)"
etc.) to the end of file names. This will retain the existing file with
its original name and result in a new file being generated with the
appropriate incremental suffix.