Service Virtualization

Expand all | Collapse all

Clear MQ Queue Step in DevTest 10.1

Jump to Best Answer
  • 1.  Clear MQ Queue Step in DevTest 10.1

    Posted 04-19-2018 12:49 PM

    Please let me know the exact step to 'Clear MQ Queue' in DevTest 10.1 ?



  • 2.  Re: Clear MQ Queue Step in DevTest 10.1
    Best Answer

    Posted 04-19-2018 06:08 PM

    Hi,

        Just subscribe from that queue using MQ step to  'Clear MQ Queue'.

    Vish



  • 3.  Re: Clear MQ Queue Step in DevTest 10.1

    Posted 04-26-2018 10:02 AM

    Its working fine.

    Its taking too long to clear the multiple queues (For example 4 queue, Time taken - 3mins approx.).

    Is there any alternative e.g. JavaScript.

    Please advise.



  • 4.  Re: Clear MQ Queue Step in DevTest 10.1

    Posted 04-26-2018 12:53 PM

    I'm not sure exactly what you're doing to take so long, but here's how I would do this.

     

    1. Create an IBM MQ Send Receive step.  Set the think time to 0, disable the PUT side, and configure the GET side like this:

     - Queue: your queue

     - Timeout: 1

     - Poll Period: 1

     - Scope: Model

    This ensures that it won't have to reestablish the connection for every message, and it will wait no more than one second to determine the queue is empty.

     

    2. Loop the step back to itself, and right click the 'If Timeout' transition and select the next step or end the test.  This will loop the step, receiving messages, until there aren't any more messages ready on the queue, and it should do it as fast as possible.

     

    Stage the test for maximum speed.  If you're running in the ITR then you'll want go to the 'Settings' tab and set 'Auto Run Delay' to zero.



  • 5.  Re: Clear MQ Queue Step in DevTest 10.1

    Posted 04-27-2018 03:26 AM

    It's working as expected. Thank you so much.