Bug 62008 - Listener does not process user defined variable (containing groovy script) in distributed testing
Summary: Listener does not process user defined variable (containing groovy script) in...
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-17 11:43 UTC by JohnSmithWSTester
Modified: 2018-03-21 15:12 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JohnSmithWSTester 2018-01-17 11:43:28 UTC
Aggregate report listener has in filename the following variable :

${Current_Date}\10.csv

This variable is defined in User defined variables at the test plan level, where :

Current_Date = ${__groovy(new Date().format('yyyy-MM-dd'))}

Jmeter setup is following:
1 master a 3 remote machines. Master works in GUI mode and only collects data from other 3.

If the test runs locally, new folder is created as expected (e.g. 2018-01-17) but if ran in distributed mode, new folder is created with the name ${__groovy(new Date().format('yyyy-MM-dd'))}.

What brings me to conclusion that the config element (User Defined Variables) with groovy script is not executed according the the execution order  while ran in distributed mode.

The script itself has been tested and works fine.