Posted: Sun Oct 03, 2004 1:20 pm Post subject: Updated version of ma0t now available
Apprentice
Joined: 28 Sep 2004 Posts: 40 Location: Melbourne Australia
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.
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>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum