Include browser and connectivity name (#3249)
This commit is contained in:
parent
31f355b923
commit
0fcc0d62d3
|
|
@ -46,7 +46,15 @@ module.exports = {
|
|||
const imageFullPath = path.join(baseDir, message.data.screenshot);
|
||||
await this.storageManager.copyFileToDir(
|
||||
imageFullPath,
|
||||
newPath + '/' + name + '.' + this.screenshotType
|
||||
newPath +
|
||||
'/' +
|
||||
name +
|
||||
'.' +
|
||||
this.options.browser +
|
||||
'.' +
|
||||
this.options.browsertime.connectivity.profile +
|
||||
'.' +
|
||||
this.screenshotType
|
||||
);
|
||||
}
|
||||
if (this.options.browsertime && this.options.browsertime.video) {
|
||||
|
|
@ -54,7 +62,13 @@ module.exports = {
|
|||
|
||||
await this.storageManager.copyFileToDir(
|
||||
videoFullPath,
|
||||
newPath + '/' + name + '.mp4'
|
||||
newPath +
|
||||
'/' +
|
||||
name +
|
||||
this.options.browser +
|
||||
'.' +
|
||||
this.options.browsertime.connectivity.profile +
|
||||
'.mp4'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -67,7 +81,11 @@ module.exports = {
|
|||
const data = JSON.stringify(json, null, 0);
|
||||
return this.storageManager.writeDataToDir(
|
||||
data,
|
||||
name + '.json',
|
||||
name +
|
||||
this.options.browser +
|
||||
'.' +
|
||||
this.options.browsertime.connectivity.profile +
|
||||
'.json',
|
||||
newPath
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue