I was creating Automated performance testing to implement for my client, with tools like loadgen and BizUnit.
Tools used for Testing
BizUnit - To automate the test.
Nunit - Framework to run the test that created in BizUnit.
Performance Monitor (perfmon) - to analyse the log created in the testing.
LoadGen is a load generating tool. which can used for test the performance of integration Application
There were three components in loadgen
Load generators are responsible for transmitting messages via a particular transportCurrently it supports the following transport (In-Box)
File,HTTP,MQSeries
MSMQLarge,MSMQ,SOAP,
Web Services Enhancements (WSE),
Windows SharePoint Services (WSS),
Windows Communication Foundation (WCF) (LoadGen 2007 Version has)
Message creators are an optional component that can be used when you need to
generate messages that contain unique data.
Throttle controllers ensure that messages are transmitted at a steady rate by
governing the load generators
you can find more details here
Performance Monitor(PerfMon) will be used as an anlysis tool . which can read the performance log file and give us a nice view on performance.
BizUnit is an framework to automate the test used to automate the test.
- Initialise the test like restarting the service, clearing the
message box in BizTalk.
- call the loadgen to create the load for the system.
- Invoke the performance monitor and log the details.
- Wait for all the message got processed and stop the test.
- Cleanup the system like stoping the monitor, remove any messages from the transport etc.
for more details on BizUnit check out in http://www.codeplex.com/bizunit
NUnit is a tool to invoke the BizUnit tests.
For more on NUnit http://www.nunit.org/index.php
I hope I have given a berief introduction, Let try out small scenario
Its a Simple File To File Scenario, where BizTalk receive file from a File location and Send it to another File location
Size of the file is 10 KB
Number of Message to send is 1000. I dont have any expected performance, Just want to know how my bizTalk Server Perform
Step 1 Construction of LoadGen Config File
We need to define
LoadGenerator - Here it is File transport, need to tell what is the lot size and total message
Message Creator - I dont need to invoke the component,as I am gonna replicate the same message
Throttle controller - I have used file monitor such that the thresholdrange is 40-50 Files.
Sample Configuration
My BizTalk Server performance on this scenario
In an average it receive 4.993 Message/Sec and Send 4.993 Message/Sec
You have lot of other counters are there for you to select and analyse... for more on this toplic click here
Is there a way to generate WCF load using BizUnit and LoadGen? I know that LoadGen 2004 doesn't have WCF support, but that is what is needed to work with BizUnit.
ReplyDeleteI also had the same question in my mind.
ReplyDeleteWell I think we need to wait for the next version of LoadGen. Hopefully strong named version.
I am trying to find a way, if I found I will let you know