Include ios and test name in json blob (#3308)

This commit is contained in:
Peter Hedenskog 2021-03-12 11:52:56 +01:00 committed by GitHub
parent 28d409393a
commit 3822c0c34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -323,6 +323,10 @@ module.exports = {
result[resultIndex].android.batteryTemperature[runIndex];
}
if (result[resultIndex].info.ios) {
run.ios = result[resultIndex].info.ios;
}
run.timestamp = dayjs(
result[resultIndex].timestamps[runIndex]
).format(TIME_FORMAT);

View File

@ -82,14 +82,20 @@ module.exports = {
'.mp4'
);
}
// Also store a JSON with data that we can use later
const json = {
url: message.url,
alias: this.alias[message.url],
timestamp: message.data.timestamp,
iterations: options.browsertime.iterations
iterations: options.browsertime.iterations,
name: options.name
};
if (message.data.ios) {
json.ios = message.data.ios;
}
if (message.data.title) {
json.title = message.data.title;
}