Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automate tests for reports in SSRS

My current project uses SSRS as the reporting engine. I have the report executing a text command with about 10 variables passed to it. I have been looking for a solution on how to unit test (acceptance or integration, whatever, just some automation) to an SSRS report project.

I thought about using this method:

  1. Move the SQL text command to a stored procedure
  2. Create a Reports.Tests project
  3. Create a project_tests database and point the connection string to this database
  4. Set up my unit test <Setup> with the data I would return in the test
  5. Create a test with the parameters passed and test the result set

I wanted to be sure that I wasn't missing something obvious.

How do other programmers test their reports automatically? Any suggestions on how to improve this method?

EDIT: I should clarify that I would like to only test the result set and not formatting of the report.

like image 449
Steve Wright Avatar asked Apr 13 '09 13:04

Steve Wright


People also ask

Can you schedule SSRS reports?

Distribute SSRS Reports and respond to your business needs by setting schedules to run based on events and triggers rather than date. The scheduling service runs as a Windows service to enable unattended scheduling. Simply set it & forget it!

What is reporting in automation testing?

What is an automation test report? Reporting, following the test execution, is about documenting the previous process. This report combines a summary report for management and stakeholders and a detailed report stored and given to developers as feedback.

What is SSRS testing?

SSRS stands for SQL Server Reporting Services is a reporting software that allows you to produce formatted reports with tables in the form of data, graph, images, and charts. These reports are hosted on a server that can be executed any time using parameters defined by the users.


1 Answers

I saw the Reporting Services Unit Testing Framwork on CodePlex which could be useful, though I haven't had a chance to evaluate it.

like image 168
Stuart McLaughlin Avatar answered Sep 24 '22 15:09

Stuart McLaughlin