Forum Discussion

edhedh's avatar
edhedh
Occasional Contributor
15 years ago

loadTest - datasource sharing

Hello,
I've got a loadtest executing one teststep (e.g. registerPurchaseOrder).
I want this loadtest to simulate e.g. 5 virtual users. That is, the teststep will be executed by 5 threads.
However, I want each thread to use a particular range of rows within a datasource (e.g. an xls).
That is, thread 1 should be using e.g. row 1 through 5, thread 2, rows 6 through 10, and so on.
That is, I don't want threads using the same rows from the datasource.
How can I achieve the above ? Is that possible, and if yes how ?

Thanks,
EDH

4 Replies

  • edhedh's avatar
    edhedh
    Occasional Contributor
    Hello,

    Thanks for the info.
    Can you also tell me how I can use different Excel files/sheets for each thread ?
    That is, where and how can I specify which thread uses which file/sheet ?

    Thanks,
    EDH
  • edhedh's avatar
    edhedh
    Occasional Contributor
    Any idea regarding:
    Hello,

    Thanks for the info.
    Can you also tell me how I can use different Excel files/sheets for each thread ?
    That is, where and how can I specify which thread uses which file/sheet ?

    Thanks,
    EDH
  • Hello, sorry for the late reply!

    You can use property expansion in the Excel file or sheet fields, just like in most soapUI fields. The variable you want to expand in this case is threadIndex, e.g. inputExcelSheet_${threadIndex}.xls. There's more details about this at this page of the documentation.

    Hope it helps

    /Henrik
    eviware.com