diff --git a/lib/plugins/lateststorer/index.js b/lib/plugins/lateststorer/index.js index 235976261..13c2ffe86 100644 --- a/lib/plugins/lateststorer/index.js +++ b/lib/plugins/lateststorer/index.js @@ -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 ); }