Introduction:
I've written some not-quite-default testplans using Jakarta's JMeter and I found that due to an exteme lack of documentation, things were harder than expected.
In order to save someone else some time, I'll post a few things here that I found out.
Jakarta JMeter / Tipps & Tricks
Use "__time" and format date without aliases
I wanted to have the current day, month and year separatedly. Here's my problem and the solution:
You have to use double quotes instead of single ones.
I spent about an hour on this stupid little problem...
Code: Select all
${__time('yyyy',)} // just returned yyyy
${__time(yyyy,)} // returns 2006
//...but beware of this one:
${__time("yyyy",)} // returns "2006" (including ")
I spent about an hour on this stupid little problem...
Last edited by ^rooker on Mon Dec 04, 2006 5:51 pm, edited 2 times in total.
Cookie Manager oddity
1) Delete manually set cookies:
When loading a .jmx which has cookies already set within the CookieManager, the "delete" button is disabled.
Add a new line, then the "delete" button will be enabled again - and then delete as you wish.
2) Manually added cookies are treated very differently than cookies set by the site automatically.
When loading a .jmx which has cookies already set within the CookieManager, the "delete" button is disabled.
Add a new line, then the "delete" button will be enabled again - and then delete as you wish.
2) Manually added cookies are treated very differently than cookies set by the site automatically.
- Currently it is NOT possible to access a cookie variable if it was sent manually.