Well after nearly 5 months of part time work V1.1.0 of my MQ test utility has finally seen the light of day. It can be downloaded from the following link.
http://www-1.ibm.com/support/docview.wss?uid=swg24007048 The main addition is the ability to control the rate at which messages are delivered to an application under test. To illustrate the way this is done I've included an example script file, below, which if the message test program was invoked by typing in MsgTest MessageRate8-1.xml 1 5 1 300 would see messages delivered to the target application at the rate of 1 message per second for the first 5 minutes(300 seconds) and then 2 messages per second for the next 5 minutes etc. until the To= value of 5 messages per second was reached. Where the individual messages being sent would be randomly selected from a preloaded pool of ten messages. The other thing I've done is to include the 80+ test scripts and their log output where applicable as examples of the way various script functions work. Regards Tim Armstrong <?xml version="1.0"?> <!-- Test PutMsg MessageRate in INCREMENTAL mode --> <!-- using randomly selected messages and script --> <!-- invocation parameters --> <MsgTest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\MsgTest\Schema\MsgTest.xsd"> <Control> <QMgr>MYQMGR</QMgr> <Channel>MY.SVRCONN</Channel> <Host>127.0.0.1</Host> <Port>1444</Port> <TestLog> <File>NONE</File> <Dir>c:\MsgTest\TestScripts\Logs</Dir> </TestLog> <TestReport> <File>MessageRate8-1.rpt</File> <Dir>c:\MsgTest\TestScripts\Reports</Dir> </TestReport> <TestMaxWait>1</TestMaxWait> <NextLogMsgInterval>1</NextLogMsgInterval> <Concurrency>1</Concurrency> <ConcurrencyWait>20</ConcurrencyWait> <OnError>LOG</OnError> </Control> <Defaults/> <!-- ============================================================================ ==== --> <!-- Bring everything together. Use INCREMENTAL mode with the From, To, Incr and --> <!-- Interval values of MessageRate being variables set at script invocation time. --> <!-- ============================================================================ ==== --> <Test Name="#1 Put Messages"> <!-- Load up the ten test data files into separate buffers --> <For Name="LoadFile" From="1" To="10" Incr="1" Format="%02d"> <GetFile> <Buffer>Buff%LoadFile%</Buffer> <File>FileIn%LoadFile%.txt</File> <Dir>c:\MsgTest\TestScripts\DataIn</Dir> </GetFile> </For> <!-- Put a series of messages using INCREMENTAL mode. Repeated twice --> <For Name="Twice" From="1" To="2" Incr="1"> <ForEver Name="Ext"> <RandomNum Name="BuffSelect" From="1" To="10" Format="%02d"/> <IntervalStart Name="PutMsg"/> <PutMsg> <!-- Use random number to select the message buffer to be sent --> <Buffer>Buff%BuffSelect%</Buffer> <Q>MSGTEST.OUT</Q> <MsgId/> <CorrelId/> <MessageRate From="%1%" To="%2%" Incr="%3%" Interval="%4%" Mode="INCREMENTAL"/> <IntervalInMsgId Name="Put"/> </PutMsg> <IntervalEnd Name="PutMsg"/> </ForEver> </For> </Test> </MsgTest> This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
