Protractor 我们有没有办法在Jasmine Allure reporter中获得失败测试用例的快照

Protractor 我们有没有办法在Jasmine Allure reporter中获得失败测试用例的快照,protractor,allure,Protractor,Allure,我只想为失败的测试用例截图。目前,Allure为所有通过或失败的测试截图 我还尝试了jasmine.getenv().currentSpec.Results() 但这在Jasmine2框架中不受支持。请查看ADDvar reporter=new HTMLScreenshorter({reportOnlyFailedSpecs:false,captureOnlyFailedSpecs:true})这是另一位记者。但我只想添加我的诱惑记者,而不是使用任何Other NPM软件包

我只想为失败的测试用例截图。目前,Allure为所有通过或失败的测试截图

我还尝试了
jasmine.getenv().currentSpec.Results()

但这在Jasmine2框架中不受支持。

请查看ADD
var reporter=new HTMLScreenshorter({reportOnlyFailedSpecs:false,captureOnlyFailedSpecs:true})这是另一位记者。但我只想添加我的诱惑记者,而不是使用任何Other NPM软件包