Unable to generate report using SpecFlow+Runner for exporting test results to XRAY
AnsweredI am trying to integrate our C#/Selenium/SpecFlow test scripts with XRAY test management tool.
The procedure is to add a template file: CucumberJson.cshtml and a profile file: Default.srprofile
I am expecting a result file in JSON with the test results, I will use that to export to IDE.
Currently I am running the an BDD automated script in Visual Studio 2019 IDE (After successful integration with IDE later I will work with TeamCity & XRAY integration)
Here is the process:
https://docs.getxray.app/pages/viewpage.action?pageId=62269785
I am stuck up with compilation of the template file: CucumberJson.cshtml
Below is the issue: Reporting namespace not found and similar items.
Can you please help?
-
Same issue here, I am not able to get the JSON file with the results so I cannot upload it to Xray
0 -
The problem was the first line in the template. I used this instead:
@inherits SpecFlow.Plus.Runner.Reporting.CustomTemplateBase<TestRunResult>
I had to activate the runner too as commented here SpecFlow + Runner activation — documentation
0 -
Hi Venkateswara Rao Panganamamula,
This was missed as it was posted in the wrong section.
Please post queries into the general discussions section of the forum for queries of this nature.
I replied to an email you sent into info@specflow.org with steps on how to generate this report.
Hope this helps.
0 -
Hi Jordan,
Could be pls provide me the steps on how to generate this report. I am looking for the solution.
Thanks
Anitha
0 -
anithaeru20 We retired the SpecFlow+ Runner end of January 2022 (https://specflow.org/using-specflow/the-retirement-of-specflow-runner/).
As of now, there is no other way to generate this report for xRay.
0 -
Hi Andreas, thanks for providing information. Is there any way with older versions
0
Please sign in to leave a comment.
Comments
6 comments