Include ios and test name in json blob (#3308)
This commit is contained in:
parent
28d409393a
commit
3822c0c34c
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue