There are many scenarios in which a test execution report needs to be archived or stored for future audit or documentation. While it is possible to generate reports using the test management tools, it might be required to also generate one as part of the test case.
This is a set of components, which can be reused and easily adapted for various requests. Everything is based on existing UiPath automation capabilities, not creating additional dependencies.
The information of the asserts are stored in a datatable, which is then being used to generate the HTML. A folder is created, using the name of the test case and a timestamp, where the screenshots are copied and the HTML file is generated.
Most of the components are used in execution and test case templates, which allows developers to easily create test cases with these features, and only focus on the asserts. In a test case, they only need to assign a name to the test case (argument TestCaseName) and add the verification information using the sequence AddVerificationToReport.
Following customizations are easy to implement using standard UiPath functionality: