Forum Discussion

wansichong's avatar
16 years ago

How can I use DataSourceLoop to accomplish data driven

for example:
1.add the datasource(Grid DataSource)
2.add the test request.
3.add the DataSourceLoop(datasource step is "datasource",target step is "test request")
then I just catch the first row of my grid datasource,I can't executed the case for each row of data.
  • ntman4real's avatar
    ntman4real
    New Contributor
    Kind what I am looking for.  Anyone?

    This is from my last post:

    So I setup a data source or a folder.  Then I setup a "Datasource loop" and specify that data source step as the "Data Source Step", but then what do I set as the request?  I would like that folder full of requests(That I setup to be the data source) to be the actual requests being sent.  And then where would I configure the endpoint as well?
  • You have to setup a Property Transfer step and source it from your DAtasource properties.

    So I have:


    • Datasource (select field1, field2 from table)

    • Property transfer (with 2 transfers, one for field1, field 2 for source, targets point to Test Request. Request Property and have declare namespace ns="http://www.myxmlnamespace.com";//ns:field1/text() where field1 is the name of the parameter on the SOAP request)

    • Test Request

    • Datasource Loop (with Datasource as the DataSource Step and Property Transfer as the Target Step)


    That is working for me...I hope this is clear.  I can't believe there isn't better documentation out there on this.  I may have to write a little blog post on it..

    Ruprict