Forum Discussion

ckmanohar's avatar
ckmanohar
New Contributor
15 years ago

Need help to run with 5 threads for 5 hours using data source

Load Test:[/b]
I am trying to achieve following in load test. See if anybody of you can help me figuring out what I can try.

Requirements:
Need to keep data in file.
Run multiple threads at same time. (This is to control different TPS)
Run load test for specific duration.

What I did?
For getting data from data file used “Data Source” with 10 records.
For using multiple threads configure load test with desirable threads “5”.
Under Limit I specified value as “1” and selected next tab as “seconds”.
To check exact hits I get I introduced “1000” delay in test case.
I dumped records used in flat file to check how many hits each thread got.

What I was expecting?
I was expecting maximum of “1” hit per thread. And test to stop after “1” Second. But what I found was it completed all “10” records from data source.

I did tried to just changing to one thread but I still got 10 hits. Not sure why delay of 1000 sec is coming in to play.

Need Help:[/b]
What I need to do differently which can help me achieve “5 hours” test with “5” threads and data provided for data source “flat file” with 1 million values. I want all these threads to keep working until 5 hours then just stop.
No RepliesBe the first to reply