In my previous article I wrote about SSRS performance measurement. This time we will take a look at how we can make use of this data for our performance testing itself.
To test we would need the report, report path and the parameters; all of these we can get from the report server itself
Select catalog.name, [Catalog].Path,
ExecutionLog.Parameters
from ExecutionLog with (nolock)
inner join
Catalog on Catalog.ItemID= ExecutionLog.ReportID
This is like our manual tests being recorded, lets see how we can use this for replaying this rest.
As you know, we can access SSRS reports directly from the server using reportServer web service URL. Using this URL we can pass query strings too!
<iframe height="100px" width=100%" src="http://172.16.150.29/ReportServer/Pages/ReportViewer.aspx?#ReportPath/ReportName#&rs:Command=Render&#Parameters#"/>
Use excel to import the results and use =CONCATENATE(A2,B2,C2,D2,"""/>") in excel to generate this HTML code. Now copy these line and place it between HTML tags and your page which can open all reports in one go is ready.
Open this HTML page from multiple machines or tabs; so that it generates sufficient load. Use report server ExecutionLog view to measure the performance of your test.
No comments:
Post a Comment