Hi @dan_nm,
I’m using windows to execute my script.
I have just do a retest using a fresh influxDB.
In my script, I have set the system tags as follows:
export let options = {
vus: 10,
iterations: 100,
teardownTimeout: '60s', //Specify how long the teardown() function is allowed to run before it's terminated and the test fails.
systemTags: ['proto', 'subproto', 'status', 'method', 'url', 'name', 'group', 'check', 'error', 'error_code', 'tls_version', 'scenario', 'service', 'expected_response', 'rpc_type', 'vu', 'iter']
};
Thereafter, I run my script using the command below:
k6 run --vus 10 --iterations 100 -e K6_INFLUXDB_TAGS_AS_FIELDS=url XXX.js --out influxdb=http://localhost:8086/XXX
I noticed that if I run the script once; the count of the url will be correct; which is 100.
However, if I run the script again of 100 iteration after completing the first run, the count will not be correct, as shown in the screen capture below.
And I noticed that if I remove the UUID: loginUuid as shown below. The count is confirm not correct after running twice one after another.
var loginUuid = uuidv4();
let thirdPartyLoginPayload = JSON.stringify({
DeviceType: 1,
ThirdPartyId: THIRD_PARTY_CODE,
MemberId: randomUser.MemberId
});
let thirdPartyLoginParams = {
headers: {
'Content-Type': 'application/json',
'Token': THIRD_PARTY_LOGIN_ACCESS_TOKEN
},
tags: { **UUID: loginUuid**, testid: 'login' }
}
thirdPartyLoginResponse = http.post(THIRD_PARTY_LOGIN_URL,
thirdPartyLoginPayload,
thirdPartyLoginParams);