Hi all,
Thanks for the help so far. I've corrected the percentages so that they
now all add up to 100%. Next thing I did was to create a Counter in each
throughputcontroller with a specific name and added those variables to
'sample_variables' in jmeter.properties. Then I added a Simple Data
Writer and let jmeter write and XML containing those variables.
I think I'm almost there now. The file gets written correctly, but the
counters sometimes are empty, and other times their value is higher on
one line than on the next. A snippet here:
1 <httpSample t="85" ts="1413801137512" s="true" lb="Category #2"
dt="text" by="18105" CNTRHOMEPAGE="588" CNTRSEARCH="" CNTRSTATIC="182"
CNTRCAT="2497" CNTRPRODUCT="1071" CNTRCONTACT="" CNTRPURCHASE="118"/>
2 <httpSample t="542" ts="1413801137064" s="true" lb="/contact"
dt="text" by="12005" CNTRHOMEPAGE="463" CNTRSEARCH="13" CNTRSTATIC="168"
CNTRCAT="2438" CNTRPRODUCT="1065" CNTRCONTACT="13" CNTRPURCHASE="119"/>
3 <httpSample t="102" ts="1413801137533" s="true" lb="Category#1"
dt="text" by="19909" CNTRHOMEPAGE="505" CNTRSEARCH="" CNTRSTATIC="184"
CNTRCAT="2500" CNTRPRODUCT="1097" CNTRCONTACT="" CNTRPURCHASE="77"/>
4 <httpSample t="631" ts="1413801137034" s="true"
lb="/ajaxrefresh/ajax/refreshblocks/ #4" dt="text" by="2871"
CNTRHOMEPAGE="541" CNTRSEARCH="3" CNTRSTATIC="142" CNTRCAT="2093"
CNTRPRODUCT="909" CNTRCONTACT="3" CNTRPURCHASE="131"/>
(I've added the line numbers) As you can see, on the first line the
value of CNTRPURCHASE is 118, on the next it's 119, but then it's
suddenly 77 on line 3!? The same goes for CNTRSTATIC for example.
I think it's because Jmeter runs several threads parallel and one
finishes sooner than the other and therefor some counters aren't updated
yet, but I'm not sure about that.
So I've added a counter under the thread group and called it CNTRTOTAL,
removed all other counter variables in 'sample_variables' and just use
the highest value for the amount of threads that have completed. Is that
correct?
--
Kind Regards, Met vriendelijke groet,
*Léon Keijser*
Linux Technical Consultant
*SMILE BV*
Goeman Borgesiuslaan 77 | 3515 ET Utrecht
T +31 (0)30 22.87.995 | F +31 (0)30 22.87.997
nl.smile.eu <http://nl.smile.eu/>