Please suggest populating of trend custom variable into an end-of-test summary.
I create trend variable for server-timing stats returned in response headers.
let serverTiming = new Trend(‘serverTiming’);
This part of code parses headers and adds value to trend with tags.
response.headers[“Server-Timing”].split(‘,’).forEach(el => {
let value = String(el).match(/dur=(.+?);/);
let name = String(el).match(/desc=“(.+?)”/);
serverTiming.add(value[1],{name:name[1], type: page.type, version: data.version, hash: data.sha }) })
this solution works perfectly with InfluxDB but I want to see the values of each timing in the end-of-test summary.
It’s hard to create trend metrics for each timing metric because each page has a different set of returned timings. Timings list is quite big as well (20-30 items).