0

from protractorConfig.js :

jasmine.getEnv().addReporter(new HtmlReporter({
  baseDirectory: './reports/'+outputFolder+'/screenshots',
  takeScreenShotsOnlyForFailedSpecs: true
}));

There is an option, docTitle, but not sure how to fetch test case name as title here....

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Meghna
  • 31
  • 2

1 Answers1

1

In jasmine 1.3, it's:

jasmine.getEnv().currentSpec.description

In jasmine 2.x, the reporter would be able to access the description name.

hankduan
  • 5,994
  • 1
  • 29
  • 43