I want to get the passed or failed status of my test after each spec is executed:
var passed = jasmine.getEnv().currentSpec.results().passed();
if (!passed) {
browser.takeScreenshot().then(function(png) {
writeScreenShot(png, filename, path);
};
}
but jasmine.getEnv().currentSpec
is returning undefined
, I am using Jasmine 2.3 how can I get the currentSpec
with Jasmine 2.3