This is a migrated thread and some comments may be shown as answers.

Automated Unit Tests for Reports

2 Answers 254 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mat
Top achievements
Rank 1
Mat asked on 29 Mar 2019, 09:27 AM

Hi there,

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,

Mat

2 Answers, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 03 Apr 2019, 07:50 AM
Hello Mat,

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.

Regards,
Ivan Hristov
Progress Telerik
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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
TIQRI Dev
Top achievements
Rank 1
commented on 11 Feb 2022, 03:54 AM

Hello Ivan,

Can you track if a part of the rendering does not happen as expected and throws an error, like below

 

Neli
Telerik team
commented on 15 Feb 2022, 01:29 PM

Hi Gayan,

I am sorry to hear that you are experiencing issues with our product. I researched for the error and I found the following SO thread that may help you The specified blob does not exist - Shows in azure browser - but when I click download does not exist

You may also attach a Trace Listener to the designer and send us the generated log file. Please, find the required steps in the Standalone Report Designer Problems article.

0
Mat
Top achievements
Rank 1
answered on 03 Apr 2019, 08:07 AM

Nice one... Thanks Ivan.

I'll start having a look / play around and see what I can do.

Thanks again. 

Mat

Tags
General Discussions
Asked by
Mat
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
Mat
Top achievements
Rank 1
Share this question
or