header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
January 09, 2009, 06:34:15 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
different data source for each thread in a load test
Welcome, Guest. Please login or register.
January 09, 2009, 06:34:15 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  different data source for each thread in a load test
« previous next »
Pages: [1] Print
Author Topic: different data source for each thread in a load test  (Read 446 times)
BhuvanShanmugam
Newbie
*
Posts: 18



« on: July 23, 2008, 01:52:38 pm »

Hello,

I have a similar requirement to (http://www.eviware.com/component/option,com_smf/Itemid,53/topic,680.msg2514#msg2514)

I have a load test with one operation in it.
I want to run this operation in 10 threads; but each thread should take its data from a unique file.

Hoe can i do this?

I have managed to set up a single file with shared data source option, in which case, if there are 100 records in the file and 10 threads started, each thread runs 10 times with unique values.

However, I would like to set up each thread with a different input data source file. Is this possible?

I have a Pro version . FYI.

Thanks,
Bhuvan.
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,666


« Reply #1 on: July 24, 2008, 11:25:35 pm »

Hi Bhuvan,

what you can currently do is use the ThreadIndex context variable in the name/path of the data source file, for example "datafile${ThreadIndex}.txt", which will evaluate do datafile0.txt for the default thread when running the testcase "alone", and corresponding datafileX.txt values when running with more than one thread..

does that help?

regards,

/Ole
eviware.com
Logged
BhuvanShanmugam
Newbie
*
Posts: 18



« Reply #2 on: July 28, 2008, 06:38:59 pm »

Hello Ole,

I suppose the ThreadIndex variable is an integer value. for a normal operation it is 0. When inside load test it takes values between 0 and n where n is the number of threads. Is my understanding right ?

At present I have file names of the format fileXX.txt where XX can be from 00 to 99 to simulate 100 threads.

I guess with your method I will have to rename the first 10 files from XX to X file name format.

I shall try this when I switch back to the soapUI work.

Thanks,
Bhuvan.
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,666


« Reply #3 on: July 28, 2008, 11:02:58 pm »

Hi,

yes, this sounds like it should work.. let me know!

regards,

/Ole
eviware.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header