Closed SergeyPirogov closed 7 years ago
Hi, found your plugin and tried to apply at my project, but probably did something wrong.
1) Cloned repo and placed plugin under foider .allure/2.3.5/plugins/allure-harviewer-plugin 2) Created method to attach har file to the report
@Attachment(fileExtension = ".har", value = "harFile",type = "") private fun attachHar(): ByteArray { return try { Files.toByteArray(File("/home/sergey/Github/demo/calculator/harFile.har")) } catch (e: IOException) { ByteArray(0) } }
3) Generated report. Generation successful, har file is attached, but when press on it, chrome just download it
@kolsys Thank you a lot for the response. I've added the plugin to allure.yml and now it works well. Awesome, I am will write about it in a blog. I think it will be useful for many people
Hi, found your plugin and tried to apply at my project, but probably did something wrong.
1) Cloned repo and placed plugin under foider .allure/2.3.5/plugins/allure-harviewer-plugin 2) Created method to attach har file to the report
3) Generated report. Generation successful, har file is attached, but when press on it, chrome just download it