Service Virtualization

  • 1.  How to inject .dat files as messages in MQ test case one by one in single ITR run?

    Posted Apr 06, 2017 06:22 AM

    Hello All,

     

    can any one help, how we can inject .dat file as message in MQ test case? Also we have to inject multiple messages , so tell us how we can create data sets and what data set option we can choose to meet this requirement?

     

    thanks..

     

    Shivam Garg



  • 2.  Re: How to inject .dat files as messages in MQ test case one by one in single ITR run?
    Best Answer

    Posted Apr 19, 2017 02:06 AM

    Hi Shivam,

    You can refer the below sample test case to achive your requirment 

    1. Use the "Load a Set of File Names" Data Set to read *.dat file names from the directory

    2."Read a Fille (Disk, URL or Classpath) step " to load the file content and store it in a property "msgcontent"

    3. Use the property name {{msgcontent}} in the IBM mq step Contents Section

     

     

    Regards,

    Balamurugan.



  • 3.  Re: How to inject .dat files as messages in MQ test case one by one in single ITR run?

    Posted Apr 21, 2017 02:53 PM

    For more dynamic, you should create input directory in project and keep file there. Use File Snap shot and use simple JavaScript to add file name in a data set file like csv and use that for your data set.