I'm going to be building some reports based on a Web Service data source and I was wondering if there's any way to build some unit tests so we can identify if a change to the underlying data / a missing sub-report etc has broken anything.
Thanks in advance,
2 Answers, 1 is accepted
answered on 03 Apr 2019, 07:50 AM
Such unit tests could verify the reports rendering, using a ReportProcessor instance. This class allows to render a report in a specified format and returns a RenderingResult instance which can be checked for errors and also contains the bytes of the output file, if the rendering is successful. We actually use exactly this approach in our own unit tests to make sure the reports are consistently rendered.
Hope this helps.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items