Forum Discussion

user1's avatar
user1
Occasional Contributor
11 years ago

Need help in running each xml in a folder through data source

I have few xmls that i want to run one after another.  I have setup the datasource (as directory) and selected the directory which has 5 xmls.  I have setup the request and the datasource loop so the script will run the xmls one after another.

 

When i run the script,  only one xml which is the actual request runs 5 times.. It is not going through all the xmls in the directory. Please help me on how to setup so the datasource will take one file at a time and run. ( i have set the file name filter to be *.xml).

2 Replies

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    What does those xml contain? What is the structure of your test case?
    • user1's avatar
      user1
      Occasional Contributor

      Hi,

       

      The xmls have the following structure.

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
       <soapenv:Header>
        <sec:Security>
         </sec:Security>
       </soapenv:Header>
       <soapenv:Body>
           </arc:indices>
          <arc:attribute name="REALMCD">COMN_IPQ realmcd</arc:attribute>
           </arc:indices>
                  </soapenv:Body>
      </soapenv:Envelope>

       

      The test case has Datasource as the first step which is set to a directory where the xmls are located.

      1st step: datasource.

      2nd step: Sample XML.

      3rd  datasource loop.

       

      When i run the script, the sample XML runs iteratively and not the xml files in the folder.