Include browser and connectivity name (#3249)

This commit is contained in:
Peter Hedenskog 2021-01-13 03:52:56 +01:00 committed by GitHub
parent 31f355b923
commit 0fcc0d62d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 3 deletions

View File

@ -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
);
}