In Ranorex, is there a way to output the number of the action that is being executed in the test report? By default, this is not output, but would mean a faster orientation in the error analysis. In the corresponding report tab in the test-suite I did not find a corresponding checkbox.
Ranorex support wrote me accordingly on 3/25/2023 that such a feature does not yet exist - but they will plan for it in the future. Until then, you can use the following hack:
TestSuite -> Properties -> Report -> Report template: Create custom template
Add those two snippets in RanorexReport.xsl:
line 645 -
<th>with the headline: ActionNumber (Codeline)line 839 -
<td>with the actionnumber and codeline itselfFind comparison of both xsl here.
Note: The actionnumbers for UserCode-Actions are not written into the .rxlog.data by Ranorex. They cannot be added with this xsl hack, which only manipulates the transformation of the .rxlog.data into the .rxlog.